OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "ui/base/theme_provider.h" | 12 #include "ui/base/theme_provider.h" |
13 #include "views/views_api.h" | 13 #include "views/views_export.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 class ResourceBundle; | 18 class ResourceBundle; |
19 } | 19 } |
20 using ui::ResourceBundle; | 20 using ui::ResourceBundle; |
21 | 21 |
22 namespace views { | 22 namespace views { |
23 | 23 |
24 class VIEWS_API DefaultThemeProvider : public ui::ThemeProvider { | 24 class VIEWS_EXPORT DefaultThemeProvider : public ui::ThemeProvider { |
25 public: | 25 public: |
26 DefaultThemeProvider(); | 26 DefaultThemeProvider(); |
27 virtual ~DefaultThemeProvider(); | 27 virtual ~DefaultThemeProvider(); |
28 | 28 |
29 // Overridden from ui::ThemeProvider. | 29 // Overridden from ui::ThemeProvider. |
30 virtual void Init(Profile* profile); | 30 virtual void Init(Profile* profile); |
31 virtual SkBitmap* GetBitmapNamed(int id) const; | 31 virtual SkBitmap* GetBitmapNamed(int id) const; |
32 virtual SkColor GetColor(int id) const; | 32 virtual SkColor GetColor(int id) const; |
33 virtual bool GetDisplayProperty(int id, int* result) const; | 33 virtual bool GetDisplayProperty(int id, int* result) const; |
34 virtual bool ShouldUseNativeFrame() const; | 34 virtual bool ShouldUseNativeFrame() const; |
35 virtual bool HasCustomImage(int id) const; | 35 virtual bool HasCustomImage(int id) const; |
36 virtual RefCountedMemory* GetRawData(int id) const; | 36 virtual RefCountedMemory* GetRawData(int id) const; |
37 | 37 |
38 private: | 38 private: |
39 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); | 39 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace views | 42 } // namespace views |
43 | 43 |
44 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ | 44 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ |
OLD | NEW |