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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "app/theme_provider.h" | 10 #include "app/theme_provider.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 // Overridden from ThemeProvider. | 23 // Overridden from ThemeProvider. |
24 virtual void Init(Profile* profile) { } | 24 virtual void Init(Profile* profile) { } |
25 virtual SkBitmap* GetBitmapNamed(int id) const; | 25 virtual SkBitmap* GetBitmapNamed(int id) const; |
26 virtual SkColor GetColor(int id) const { | 26 virtual SkColor GetColor(int id) const { |
27 // Return debugging-blue. | 27 // Return debugging-blue. |
28 return 0xff0000ff; | 28 return 0xff0000ff; |
29 } | 29 } |
30 virtual bool GetDisplayProperty(int id, int* result) const { return false; } | 30 virtual bool GetDisplayProperty(int id, int* result) const { return false; } |
31 virtual bool ShouldUseNativeFrame() const; | 31 virtual bool ShouldUseNativeFrame() const; |
32 virtual bool HasCustomImage(int id) const { return false; } | 32 virtual bool HasCustomImage(int id) const { return false; } |
33 virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) const { | 33 virtual RefCountedMemory* GetRawData(int id) const { return NULL; } |
34 return false; | |
35 } | |
36 | 34 |
37 private: | 35 private: |
38 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); | 36 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); |
39 }; | 37 }; |
40 | 38 |
41 } // namespace views | 39 } // namespace views |
42 | 40 |
43 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ | 41 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ |
OLD | NEW |