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

Unified Diff: chrome/browser/ui/accelerator_utils.h

Issue 13044014: Make sure manifest specified shortcut for Extension Command can not override the built-in shortcuts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac's secondary shortcuts can be overwritten Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/accelerator_utils.h
diff --git a/chrome/browser/ui/accelerator_utils.h b/chrome/browser/ui/accelerator_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..8d29e754731057d1b3ed004bc7be8a2de3908c21
--- /dev/null
+++ b/chrome/browser/ui/accelerator_utils.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2013 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_ACCELERATOR_UTILS_H_
+#define CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_
+
+class Profile;
+
+namespace ui {
+class Accelerator;
+}
+
+namespace chrome {
+
+// Returns true if the given |accelerator| is currently registered by
+// Chrome.
+bool IsChromeAccelerator(const ui::Accelerator& accelerator,
+ Profile* profile);
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_
« 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