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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
(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 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.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698