diff options
-rw-r--r-- | app/theme_provider.h | 4 | ||||
-rw-r--r-- | chrome/browser/browser_theme_provider.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/app/theme_provider.h b/app/theme_provider.h index 5dddd99..ef19724 100644 --- a/app/theme_provider.h +++ b/app/theme_provider.h @@ -20,6 +20,7 @@ class NSImage; #endif // __OBJC__ #endif // OS_* +class Profile; class SkBitmap; //////////////////////////////////////////////////////////////////////////////// @@ -35,6 +36,9 @@ class ThemeProvider { public: virtual ~ThemeProvider(); + // Initialize the provider with the passed in profile. + virtual void Init(Profile* profile) = 0; + // Get the bitmap specified by |id|. An implementation of ThemeProvider should // have its own source of ids (e.g. an enum, or external resource bundle). virtual SkBitmap* GetBitmapNamed(int id) = 0; diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h index 4787c000..3e42036 100644 --- a/chrome/browser/browser_theme_provider.h +++ b/chrome/browser/browser_theme_provider.h @@ -143,9 +143,8 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>, REPEAT = 3 } Tiling; - void Init(Profile* profile); - // ThemeProvider implementation. + virtual void Init(Profile* profile); virtual SkBitmap* GetBitmapNamed(int id); virtual SkColor GetColor(int id); virtual bool GetDisplayProperty(int id, int* result); |