| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |