summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 21:43:25 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 21:43:25 +0000
commite9210915326b600a7efc8aa6d1befba549347fe5 (patch)
tree93b86527830652c00a602d1c324b3078257c1372 /chrome/browser/browser_theme_provider.h
parentf9fc33227ea65b9b199a1fc7cc1055d362e5594a (diff)
downloadchromium_src-e9210915326b600a7efc8aa6d1befba549347fe5.zip
chromium_src-e9210915326b600a7efc8aa6d1befba549347fe5.tar.gz
chromium_src-e9210915326b600a7efc8aa6d1befba549347fe5.tar.bz2
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
Diffstat (limited to 'chrome/browser/browser_theme_provider.h')
-rw-r--r--chrome/browser/browser_theme_provider.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h
index 26a556d..41edf09 100644
--- a/chrome/browser/browser_theme_provider.h
+++ b/chrome/browser/browser_theme_provider.h
@@ -89,10 +89,16 @@ class BrowserThemeProvider : public NonThreadSafe,
NTP_LOGO_ALTERNATE
#if defined(OS_MACOSX)
,
- COLOR_TOOLBAR_BUTTON_STROKE = 1000,
+ COLOR_TOOLBAR_STROKE = 1000,
+ COLOR_TOOLBAR_STROKE_INACTIVE,
+ COLOR_TOOLBAR_BUTTON_STROKE,
COLOR_TOOLBAR_BUTTON_STROKE_INACTIVE,
- COLOR_TOOLBAR_STROKE,
- COLOR_TOOLBAR_STROKE_INACTIVE
+ GRADIENT_TOOLBAR,
+ GRADIENT_TOOLBAR_INACTIVE,
+ GRADIENT_TOOLBAR_BUTTON,
+ GRADIENT_TOOLBAR_BUTTON_INACTIVE,
+ GRADIENT_TOOLBAR_BUTTON_PRESSED,
+ GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE
#endif // OS_MACOSX
};
@@ -128,6 +134,7 @@ class BrowserThemeProvider : public NonThreadSafe,
virtual NSImage* GetNSImageNamed(int id, bool allow_default) const;
virtual NSColor* GetNSColor(int id, bool allow_default) const;
virtual NSColor* GetNSColorTint(int id, bool allow_default) const;
+ virtual NSGradient* GetNSGradient(int id) const;
#endif
// Set the current theme to the theme defined in |extension|.
@@ -234,9 +241,13 @@ class BrowserThemeProvider : public NonThreadSafe,
#elif defined(OS_MACOSX)
typedef std::map<int, NSImage*> NSImageMap;
mutable NSImageMap nsimage_cache_;
+
// The bool member of the pair is whether the color is a default color.
typedef std::map<int, std::pair<NSColor*, bool> > NSColorMap;
mutable NSColorMap nscolor_cache_;
+
+ typedef std::map<int, NSGradient*> NSGradientMap;
+ mutable NSGradientMap nsgradient_cache_;
#endif
ResourceBundle& rb_;