summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_window.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_window.h')
-rw-r--r--chrome/browser/browser_window.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h
index 5de0857..b26b447 100644
--- a/chrome/browser/browser_window.h
+++ b/chrome/browser/browser_window.h
@@ -21,6 +21,7 @@ class TabContents;
class TabContentsContainer;
class TemplateURL;
class ToolbarView;
+struct NativeWebKeyboardEvent;
namespace gfx {
class Rect;
@@ -255,6 +256,10 @@ class BrowserWindow {
// Shows the app menu (for accessibility).
virtual void ShowAppMenu() = 0;
+ // Returns the id of the keyboard accelerator associated with the given
+ // keyboard event if one exists, otherwise -1.
+ virtual int GetCommandId(const NativeWebKeyboardEvent& event) = 0;
+
// Construct a BrowserWindow implementation for the specified |browser|.
static BrowserWindow* CreateBrowserWindow(Browser* browser);