From 424525b6f6e505ef34be14b9400dfd424997b93e Mon Sep 17 00:00:00 2001 From: "erg@chromium.org" Date: Sun, 19 Jul 2009 20:03:34 +0000 Subject: 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 --- app/theme_provider.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/theme_provider.h') 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; -- cgit v1.1