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

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

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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_COCOA_CHROME_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_COCOA_CHROME_BROWSER_WINDOW_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 // Cocoa class representing a Chrome browser window.
11 // We need to override NSWindow with our own class since we need access to all
12 // unhandled keyboard events and subclassing NSWindow is the only method to do
13 // this.
14 @interface ChromeBrowserWindow : NSWindow {
15 BOOL shouldHideTitle_;
16 }
17
18 // Override, so we can handle global keyboard events.
19 - (BOOL)performKeyEquivalent:(NSEvent*)theEvent;
20
21 // Tells the window to suppress title drawing.
22 - (void)setShouldHideTitle:(BOOL)flag;
23
24 @end
25
26 @interface ChromeBrowserWindow (UndocumentedAPI)
27
28 // Undocumented Cocoa API to suppress drawing of the window's title.
29 // -setTitle: still works, but the title set only applies to the
30 // miniwindow and menus (and, importantly, Expose). Overridden to
31 // return |shouldHideTitle_|.
32 -(BOOL)_isTitleHidden;
33
34 @end
35
36 #endif // CHROME_BROWSER_COCOA_CHROME_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.mm ('k') | chrome/browser/cocoa/chrome_browser_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698