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

Side by Side Diff: chrome/browser/cocoa/fullscreen_window.mm

Issue 1576019: [Mac] Get theme providers from a window's delegate, not its window controller... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/chrome_browser_window.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/cocoa/fullscreen_window.h" 5 #import "chrome/browser/cocoa/fullscreen_window.h"
6 6
7 #include "base/mac_util.h" 7 #include "base/mac_util.h"
8 #include "chrome/browser/browser_theme_provider.h" 8 #include "chrome/browser/browser_theme_provider.h"
9 #import "chrome/browser/cocoa/themed_window.h" 9 #import "chrome/browser/cocoa/themed_window.h"
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Explicitly enable |-performClose:| (see above); otherwise the fact that 77 // Explicitly enable |-performClose:| (see above); otherwise the fact that
78 // this window does not have a close button results in it being disabled. 78 // this window does not have a close button results in it being disabled.
79 if (action == @selector(performClose:)) 79 if (action == @selector(performClose:))
80 return YES; 80 return YES;
81 81
82 return [super validateUserInterfaceItem:item]; 82 return [super validateUserInterfaceItem:item];
83 } 83 }
84 84
85 - (ThemeProvider*)themeProvider { 85 - (ThemeProvider*)themeProvider {
86 return [[self windowController] themeProvider]; 86 return [[self delegate] themeProvider];
87 } 87 }
88 88
89 - (ThemedWindowStyle)themedWindowStyle { 89 - (ThemedWindowStyle)themedWindowStyle {
90 return [[self windowController] themedWindowStyle]; 90 return [[self delegate] themedWindowStyle];
91 } 91 }
92 92
93 - (NSPoint)themePatternPhase { 93 - (NSPoint)themePatternPhase {
94 return [[self windowController] themePatternPhase]; 94 return [[self delegate] themePatternPhase];
95 } 95 }
96 96
97 @end 97 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/chrome_browser_window.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698