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

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

Issue 259023: [Mac] Window titles for Expose. (Closed)
Patch Set: Fix unit_test expectations for Release. Created 11 years, 2 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) 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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/chrome_browser_window.h ('k') | chrome/browser/cocoa/chrome_browser_window_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698