diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-19 20:03:34 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-19 20:03:34 +0000 |
commit | 424525b6f6e505ef34be14b9400dfd424997b93e (patch) | |
tree | 8794e51584e3ac10a263f7ec9bf4a54ab5a70e36 /app | |
parent | 4d67720512d8cf6b92d350a86f3fbacff45b4c75 (diff) | |
download | chromium_src-424525b6f6e505ef34be14b9400dfd424997b93e.zip chromium_src-424525b6f6e505ef34be14b9400dfd424997b93e.tar.gz chromium_src-424525b6f6e505ef34be14b9400dfd424997b93e.tar.bz2 |
Fix native GTK interface.
In r21039, BrowserThemeProvider::Init was made non-virtual, which meant
that GtkBrowserThemeProvider::Init was never being called. Make it virtual
again (so the linux UI renders properly), and explicitly add Init() to the
ThemeProvider interface so this doesn't happen again.
Review URL: http://codereview.chromium.org/155754
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21066 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/theme_provider.h | 4 |
1 files changed, 4 insertions, 0 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; |