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>2009-08-11 14:36:52 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 14:36:52 +0000
commit7cd83d1caff7fa1090d9fc8eadb7474cb3b811f2 (patch)
tree7150d07291e245bdbefe440675f3f7243e1d4e1a /chrome/browser/browser_theme_provider.h
parent9b7d65f37d3392c5f69e44e053e9b3a3184b431d (diff)
downloadchromium_src-7cd83d1caff7fa1090d9fc8eadb7474cb3b811f2.zip
chromium_src-7cd83d1caff7fa1090d9fc8eadb7474cb3b811f2.tar.gz
chromium_src-7cd83d1caff7fa1090d9fc8eadb7474cb3b811f2.tar.bz2
Allow theming of colors for the Mac.
BUG=http://crbug.com/18438 TEST=none Review URL: http://codereview.chromium.org/162010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23023 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.h')
-rw-r--r--chrome/browser/browser_theme_provider.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h
index 525d396..a1db2ff 100644
--- a/chrome/browser/browser_theme_provider.h
+++ b/chrome/browser/browser_theme_provider.h
@@ -160,6 +160,7 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id);
#elif defined(OS_MACOSX)
virtual NSImage* GetNSImageNamed(int id);
+ virtual NSColor* GetNSColor(int id);
virtual NSColor* GetNSColorTint(int id);
#endif
@@ -242,6 +243,12 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
// Returns the default tint for the given tint |id| TINT_* enum value.
skia::HSL GetDefaultTint(int id);
+ // Returns the string key for the given color |id| COLOR_* enum value.
+ const std::string GetColorKey(int id);
+
+ // Returns the default color for the given color |id| COLOR_* enum value.
+ SkColor GetDefaultColor(int id);
+
// Get the specified tint - |id| is one of the TINT_* enum values.
skia::HSL GetTint(int id);
@@ -283,8 +290,6 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
// Save the id of the last theme installed.
void SaveThemeID(const std::string& id);
- SkColor FindColor(const char* id, SkColor default_color);
-
// Frees generated images and clears the image cache.
void ClearCaches();