Index: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h |
diff --git a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h |
index db7357ee50b4f9476de5d6ca50f3e339dbed4628..9d97a57203deb1c7f283fce183950f4917a0c117 100644 |
--- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h |
+++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h |
@@ -17,6 +17,7 @@ |
#import "third_party/GTM/AppKit/GTMWindowSheetController.h" |
#include "ui/gfx/rect.h" |
+class ExtensionKeybindingRegistryCocoa; |
class Profile; |
class ShellWindowCocoa; |
@class ShellNSWindow; |
@@ -36,6 +37,10 @@ class ShellWindowCocoa; |
@property(assign, nonatomic) ShellWindowCocoa* shellWindow; |
+// 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; |
+ |
@end |
// Cocoa bridge to ShellWindow. |
@@ -79,6 +84,9 @@ class ShellWindowCocoa : public NativeShellWindow { |
// Called when the window is moved. |
void WindowDidMove(); |
+ // Called to handle a key event. |
+ bool HandledByExtensionCommand(NSEvent* event); |
+ |
protected: |
// NativeShellWindow implementation. |
virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
@@ -118,6 +126,10 @@ class ShellWindowCocoa : public NativeShellWindow { |
std::vector<extensions::DraggableRegion> draggable_regions_; |
+ // The Extension Command Registry used to determine which keyboard events to |
+ // handle. |
+ scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); |
}; |