Correct blacklist entry message
[chromium-blink-merge.git] / ui / base / default_theme_provider.cc
blob9777b390729a2eadd9a8a959704567a36ab42b8a
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"
10 #if defined(OS_WIN) && !defined(USE_AURA)
11 #include "ui/base/win/shell.h"
12 #endif
14 namespace ui {
16 DefaultThemeProvider::DefaultThemeProvider() {}
18 DefaultThemeProvider::~DefaultThemeProvider() {}
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.
26 return 0xff0000ff;
29 int DefaultThemeProvider::GetDisplayProperty(int id) const {
30 return -1;
33 bool DefaultThemeProvider::ShouldUseNativeFrame() const {
34 #if defined(OS_WIN) && !defined(USE_AURA)
35 return ui::win::IsAeroGlassEnabled();
36 #else
37 return false;
38 #endif
41 bool DefaultThemeProvider::HasCustomImage(int id) const {
42 return false;
45 base::RefCountedMemory* DefaultThemeProvider::GetRawData(
46 int id,
47 ui::ScaleFactor scale_factor) const {
48 return NULL;
51 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(TOOLKIT_VIEWS) && !defined(OS_ANDROID)
52 GdkPixbuf* DefaultThemeProvider::GetRTLEnabledPixbufNamed(int id) const {
53 return NULL;
55 #endif
57 } // namespace ui