| 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..5041cea10cbc5e040cc6cd7885a56bee405c4056
|
| --- /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 GetAcceleratorPriorityById(
|
| + const ui::Accelerator& accelerator,
|
| + const std::string& extension_id,
|
| + content::BrowserContext* browser_context);
|
| +
|
| +#endif // CHROME_BROWSER_UI_EXTENSIONS_ACCELERATOR_PRIORITY_H_
|
|
|