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

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

Issue 491023: Add a keyboard shortcut on Escape that emits the IDC_STOP command.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/cocoa/chrome_event_processing_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698