| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "app/theme_provider.h" | |
| 12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "ui/base/theme_provider.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 class ResourceBundle; | 15 class ResourceBundle; |
| 16 | 16 |
| 17 namespace views { | 17 namespace views { |
| 18 | 18 |
| 19 class DefaultThemeProvider : public ThemeProvider { | 19 class DefaultThemeProvider : public ui::ThemeProvider { |
| 20 public: | 20 public: |
| 21 DefaultThemeProvider() { }; | 21 DefaultThemeProvider() { }; |
| 22 virtual ~DefaultThemeProvider() { }; | 22 virtual ~DefaultThemeProvider() { }; |
| 23 | 23 |
| 24 // Overridden from ThemeProvider. | 24 // Overridden from ui::ThemeProvider. |
| 25 virtual void Init(Profile* profile) { } | 25 virtual void Init(Profile* profile) { } |
| 26 virtual SkBitmap* GetBitmapNamed(int id) const; | 26 virtual SkBitmap* GetBitmapNamed(int id) const; |
| 27 virtual SkColor GetColor(int id) const { | 27 virtual SkColor GetColor(int id) const { |
| 28 // Return debugging-blue. | 28 // Return debugging-blue. |
| 29 return 0xff0000ff; | 29 return 0xff0000ff; |
| 30 } | 30 } |
| 31 virtual bool GetDisplayProperty(int id, int* result) const { return false; } | 31 virtual bool GetDisplayProperty(int id, int* result) const { return false; } |
| 32 virtual bool ShouldUseNativeFrame() const; | 32 virtual bool ShouldUseNativeFrame() const; |
| 33 virtual bool HasCustomImage(int id) const { return false; } | 33 virtual bool HasCustomImage(int id) const { return false; } |
| 34 virtual RefCountedMemory* GetRawData(int id) const { return NULL; } | 34 virtual RefCountedMemory* GetRawData(int id) const { return NULL; } |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); | 37 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace views | 40 } // namespace views |
| 41 | 41 |
| 42 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ | 42 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ |
| OLD | NEW |