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

Side by Side Diff: chrome/common/extensions/docs/apps/permissions.html

Issue 10826261: Extension Docs: Remove out dated version notes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note:
2 1) The <head> information in this page is significant, should be uniform 2 1) The <head> information in this page is significant, should be uniform
3 across api docs and should be edited only with knowledge of the 3 across api docs and should be edited only with knowledge of the
4 templating mechanism. 4 templating mechanism.
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a
6 browser, it will be re-generated from the template, json schema and 6 browser, it will be re-generated from the template, json schema and
7 authored overview content. 7 authored overview content.
8 4) The <body>.innerHTML is also generated by an offline step so that this 8 4) The <body>.innerHTML is also generated by an offline step so that this
9 page may easily be indexed by search engines. 9 page may easily be indexed by search engines.
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 <li>management</li> 307 <li>management</li>
308 <li>notifications</li> 308 <li>notifications</li>
309 <li>pageCapture</li> 309 <li>pageCapture</li>
310 <li>tabs</li> 310 <li>tabs</li>
311 <li>topSites</li> 311 <li>topSites</li>
312 <li>webNavigation</li> 312 <li>webNavigation</li>
313 <li>webRequest</li> 313 <li>webRequest</li>
314 <li>webRequestBlocking</li> 314 <li>webRequestBlocking</li>
315 </ul> 315 </ul>
316 <p></p> 316 <p></p>
317 <p class="note">
318 <b>Version note:</b> This list is correct as of Chrome 17.
319 More optional permissions might be allowed in future releases.
320 </p>
321 <h3 id="request"> Step 3: Request optional permissions </h3> 317 <h3 id="request"> Step 3: Request optional permissions </h3>
322 <p> 318 <p>
323 Request the permissions from within a user gesture using 319 Request the permissions from within a user gesture using
324 <code>permissions.request()</code>: 320 <code>permissions.request()</code>:
325 </p><pre>document.querySelector('#my-button').addEventListener('click', function (event) { 321 </p><pre>document.querySelector('#my-button').addEventListener('click', function (event) {
326 // Permissions must be requested from inside a user gesture, like a button's 322 // Permissions must be requested from inside a user gesture, like a button's
327 // click handler. 323 // click handler.
328 chrome.permissions.request({ 324 chrome.permissions.request({
329 permissions: ['tabs'], 325 permissions: ['tabs'],
330 origins: ['http://www.google.com/'] 326 origins: ['http://www.google.com/']
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 _uff=0; 889 _uff=0;
894 urchinTracker(); 890 urchinTracker();
895 } 891 }
896 catch(e) {/* urchinTracker not available. */} 892 catch(e) {/* urchinTracker not available. */}
897 </script> 893 </script>
898 <!-- end analytics --> 894 <!-- end analytics -->
899 </div> 895 </div>
900 </div> <!-- /gc-footer --> 896 </div> <!-- /gc-footer -->
901 </div> <!-- /gc-container --> 897 </div> <!-- /gc-container -->
902 </body></html> 898 </body></html>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/apps/contextMenus.html ('k') | chrome/common/extensions/docs/extensions/contextMenus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698