| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 VIEWS_DEFAULT_THEME_PROVIDER_H_ | 5 #ifndef VIEWS_DEFAULT_THEME_PROVIDER_H_ |
| 6 #define VIEWS_DEFAULT_THEME_PROVIDER_H_ | 6 #define VIEWS_DEFAULT_THEME_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "app/theme_provider.h" | 8 #include "app/theme_provider.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| 11 class ResourceBundle; | 11 class ResourceBundle; |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 class DefaultThemeProvider : public ThemeProvider { | 15 class DefaultThemeProvider : public ThemeProvider { |
| 16 public: | 16 public: |
| 17 DefaultThemeProvider() { }; | 17 DefaultThemeProvider() { }; |
| 18 virtual ~DefaultThemeProvider() { }; | 18 virtual ~DefaultThemeProvider() { }; |
| 19 | 19 |
| 20 // Overridden from ThemeProvider. | 20 // Overridden from ThemeProvider. |
| 21 virtual SkBitmap* GetBitmapNamed(int id); | 21 virtual SkBitmap* GetBitmapNamed(int id); |
| 22 virtual SkColor GetColor(int id); | 22 virtual SkColor GetColor(int id); |
| 23 virtual bool GetDisplayProperty(int id, int* result); |
| 23 virtual bool ShouldUseNativeFrame(); | 24 virtual bool ShouldUseNativeFrame(); |
| 24 | 25 |
| 25 private: | 26 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); | 27 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 } // namespace views | 30 } // namespace views |
| 30 | 31 |
| 31 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ | 32 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ |
| OLD | NEW |