diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 22:51:53 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 22:51:53 +0000 |
commit | cfee77b14ffaaa57961b19c293b8cfe0659b5386 (patch) | |
tree | 7b944b22877e65d92880ae1b9a1bcdf4a84ac5f5 /chrome/browser/cocoa/themed_window.h | |
parent | 5064ec7fdc132b608f1a96e7d8daeb9a4ccdc235 (diff) | |
download | chromium_src-cfee77b14ffaaa57961b19c293b8cfe0659b5386.zip chromium_src-cfee77b14ffaaa57961b19c293b8cfe0659b5386.tar.gz chromium_src-cfee77b14ffaaa57961b19c293b8cfe0659b5386.tar.bz2 |
Fix theming on popup windows (Mac).
BUG=http://crbug.com/37690
TEST=as in comment 3 on the bug
Review URL: http://codereview.chromium.org/729002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41084 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/themed_window.h')
-rw-r--r-- | chrome/browser/cocoa/themed_window.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/themed_window.h b/chrome/browser/cocoa/themed_window.h index affd452..c1b4a31 100644 --- a/chrome/browser/cocoa/themed_window.h +++ b/chrome/browser/cocoa/themed_window.h @@ -9,11 +9,20 @@ class ThemeProvider; +// Bit flags; mix-and-match as necessary. +enum { + THEMED_NORMAL = 0, + THEMED_INCOGNITO = 1 << 0, + THEMED_POPUP = 1 << 1, + THEMED_DEVTOOLS = 1 << 2 +}; +typedef NSUInteger ThemedWindowStyle; + // Implemented by windows that support theming. @interface NSWindow (ThemeProvider) - (ThemeProvider*)themeProvider; -- (BOOL)themeIsIncognito; +- (ThemedWindowStyle)themedWindowStyle; - (NSPoint)themePatternPhase; @end |