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

Side by Side Diff: chrome/browser/ui/cocoa/themed_window.mm

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/themed_window.h" 5 #import "chrome/browser/ui/cocoa/themed_window.h"
6 6
7 // Default implementations; used mostly for tests so that the hosting windows 7 // Default implementations; used mostly for tests so that the hosting windows
8 // don't needs to know about the theming machinery. 8 // don't needs to know about the theming machinery.
9 @implementation NSWindow (ThemeProvider) 9 @implementation NSWindow (ThemeProvider)
10 10
11 - (const ThemeProvider*)themeProvider { 11 - (const ThemeProvider*)themeProvider {
12 return NULL; 12 return NULL;
13 } 13 }
14 14
15 - (ThemedWindowStyle)themedWindowStyle { 15 - (ThemedWindowStyle)themedWindowStyle {
16 return THEMED_NORMAL; 16 return THEMED_NORMAL;
17 } 17 }
18 18
19 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment { 19 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment {
20 return NSZeroPoint; 20 return NSZeroPoint;
21 } 21 }
22 22
23 - (BOOL)inIncognitoMode {
24 return NO;
25 }
26
27 - (BOOL)inIncognitoModeWithSystemTheme {
28 return NO;
29 }
30
31 - (BOOL)hasDarkTheme {
32 return NO;
33 }
34
23 @end 35 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/themed_window.h ('k') | chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698