1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/base/default_theme_provider.h"
7 #include "ui/base/resource/resource_bundle.h"
8 #include "ui/gfx/image/image_skia.h"
12 DefaultThemeProvider::DefaultThemeProvider() {}
14 DefaultThemeProvider::~DefaultThemeProvider() {}
16 bool DefaultThemeProvider::UsingSystemTheme() const {
20 gfx::ImageSkia
* DefaultThemeProvider::GetImageSkiaNamed(int id
) const {
21 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id
);
24 SkColor
DefaultThemeProvider::GetColor(int id
) const {
25 // Return debugging-blue.
29 int DefaultThemeProvider::GetDisplayProperty(int id
) const {
33 bool DefaultThemeProvider::ShouldUseNativeFrame() const {
37 bool DefaultThemeProvider::HasCustomImage(int id
) const {
41 base::RefCountedMemory
* DefaultThemeProvider::GetRawData(
43 ui::ScaleFactor scale_factor
) const {