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

Unified Diff: chrome/common/extensions/docs/static/experimental.commands.html

Issue 10833071: Renaming the 'keybinding' permission to 'commands'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/static/experimental.commands.html
===================================================================
--- chrome/common/extensions/docs/static/experimental.commands.html (revision 148306)
+++ chrome/common/extensions/docs/static/experimental.commands.html (working copy)
@@ -1,13 +1,13 @@
<!-- BEGIN AUTHORED CONTENT -->
<p>
-The keybinding API allows you to add keyboard shortcuts that trigger actions in
+The commands API allows you to add keyboard shortcuts that trigger actions in
your extension. An action can be opening the browser action or page action popup
or sending a command to the extension.
</p>
<h2 id="manifest">Manifest</h2>
<p>
-In addition to the "experimental" permission you must declare the "keybinding"
+In addition to the "experimental" permission you must declare the "commands"
permission in your extension's manifest to use this API and set manifest_version
to (at least) 2.
</p>
@@ -17,13 +17,13 @@
...
<b> "permissions": [
"experimental",
- "keybinding",
+ "commands",
]</b>,
...
}</pre>
<h2 id="usage">Usage</h2>
-<p>The keybinding API allows you to define specific commands, and bind them to a
+<p>The commands API allows you to define specific commands, and bind them to a
default key combination. Each command your extension accepts must be listed in
the manifest as an attribute of the 'commands' manifest key. Note: Combinations
that involve Ctrl+Alt are not permitted in order to avoid conflicts with the
@@ -64,7 +64,7 @@
'_execute_page_action') via onCommand.addListener. For example:</p>
<pre>
-chrome.experimental.keybinding.onCommand.addListener(function(command) {
+chrome.experimental.commands.onCommand.addListener(function(command) {
console.log('Command:', command);
});
</pre>

Powered by Google App Engine
This is Rietveld 408576698