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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_view.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/views/toolbar/toolbar_view.h
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.h b/chrome/browser/ui/views/toolbar/toolbar_view.h
index ddb43be86da7796b73e4529c01fd8f28c327ccd6..6b82e38b9e0d758df1fd2a5d930ead96994af42b 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
@@ -94,6 +94,9 @@ class ToolbarView : public views::AccessiblePaneView,
void ExecuteExtensionCommand(const extensions::Extension* extension,
const extensions::Command& command);
+ // Returns whether the given |accelerator| is registered by an extension.
+ bool IsExtensionCommandRegistered(const ui::Accelerator& accelerator);
+
// Shows the app (wrench) menu. |for_drop| indicates whether the menu is
// opened for a drag-and-drop operation.
void ShowAppMenu(bool for_drop);

Powered by Google App Engine
This is Rietveld 408576698