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

Unified Diff: chrome/browser/cocoa/chrome_event_processing_window.h

Issue 303002: Make window cycling work even if you change it to something else than cmd-` in sysprefs. (Closed)
Patch Set: Fix spelling. Created 11 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/chrome_event_processing_window.h
diff --git a/chrome/browser/cocoa/chrome_event_processing_window.h b/chrome/browser/cocoa/chrome_event_processing_window.h
index b3cc1164609adf24c8166a20c3e24d15efefe020..59241b728a18e3eee8061a11d7f53e75acd84a28 100644
--- a/chrome/browser/cocoa/chrome_event_processing_window.h
+++ b/chrome/browser/cocoa/chrome_event_processing_window.h
@@ -12,7 +12,20 @@
// Override NSWindow to access unhandled keyboard events (for command
// processing); subclassing NSWindow is the only method to do
// this.
-@interface ChromeEventProcessingWindow : NSWindow
+@interface ChromeEventProcessingWindow : NSWindow {
+ @private
+ BOOL redispatchingEvent_;
+}
+
+// Returns |YES| if |event| has been shortcircuited and should not be processed
+// further.
+- (BOOL)shortcircuitEvent:(NSEvent*)event;
+
+// Sends an event to |NSApp sendEvent:|, but also makes sure that it's not
+// short-circuited to the RWHV. This is used to send keyboard events to the menu
+// and the cmd-` handler if a keyboard event comes back unhandled from the
+// renderer.
+- (void)redispatchEvent:(NSEvent*)event;
// See global_keyboard_shortcuts_mac.h for details on the next two functions.

Powered by Google App Engine
This is Rietveld 408576698