OLD | NEW |
| (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_BROWSER_WINDOW_H_ | |
6 #define CHROME_BROWSER_COCOA_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 | |
16 // Override, so we can handle global keyboard events. | |
17 - (BOOL)performKeyEquivalent:(NSEvent*)theEvent; | |
18 @end | |
19 | |
20 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_H_ | |
OLD | NEW |