blob: 54f9746aca14f9e103140b029c15d0d5aafa7397 [file] [log] [blame]
[email protected]3e17c692012-02-27 02:03:041// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]84ad47e2011-11-21 18:17:352// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]209da9b72013-05-25 14:20:455#include "ui/base/default_theme_provider.h"
[email protected]84ad47e2011-11-21 18:17:356
7#include "ui/base/resource/resource_bundle.h"
estade8ea8beb2015-12-18 19:21:128#include "ui/gfx/color_palette.h"
estade80c47662016-07-02 00:42:169#include "ui/gfx/color_utils.h"
[email protected]546882b2012-05-11 00:53:3210#include "ui/gfx/image/image_skia.h"
[email protected]84ad47e2011-11-21 18:17:3511
[email protected]209da9b72013-05-25 14:20:4512namespace ui {
[email protected]84ad47e2011-11-21 18:17:3513
14DefaultThemeProvider::DefaultThemeProvider() {}
15
16DefaultThemeProvider::~DefaultThemeProvider() {}
17
[email protected]546882b2012-05-11 00:53:3218gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const {
19 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id);
20}
21
[email protected]84ad47e2011-11-21 18:17:3522SkColor DefaultThemeProvider::GetColor(int id) const {
estade8ea8beb2015-12-18 19:21:1223 return gfx::kPlaceholderColor;
[email protected]84ad47e2011-11-21 18:17:3524}
25
estade80c47662016-07-02 00:42:1626color_utils::HSL DefaultThemeProvider::GetTint(int id) const {
27 return color_utils::HSL();
28}
29
[email protected]7ce1599f2013-08-30 08:54:0430int DefaultThemeProvider::GetDisplayProperty(int id) const {
31 return -1;
[email protected]84ad47e2011-11-21 18:17:3532}
33
34bool DefaultThemeProvider::ShouldUseNativeFrame() const {
[email protected]84ad47e2011-11-21 18:17:3535 return false;
[email protected]84ad47e2011-11-21 18:17:3536}
37
38bool DefaultThemeProvider::HasCustomImage(int id) const {
39 return false;
40}
41
[email protected]0a3e3c6112012-08-05 20:07:4542base::RefCountedMemory* DefaultThemeProvider::GetRawData(
43 int id,
44 ui::ScaleFactor scale_factor) const {
[email protected]84ad47e2011-11-21 18:17:3545 return NULL;
46}
47
[email protected]209da9b72013-05-25 14:20:4548} // namespace ui