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

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

Issue 1680773006: Implement Material Design for Mac toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md_master
Patch Set: Change button hover and pressed styles. Created 4 years, 9 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 3d9096806558a2cf87ba9e60fc2f1dd4e0e2c729..7c57d58eac86e99fafe54ed5632f410f7b8ae49b 100644
--- a/chrome/browser/ui/cocoa/themed_window.h
+++ b/chrome/browser/ui/cocoa/themed_window.h
@@ -35,6 +35,12 @@ enum ThemeImageAlignment {
@interface NSWindow (ThemeProvider)
- (const ThemeProvider*)themeProvider;
- (ThemedWindowStyle)themedWindowStyle;
+- (BOOL)inIncognitoMode;
+// Return YES if using the system (i.e. non-custom) theme and Incognito mode.
+- (BOOL)inIncognitoModeWithSystemTheme;
+// Return YES if Incongnito, or a custom theme with a dark toolbar color or
+// light tab text.
+- (BOOL)hasDarkTheme;
// Returns the position in window coordinates that the top left of a theme
// image with |alignment| should be painted at. The result of this method can
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/avatar_icon_controller.mm ('k') | chrome/browser/ui/cocoa/themed_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698