From e9210915326b600a7efc8aa6d1befba549347fe5 Mon Sep 17 00:00:00 2001 From: "avi@chromium.org" Date: Thu, 25 Feb 2010 21:43:25 +0000 Subject: Removal of GTMTheme gradient use. Unthemed incognito windows now are fully drawn as they should be. BUG=http://crbug.com/35554 ; http://crbug.com/26983 TEST=no visible change in normal mode; themed incognito windows should look almost correct (missing theme header) Review URL: http://codereview.chromium.org/661097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40050 0039d316-1c4b-4281-b951-d872f2087c98 --- app/theme_provider.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app') diff --git a/app/theme_provider.h b/app/theme_provider.h index 1db73e1..5659140 100644 --- a/app/theme_provider.h +++ b/app/theme_provider.h @@ -13,9 +13,11 @@ #if defined(OS_MACOSX) #ifdef __OBJC__ @class NSColor; +@class NSGradient; @class NSImage; #else class NSColor; +class NSGradient; class NSImage; #endif // __OBJC__ #elif !defined(OS_WIN) @@ -88,6 +90,9 @@ class ThemeProvider { // that id, if |allow_default| is true, then the default tint will be // returned, else this function will return nil. virtual NSColor* GetNSColorTint(int id, bool allow_default) const = 0; + + // Gets the NSGradient with the specified |id|. + virtual NSGradient* GetNSGradient(int id) const = 0; #elif defined(OS_POSIX) && !defined(TOOLKIT_VIEWS) // Gets the GdkPixbuf with the specified |id|. Returns a pointer to a shared // instance of the GdkPixbuf. This shared GdkPixbuf is owned by the theme -- cgit v1.1