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

Unified Diff: chrome/browser/ui/cocoa/themed_window.h

Issue 900613003: Mac: Make it easier for views to correctly draw with a theme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gyp
Patch Set: Created 5 years, 11 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
Index: chrome/browser/ui/cocoa/themed_window.h
diff --git a/chrome/browser/ui/cocoa/themed_window.h b/chrome/browser/ui/cocoa/themed_window.h
index 592e56722ae9d984e2bcc39d2e5553bbba4afd98..ab4b18c6375a12da0716370bbb6fd19cd4c5bc9c 100644
--- a/chrome/browser/ui/cocoa/themed_window.h
+++ b/chrome/browser/ui/cocoa/themed_window.h
@@ -32,7 +32,6 @@ enum ThemeImageAlignment {
};
// Implemented by windows that support theming.
-
@interface NSWindow (ThemeProvider)
- (ThemeProvider*)themeProvider;
- (ThemedWindowStyle)themedWindowStyle;
@@ -45,4 +44,17 @@ enum ThemeImageAlignment {
- (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment;
@end
+// Adopted by views that want to redraw when the theme changed, or when the
+// window's active status changed.
+@protocol ThemedWindowDrawing
+
+// Called by the window controller when the theme changed.
+- (void)windowDidChangeTheme;
+
+// Called by the window controller when the window gained or lost main window
+// status.
+- (void)windowDidChangeActive;
+
+@end
+
#endif // CHROME_BROWSER_UI_COCOA_THEMED_WINDOW_H_

Powered by Google App Engine
This is Rietveld 408576698