summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/themed_window.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 22:51:53 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 22:51:53 +0000
commitcfee77b14ffaaa57961b19c293b8cfe0659b5386 (patch)
tree7b944b22877e65d92880ae1b9a1bcdf4a84ac5f5 /chrome/browser/cocoa/themed_window.h
parent5064ec7fdc132b608f1a96e7d8daeb9a4ccdc235 (diff)
downloadchromium_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.h11
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