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

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: Fix bool vs BOOL. 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..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;
« no previous file with comments | « chrome/browser/extensions/extension_keybinding_registry.h ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698