| 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/ui/cocoa/fullscreen_window.h" | 5 #import "chrome/browser/ui/cocoa/fullscreen_window.h" |
| 6 | 6 |
| 7 #include "base/mac_util.h" | |
| 8 #include "chrome/browser/themes/browser_theme_provider.h" | 7 #include "chrome/browser/themes/browser_theme_provider.h" |
| 9 #import "chrome/browser/ui/cocoa/themed_window.h" | 8 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 10 | 9 |
| 11 @implementation FullscreenWindow | 10 @implementation FullscreenWindow |
| 12 | 11 |
| 13 // Make sure our designated initializer gets called. | 12 // Make sure our designated initializer gets called. |
| 14 - (id)init { | 13 - (id)init { |
| 15 return [self initForScreen:[NSScreen mainScreen]]; | 14 return [self initForScreen:[NSScreen mainScreen]]; |
| 16 } | 15 } |
| 17 | 16 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 90 |
| 92 // Explicitly enable |-performClose:| (see above); otherwise the fact that | 91 // Explicitly enable |-performClose:| (see above); otherwise the fact that |
| 93 // this window does not have a close button results in it being disabled. | 92 // this window does not have a close button results in it being disabled. |
| 94 if (action == @selector(performClose:)) | 93 if (action == @selector(performClose:)) |
| 95 return YES; | 94 return YES; |
| 96 | 95 |
| 97 return [super validateUserInterfaceItem:item]; | 96 return [super validateUserInterfaceItem:item]; |
| 98 } | 97 } |
| 99 | 98 |
| 100 @end | 99 @end |
| OLD | NEW |