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

Unified Diff: chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/background.js

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/test/data/extensions/api_test/keybinding/dont_overwrite_system/background.js
diff --git a/chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/background.js b/chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/background.js
new file mode 100644
index 0000000000000000000000000000000000000000..cef236497cec899f254238c528beae93ba4e4116
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/background.js
@@ -0,0 +1,11 @@
+// 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.
+
+// Called when the user activates the command.
+chrome.commands.onCommand.addListener(function(command) {
+ chrome.tabs.executeScript(null, {
+ code: "document.body.bgColor='" + command + "'" });
+});
+
+chrome.test.notifyPass();
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chrome/test/data/extensions/api_test/keybinding/dont_overwrite_system/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698