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

Unified Diff: chrome/common/extensions/docs/server2/templates/intros/commands.html

Issue 10894049: Make links to samples and re-enable sample list for api references. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: patch'd Created 8 years, 4 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/server2/templates/intros/commands.html
diff --git a/chrome/common/extensions/docs/server2/templates/intros/experimental_commands.html b/chrome/common/extensions/docs/server2/templates/intros/commands.html
similarity index 87%
rename from chrome/common/extensions/docs/server2/templates/intros/experimental_commands.html
rename to chrome/common/extensions/docs/server2/templates/intros/commands.html
index 3299ae9caf8cb5b214c28a2b4b826a958b39aff7..283ea1afa07e77f4b59d1b4adb21dc278dcc26cf 100644
--- a/chrome/common/extensions/docs/server2/templates/intros/experimental_commands.html
+++ b/chrome/common/extensions/docs/server2/templates/intros/commands.html
@@ -6,16 +6,14 @@ or sending a command to the extension.
<h2 id="manifest">Manifest</h2>
<p>
-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.
+You must declare the "commands" permission in your extension's manifest to use
+this API and set manifest_version to (at least) 2.
</p>
<pre>{
"name": "My extension",
...
<b> "permissions": [
- "experimental",
"commands",
]</b>,
...
@@ -63,7 +61,7 @@ defined in the manifest (except for '_execute_browser_action' and
'_execute_page_action') via onCommand.addListener. For example:</p>
<pre>
-chrome.experimental.commands.onCommand.addListener(function(command) {
+chrome.commands.onCommand.addListener(function(command) {
console.log('Command:', command);
});
</pre>
@@ -73,4 +71,4 @@ reserved for the action of opening your extension's popups. They won't normally
generate events that you can handle. If you need to take action based on your
popup opening, consider listening for an 'onDomReady' event inside your popup's
code.
-</p>
+</p>

Powered by Google App Engine
This is Rietveld 408576698