OLD | NEW |
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 #ifndef CHROME_BROWSER_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_ |
6 #define CHROME_BROWSER_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_ | 6 #define CHROME_BROWSER_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // renderer. | 24 // renderer. |
25 // Returns |YES| if |event| has been handled. | 25 // Returns |YES| if |event| has been handled. |
26 - (BOOL)redispatchEvent:(NSEvent*)event; | 26 - (BOOL)redispatchEvent:(NSEvent*)event; |
27 | 27 |
28 // See global_keyboard_shortcuts_mac.h for details on the next two functions. | 28 // See global_keyboard_shortcuts_mac.h for details on the next two functions. |
29 | 29 |
30 // Checks if |event| is a window keyboard shortcut. If so, dispatches it to the | 30 // Checks if |event| is a window keyboard shortcut. If so, dispatches it to the |
31 // window controller's |executeCommand:| and returns |YES|. | 31 // window controller's |executeCommand:| and returns |YES|. |
32 - (BOOL)handleExtraWindowKeyboardShortcut:(NSEvent*)event; | 32 - (BOOL)handleExtraWindowKeyboardShortcut:(NSEvent*)event; |
33 | 33 |
| 34 // Checks if |event| is a delayed window keyboard shortcut. If so, dispatches |
| 35 // it to the window controller's |executeCommand:| and returns |YES|. |
| 36 - (BOOL)handleDelayedWindowKeyboardShortcut:(NSEvent*)event; |
| 37 |
34 // Checks if |event| is a browser keyboard shortcut. If so, dispatches it to the | 38 // Checks if |event| is a browser keyboard shortcut. If so, dispatches it to the |
35 // window controller's |executeCommand:| and returns |YES|. | 39 // window controller's |executeCommand:| and returns |YES|. |
36 - (BOOL)handleExtraBrowserKeyboardShortcut:(NSEvent*)event; | 40 - (BOOL)handleExtraBrowserKeyboardShortcut:(NSEvent*)event; |
37 | 41 |
38 // Override, so we can handle global keyboard events. | 42 // Override, so we can handle global keyboard events. |
39 - (BOOL)performKeyEquivalent:(NSEvent*)theEvent; | 43 - (BOOL)performKeyEquivalent:(NSEvent*)theEvent; |
40 | 44 |
41 @end | 45 @end |
42 | 46 |
43 #endif // CHROME_BROWSER_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_ | 47 #endif // CHROME_BROWSER_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_ |
OLD | NEW |