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

Side by Side Diff: chrome/common/extensions/docs/server2/templates/intros/experimental_keybinding.html

Issue 10750017: Extensions Docs Server: Intro data source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!-- BEGIN AUTHORED CONTENT --> 1 <!-- BEGIN AUTHORED CONTENT -->
2 <p> 2 <p>
3 The keybinding API allows you to add keyboard shortcuts that trigger actions in 3 The keybinding API allows you to add keyboard shortcuts that trigger actions in
4 your extension. An action can be opening the browser action or page action popup 4 your extension. An action can be opening the browser action or page action popup
5 or sending a command to the extension. 5 or sending a command to the extension.
6 </p> 6 </p>
7 <h2 id="manifest">Manifest</h2> 7 <h2 id="manifest">Manifest</h2>
8 <p> 8 <p>
9 In addition to the "experimental" permission you must declare the "keybinding" 9 In addition to the "experimental" permission you must declare the "keybinding"
10 permission in your extension's manifest to use this API and set manifest_version 10 permission in your extension's manifest to use this API and set manifest_version
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 console.log('Command:', command); 62 console.log('Command:', command);
63 }); 63 });
64 </pre> 64 </pre>
65 <p>The '_execute_browser_action' and '_execute_page_action' commands are 65 <p>The '_execute_browser_action' and '_execute_page_action' commands are
66 reserved for the action of opening your extension's popups. They won't normally 66 reserved for the action of opening your extension's popups. They won't normally
67 generate events that you can handle. If you need to take action based on your 67 generate events that you can handle. If you need to take action based on your
68 popup opening, consider listening for an 'onDomReady' event inside your popup's 68 popup opening, consider listening for an 'onDomReady' event inside your popup's
69 code. 69 code.
70 </p> 70 </p>
71 <!-- END AUTHORED CONTENT --> 71 <!-- END AUTHORED CONTENT -->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698