Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2206)

Unified Diff: app/theme_provider.h

Issue 151153: Allow getting the theme tint as a value so that it can be applied independent... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/browser_theme_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/theme_provider.h
===================================================================
--- app/theme_provider.h (revision 19724)
+++ app/theme_provider.h (working copy)
@@ -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 @@
// 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
};
« no previous file with comments | « no previous file | chrome/browser/browser_theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698