blob: 3c43577b9c193be660047dc0450cbaf2e1aed93a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_H_
#define CHROME_BROWSER_COCOA_BROWSER_WINDOW_H_
#import <Cocoa/Cocoa.h>
// Cocoa class representing a Chrome browser window.
// We need to override NSWindow with our own class since we need access to all
// unhandled keyboard events and subclassing NSWindow is the only method to do
// this.
@interface ChromeBrowserWindow : NSWindow
// Override, so we can handle global keyboard events.
- (BOOL)performKeyEquivalent:(NSEvent*)theEvent;
@end
#endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_H_
|