| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_ | |
| 6 #define UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/compiler_specific.h" | |
| 12 #include "ui/base/theme_provider.h" | |
| 13 #include "ui/views/views_export.h" | |
| 14 | |
| 15 namespace ui { | |
| 16 class ResourceBundle; | |
| 17 } | |
| 18 using ui::ResourceBundle; | |
| 19 | |
| 20 namespace views { | |
| 21 | |
| 22 class VIEWS_EXPORT DefaultThemeProvider : public ui::ThemeProvider { | |
| 23 public: | |
| 24 DefaultThemeProvider(); | |
| 25 virtual ~DefaultThemeProvider(); | |
| 26 | |
| 27 // Overridden from ui::ThemeProvider: | |
| 28 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE; | |
| 29 virtual SkColor GetColor(int id) const OVERRIDE; | |
| 30 virtual bool GetDisplayProperty(int id, int* result) const OVERRIDE; | |
| 31 virtual bool ShouldUseNativeFrame() const OVERRIDE; | |
| 32 virtual bool HasCustomImage(int id) const OVERRIDE; | |
| 33 virtual base::RefCountedMemory* GetRawData( | |
| 34 int id, | |
| 35 ui::ScaleFactor scale_factor) const OVERRIDE; | |
| 36 | |
| 37 private: | |
| 38 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); | |
| 39 }; | |
| 40 | |
| 41 } // namespace views | |
| 42 | |
| 43 #endif // UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_ | |
| OLD | NEW |