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

Side by Side Diff: chrome/browser/ui/accelerator_utils.h

Issue 143493005: Allow extensions to remove and override the bookmark shortcut key (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update mac test fix Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_
6 #define CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_ 6 #define CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_
7 7
8 class Profile; 8 class Profile;
9 9
10 namespace ui { 10 namespace ui {
11 class Accelerator; 11 class Accelerator;
12 } 12 }
13 13
14 namespace chrome { 14 namespace chrome {
15 15
16 // Returns true if the given |accelerator| is currently registered by 16 // Returns true if the given |accelerator| is currently registered by
17 // Chrome. 17 // Chrome.
18 bool IsChromeAccelerator(const ui::Accelerator& accelerator, 18 bool IsChromeAccelerator(const ui::Accelerator& accelerator,
19 Profile* profile); 19 Profile* profile);
20 20
21 ui::Accelerator GetPrimaryChromeAcceleratorForCommandId(int command_id);
22
21 } // namespace chrome 23 } // namespace chrome
22 24
23 #endif // CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_ 25 #endif // CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_keybinding_apitest.cc ('k') | chrome/browser/ui/cocoa/accelerator_utils_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698