OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_ACCELERATOR_PRIORITY_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_ACCELERATOR_PRIORITY_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "ui/base/accelerators/accelerator_manager.h" |
| 11 |
| 12 namespace content { |
| 13 class BrowserContext; |
| 14 } |
| 15 |
| 16 namespace extensions { |
| 17 class Extension; |
| 18 } |
| 19 |
| 20 namespace ui { |
| 21 class Accelerator; |
| 22 } |
| 23 |
| 24 // Returns the registration priority to be used when registering |accelerator| |
| 25 // for |extension|. |
| 26 ui::AcceleratorManager::HandlerPriority GetAcceleratorPriority( |
| 27 const ui::Accelerator& accelerator, |
| 28 const extensions::Extension* extension); |
| 29 |
| 30 // Returns the registration priority to be used when registering |accelerator| |
| 31 // for the extension with ID |extension_id|. |
| 32 ui::AcceleratorManager::HandlerPriority GetAcceleratorPriorityById( |
| 33 const ui::Accelerator& accelerator, |
| 34 const std::string& extension_id, |
| 35 content::BrowserContext* browser_context); |
| 36 |
| 37 #endif // CHROME_BROWSER_UI_EXTENSIONS_ACCELERATOR_PRIORITY_H_ |
OLD | NEW |