| 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 #ifndef UI_BASE_DEFAULT_THEME_PROVIDER_H_ | 5 #ifndef UI_BASE_DEFAULT_THEME_PROVIDER_H_ |
| 6 #define UI_BASE_DEFAULT_THEME_PROVIDER_H_ | 6 #define UI_BASE_DEFAULT_THEME_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "ui/base/theme_provider.h" | 13 #include "ui/base/theme_provider.h" |
| 14 #include "ui/base/ui_base_export.h" | 14 #include "ui/base/ui_base_export.h" |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 class ResourceBundle; | |
| 18 } | |
| 19 | |
| 20 namespace ui { | |
| 21 | 17 |
| 22 class UI_BASE_EXPORT DefaultThemeProvider : public ThemeProvider { | 18 class UI_BASE_EXPORT DefaultThemeProvider : public ThemeProvider { |
| 23 public: | 19 public: |
| 24 DefaultThemeProvider(); | 20 DefaultThemeProvider(); |
| 25 ~DefaultThemeProvider() override; | 21 ~DefaultThemeProvider() override; |
| 26 | 22 |
| 27 // Overridden from ui::ThemeProvider: | 23 // Overridden from ui::ThemeProvider: |
| 28 gfx::ImageSkia* GetImageSkiaNamed(int id) const override; | 24 gfx::ImageSkia* GetImageSkiaNamed(int id) const override; |
| 29 SkColor GetColor(int id) const override; | 25 SkColor GetColor(int id) const override; |
| 30 color_utils::HSL GetTint(int id) const override; | 26 color_utils::HSL GetTint(int id) const override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 46 bool ShouldIncreaseContrast() const override; | 42 bool ShouldIncreaseContrast() const override; |
| 47 #endif | 43 #endif |
| 48 | 44 |
| 49 private: | 45 private: |
| 50 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); | 46 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); |
| 51 }; | 47 }; |
| 52 | 48 |
| 53 } // namespace ui | 49 } // namespace ui |
| 54 | 50 |
| 55 #endif // UI_BASE_DEFAULT_THEME_PROVIDER_H_ | 51 #endif // UI_BASE_DEFAULT_THEME_PROVIDER_H_ |
| OLD | NEW |