OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/widget/default_theme_provider.h" | 5 #include "ui/base/default_theme_provider.h" |
6 | 6 |
7 #include "ui/base/resource/resource_bundle.h" | 7 #include "ui/base/resource/resource_bundle.h" |
8 #include "ui/gfx/image/image_skia.h" | 8 #include "ui/gfx/image/image_skia.h" |
9 | 9 |
10 #if defined(OS_WIN) && !defined(USE_AURA) | 10 #if defined(OS_WIN) && !defined(USE_AURA) |
11 #include "ui/base/win/shell.h" | 11 #include "ui/base/win/shell.h" |
12 #endif | 12 #endif |
13 | 13 |
14 namespace views { | 14 namespace ui { |
15 | 15 |
16 DefaultThemeProvider::DefaultThemeProvider() {} | 16 DefaultThemeProvider::DefaultThemeProvider() {} |
17 | 17 |
18 DefaultThemeProvider::~DefaultThemeProvider() {} | 18 DefaultThemeProvider::~DefaultThemeProvider() {} |
19 | 19 |
20 gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const { | 20 gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const { |
21 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id); | 21 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id); |
22 } | 22 } |
23 | 23 |
24 SkColor DefaultThemeProvider::GetColor(int id) const { | 24 SkColor DefaultThemeProvider::GetColor(int id) const { |
(...skipping 16 matching lines...) Expand all Loading... |
41 bool DefaultThemeProvider::HasCustomImage(int id) const { | 41 bool DefaultThemeProvider::HasCustomImage(int id) const { |
42 return false; | 42 return false; |
43 } | 43 } |
44 | 44 |
45 base::RefCountedMemory* DefaultThemeProvider::GetRawData( | 45 base::RefCountedMemory* DefaultThemeProvider::GetRawData( |
46 int id, | 46 int id, |
47 ui::ScaleFactor scale_factor) const { | 47 ui::ScaleFactor scale_factor) const { |
48 return NULL; | 48 return NULL; |
49 } | 49 } |
50 | 50 |
51 } // namespace views | 51 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(TOOLKIT_VIEWS) && !defi
ned(OS_ANDROID) |
| 52 GdkPixbuf* DefaultThemeProvider::GetRTLEnabledPixbufNamed(int id) const { |
| 53 return NULL; |
| 54 } |
| 55 #endif |
| 56 |
| 57 } // namespace ui |
OLD | NEW |