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

Unified Diff: chrome/browser/ui/browser_window.h

Issue 553243002: Track the active ExtensionKeybindingRegistry and make it available to EventRewriter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 3 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/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 880f6e8adf69af76bec3fa32f86c0ddd61b4a09d..e83a1fc2ddd41f0cd0cf67a03afed5609c55a211 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 if the given |accelerator| is registered by an extension.
Finnur 2014/09/10 10:15:16 nit: s/if/whether/
David Tseng 2014/09/10 21:19:07 Done.
+ virtual bool IsExtensionCommandRegistered(
+ const ui::Accelerator& accelerator) = 0;
+
protected:
friend class BrowserCloseManager;
friend class BrowserView;

Powered by Google App Engine
This is Rietveld 408576698