| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser_window.h" | 5 #import "chrome/browser/cocoa/chrome_browser_window.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "chrome/browser/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/cocoa/browser_window_controller.h" |
| 9 #include "chrome/browser/global_keyboard_shortcuts_mac.h" | 9 #include "chrome/browser/global_keyboard_shortcuts_mac.h" |
| 10 | 10 |
| 11 @implementation ChromeBrowserWindow | 11 @implementation ChromeBrowserWindow |
| 12 | 12 |
| 13 - (BOOL)performKeyEquivalent:(NSEvent*)event { | 13 - (BOOL)performKeyEquivalent:(NSEvent*)event { |
| 14 // Extract info from |event|. | 14 // Extract info from |event|. |
| 15 NSUInteger modifers = [event modifierFlags]; | 15 NSUInteger modifers = [event modifierFlags]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 28 DCHECK([controller respondsToSelector:@selector(executeCommand:)]); | 28 DCHECK([controller respondsToSelector:@selector(executeCommand:)]); |
| 29 | 29 |
| 30 if (cmdNum != -1) { | 30 if (cmdNum != -1) { |
| 31 [controller executeCommand:cmdNum]; | 31 [controller executeCommand:cmdNum]; |
| 32 return YES; | 32 return YES; |
| 33 } | 33 } |
| 34 | 34 |
| 35 return [super performKeyEquivalent:event]; | 35 return [super performKeyEquivalent:event]; |
| 36 } | 36 } |
| 37 | 37 |
| 38 - (void)setShouldHideTitle:(BOOL)flag { |
| 39 shouldHideTitle_ = flag; |
| 40 } |
| 41 |
| 42 -(BOOL)_isTitleHidden { |
| 43 return shouldHideTitle_; |
| 44 } |
| 45 |
| 38 @end | 46 @end |
| OLD | NEW |