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

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: 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..7b63cb84bb1ccf25259a6be03a8b546d2eaf1c79 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 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.
+ 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