1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_UI_COCOA_THEMED_WINDOW_H_ 6 #define CHROME_BROWSER_UI_COCOA_THEMED_WINDOW_H_ 7 #pragma once 8 9 #import <Cocoa/Cocoa.h> 10 11 namespace ui { 12 class ThemeProvider; 13 } 14 using ui::ThemeProvider; 15 16 // Bit flags; mix-and-match as necessary. 17 enum { 18 THEMED_NORMAL = 0, 19 THEMED_INCOGNITO = 1 << 0, 20 THEMED_POPUP = 1 << 1, 21 THEMED_DEVTOOLS = 1 << 2 22 }; 23 typedef NSUInteger ThemedWindowStyle; 24 25 // Implemented by windows that support theming. 26 27 @interface NSWindow (ThemeProvider) 28 - (ThemeProvider*)themeProvider; 29 - (ThemedWindowStyle)themedWindowStyle; 30 - (NSPoint)themePatternPhase; 31 @end 32 33 #endif // CHROME_BROWSER_UI_COCOA_THEMED_WINDOW_H_ 34