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_ |