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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.h

Issue 10824307: Port Extension Commands to Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/ui/cocoa/browser_window_controller.h
===================================================================
--- chrome/browser/ui/cocoa/browser_window_controller.h (revision 151684)
+++ chrome/browser/ui/cocoa/browser_window_controller.h (working copy)
@@ -34,6 +34,7 @@
@class ChromeToMobileBubbleController;
@class DevToolsController;
@class DownloadShelfController;
+class ExtensionKeybindingRegistryCocoa;
@class FindBarCocoaController;
@class FullscreenWindow;
@class GTMWindowSheetController;
@@ -161,6 +162,10 @@
// -windowDidEnterFullScreen: gets called.
GURL fullscreenUrl_;
FullscreenExitBubbleType fullscreenBubbleType_;
+
+ // The Extension Command Registry used to determine which keyboard events to
+ // handle.
+ scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
}
// A convenience class method which gets the |BrowserWindowController| for a
@@ -272,6 +277,10 @@
// "chrome/app/chrome_command_ids.h" file.
- (void)executeCommand:(int)command;
+// Consults the Command Registry to see if this |event| needs to be handled as
+// an extension command and returns YES if so (NO otherwise).
+- (BOOL)handledByExtensionCommand:(NSEvent*)event;
+
// Delegate method for the status bubble to query its base frame.
- (NSRect)statusBubbleBaseFrame;

Powered by Google App Engine
This is Rietveld 408576698