1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_UI_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_
6 #define CHROME_BROWSER_UI_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_
8 #import <Cocoa/Cocoa.h>
10 #import "base/mac/scoped_nsobject.h"
11 #import "ui/base/cocoa/command_dispatcher.h"
12 #import "ui/base/cocoa/underlay_opengl_hosting_window.h"
14 @
class ChromeCommandDispatcherDelegate
;
16 // Override NSWindow to access unhandled keyboard events (for command
17 // processing); subclassing NSWindow is the only method to do
19 @interface ChromeEventProcessingWindow
20 : UnderlayOpenGLHostingWindow
<CommandDispatchingWindow
>
22 // Checks if |event| is a window, delayed window, or browser keyboard shortcut.
23 // (See global_keyboard_shortcuts_mac.h for details). If so, execute the
24 // associated command. Returns YES if the event was handled.
25 - (BOOL
)handleExtraKeyboardShortcut
:(NSEvent
*)event
;
29 #endif // CHROME_BROWSER_UI_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_