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

Unified Diff: chrome/browser/ui/extensions/accelerator_priority.h

Issue 360423002: Allow WebContents key handling to supplant extension overrides of the bookmark shortcut (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: address comments Created 6 years, 6 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/extensions/accelerator_priority.h
diff --git a/chrome/browser/ui/extensions/accelerator_priority.h b/chrome/browser/ui/extensions/accelerator_priority.h
new file mode 100644
index 0000000000000000000000000000000000000000..19460b58fee8872488e8f3d717d4c65549e6399d
--- /dev/null
+++ b/chrome/browser/ui/extensions/accelerator_priority.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_EXTENSIONS_ACCELERATOR_PRIORITY_H_
+#define CHROME_BROWSER_UI_EXTENSIONS_ACCELERATOR_PRIORITY_H_
+
+#include <string>
+
+#include "ui/base/accelerators/accelerator_manager.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace extensions {
+class Extension;
+}
+
+namespace ui {
+class Accelerator;
+}
+
+// Returns the registration priority to be used when registering |accelerator|
+// for |extension|.
+ui::AcceleratorManager::HandlerPriority GetAcceleratorPriority(
+ const ui::Accelerator& accelerator,
+ const extensions::Extension* extension);
+
+// Returns the registration priority to be used when registering |accelerator|
+// for the extension with ID |extension_id|.
+ui::AcceleratorManager::HandlerPriority GetAcceleratorPriority(
Finnur 2014/07/03 11:09:59 nit: Functions which only differ by signatures (pa
Mike Wittman 2014/07/07 18:43:58 Done.
+ const ui::Accelerator& accelerator,
+ const std::string& extension_id,
+ content::BrowserContext* browser_context);
+
+#endif // CHROME_BROWSER_UI_EXTENSIONS_ACCELERATOR_PRIORITY_H_

Powered by Google App Engine
This is Rietveld 408576698