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/base/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/color_palette.h" | 8 #include "ui/gfx/color_palette.h" |
| 9 #include "ui/gfx/color_utils.h" |
9 #include "ui/gfx/image/image_skia.h" | 10 #include "ui/gfx/image/image_skia.h" |
10 | 11 |
11 namespace ui { | 12 namespace ui { |
12 | 13 |
13 DefaultThemeProvider::DefaultThemeProvider() {} | 14 DefaultThemeProvider::DefaultThemeProvider() {} |
14 | 15 |
15 DefaultThemeProvider::~DefaultThemeProvider() {} | 16 DefaultThemeProvider::~DefaultThemeProvider() {} |
16 | 17 |
17 gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const { | 18 gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const { |
18 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id); | 19 return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id); |
19 } | 20 } |
20 | 21 |
21 SkColor DefaultThemeProvider::GetColor(int id) const { | 22 SkColor DefaultThemeProvider::GetColor(int id) const { |
22 return gfx::kPlaceholderColor; | 23 return gfx::kPlaceholderColor; |
23 } | 24 } |
24 | 25 |
| 26 color_utils::HSL DefaultThemeProvider::GetTint(int id) const { |
| 27 return color_utils::HSL(); |
| 28 } |
| 29 |
25 int DefaultThemeProvider::GetDisplayProperty(int id) const { | 30 int DefaultThemeProvider::GetDisplayProperty(int id) const { |
26 return -1; | 31 return -1; |
27 } | 32 } |
28 | 33 |
29 bool DefaultThemeProvider::ShouldUseNativeFrame() const { | 34 bool DefaultThemeProvider::ShouldUseNativeFrame() const { |
30 return false; | 35 return false; |
31 } | 36 } |
32 | 37 |
33 bool DefaultThemeProvider::HasCustomImage(int id) const { | 38 bool DefaultThemeProvider::HasCustomImage(int id) const { |
34 return false; | 39 return false; |
35 } | 40 } |
36 | 41 |
37 base::RefCountedMemory* DefaultThemeProvider::GetRawData( | 42 base::RefCountedMemory* DefaultThemeProvider::GetRawData( |
38 int id, | 43 int id, |
39 ui::ScaleFactor scale_factor) const { | 44 ui::ScaleFactor scale_factor) const { |
40 return NULL; | 45 return NULL; |
41 } | 46 } |
42 | 47 |
43 } // namespace ui | 48 } // namespace ui |
OLD | NEW |