diff options
Diffstat (limited to 'app/theme_provider.h')
-rw-r--r-- | app/theme_provider.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |