summaryrefslogtreecommitdiffstats
path: root/app/theme_provider.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-01 18:49:07 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-01 18:49:07 +0000
commit9366cf747481b8fb04f5e76beae807d31d4c6aff (patch)
tree91d2de15704752993dca73abd204087349f439dc /app/theme_provider.h
parent549935ac8361186f358f80b3b15ec31b1329a85a (diff)
downloadchromium_src-9366cf747481b8fb04f5e76beae807d31d4c6aff.zip
chromium_src-9366cf747481b8fb04f5e76beae807d31d4c6aff.tar.gz
chromium_src-9366cf747481b8fb04f5e76beae807d31d4c6aff.tar.bz2
Allow getting the theme tint as a value so that it can be applied independent of the theme provider. Since the Mac needs it to tint its vector resources it's added to the Mac.
BUG=none TEST=none Review URL: http://codereview.chromium.org/151153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/theme_provider.h')
-rw-r--r--app/theme_provider.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/theme_provider.h b/app/theme_provider.h
index 75e9255..b004f3b 100644
--- a/app/theme_provider.h
+++ b/app/theme_provider.h
@@ -12,8 +12,10 @@
#include <gdk/gdk.h>
#elif defined(OS_MACOSX)
#ifdef __OBJC__
+@class NSColor;
@class NSImage;
#else
+class NSColor;
class NSImage;
#endif // __OBJC__
#endif // OS_*
@@ -63,13 +65,17 @@ class ThemeProvider {
// is missing.
virtual GdkPixbuf* GetPixbufNamed(int id) = 0;
#elif defined(OS_MACOSX)
- // Gets the NSImage with the specified |id|. Returns a pointer to a shared
- // instance of the NSImage. This shared NSImage is owned by the theme
- // provider and should not be freed.
+ // Gets the NSImage with the specified |id|.
//
// The bitmap is not assumed to exist. If a theme does not provide an image,
// this function will return nil.
+
virtual NSImage* GetNSImageNamed(int id) = 0;
+ // Gets the NSColor for tinting with the specified |id|.
+ //
+ // The tint is not assumed to exist. If a theme does not provide a tint with
+ // that id, this function will return nil.
+ virtual NSColor* GetNSColorTint(int id) = 0;
#endif
};