Chromium Code Reviews| Index: chrome/browser/ui/browser_window.h |
| diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h |
| index 880f6e8adf69af76bec3fa32f86c0ddd61b4a09d..801e6e5f7a6600db9390fa2ac0264a74e5687f4a 100644 |
| --- a/chrome/browser/ui/browser_window.h |
| +++ b/chrome/browser/ui/browser_window.h |
| @@ -16,6 +16,7 @@ |
| #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
| #include "components/content_settings/core/common/content_settings_types.h" |
| #include "components/translate/core/common/translate_errors.h" |
| +#include "ui/base/accelerators/accelerator.h" |
| #include "ui/base/base_window.h" |
| #include "ui/base/window_open_disposition.h" |
| #include "ui/gfx/native_widget_types.h" |
| @@ -402,6 +403,10 @@ class BrowserWindow : public ui::BaseWindow { |
| virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
| const extensions::Command& command) = 0; |
| + // Returns whether the given |accelerator| is registered by an extension. |
| + virtual bool IsExtensionCommandRegistered( |
|
sky
2014/09/10 23:55:14
This feels like something profile specific, and no
David Tseng
2014/09/11 00:05:25
In the case of global commands, the registry is as
Finnur
2014/09/11 09:51:58
It has been quite a while, but as I recall it is b
|
| + const ui::Accelerator& accelerator) = 0; |
| + |
| protected: |
| friend class BrowserCloseManager; |
| friend class BrowserView; |