| OLD | NEW |
| 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 ... | 462 ... |
| 463 <b>"optional_permissions": [ "tabs", "http://www.google.com/" ],</b> | 463 <b>"optional_permissions": [ "tabs", "http://www.google.com/" ],</b> |
| 464 ... | 464 ... |
| 465 }</pre> | 465 }</pre> |
| 466 <p></p> | 466 <p></p> |
| 467 | 467 |
| 468 <p> | 468 <p> |
| 469 You can specify any of the following as optional permissions: | 469 You can specify any of the following as optional permissions: |
| 470 </p><ul> | 470 </p><ul> |
| 471 <li><i>host permissions</i></li> | 471 <li><i>host permissions</i></li> |
| 472 <li>appNotifications</li> |
| 472 <li>background</li> | 473 <li>background</li> |
| 473 <li>bookmarks</li> | 474 <li>bookmarks</li> |
| 474 <li>clipboardRead</li> | 475 <li>clipboardRead</li> |
| 475 <li>clipboardWrite</li> | 476 <li>clipboardWrite</li> |
| 477 <li>contentSettings</li> |
| 476 <li>contextMenus</li> | 478 <li>contextMenus</li> |
| 477 <li>cookies</li> | 479 <li>cookies</li> |
| 478 <li>debugger</li> | 480 <li>debugger</li> |
| 479 <li>history</li> | 481 <li>history</li> |
| 480 <li>idle</li> | 482 <li>idle</li> |
| 481 <li>management</li> | 483 <li>management</li> |
| 482 <li>notifications</li> | 484 <li>notifications</li> |
| 485 <li>pageCapture</li> |
| 483 <li>tabs</li> | 486 <li>tabs</li> |
| 487 <li>webNavigation</li> |
| 488 <li>webRequest</li> |
| 489 <li>webRequestBlocking</li> |
| 484 </ul> | 490 </ul> |
| 485 <p></p> | 491 <p></p> |
| 486 | 492 |
| 487 <p class="note"> | 493 <p class="note"> |
| 488 <b>Version note:</b> This list is correct as of Chrome 16. | 494 <b>Version note:</b> This list is correct as of Chrome 17. |
| 489 More optional permissions might be allowed in future releases. | 495 More optional permissions might be allowed in future releases. |
| 490 </p> | 496 </p> |
| 491 | 497 |
| 492 <h3 id="request"> Step 3: Request optional permissions </h3> | 498 <h3 id="request"> Step 3: Request optional permissions </h3> |
| 493 <p> | 499 <p> |
| 494 Request the permissions from within a user gesture using | 500 Request the permissions from within a user gesture using |
| 495 <code>permissions.request()</code>: | 501 <code>permissions.request()</code>: |
| 496 </p><pre>document.querySelector('#my-button').addEventListener('click', function
(event) { | 502 </p><pre>document.querySelector('#my-button').addEventListener('click', function
(event) { |
| 497 // Permissions must be requested from inside a user gesture, like a button's | 503 // Permissions must be requested from inside a user gesture, like a button's |
| 498 // click handler. | 504 // click handler. |
| (...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2096 _uff=0; | 2102 _uff=0; |
| 2097 urchinTracker(); | 2103 urchinTracker(); |
| 2098 } | 2104 } |
| 2099 catch(e) {/* urchinTracker not available. */} | 2105 catch(e) {/* urchinTracker not available. */} |
| 2100 </script> | 2106 </script> |
| 2101 <!-- end analytics --> | 2107 <!-- end analytics --> |
| 2102 </div> | 2108 </div> |
| 2103 </div> <!-- /gc-footer --> | 2109 </div> <!-- /gc-footer --> |
| 2104 </div> <!-- /gc-container --> | 2110 </div> <!-- /gc-container --> |
| 2105 </body></html> | 2111 </body></html> |
| OLD | NEW |