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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 </pre> | 628 </pre> |
629 | 629 |
630 <p> | 630 <p> |
631 The following table lists the permissions an extension | 631 The following table lists the permissions an extension |
632 or packaged app can use. | 632 or packaged app can use. |
633 </p> | 633 </p> |
634 | 634 |
635 <p class="note"> | 635 <p class="note"> |
636 <strong>Note:</strong> | 636 <strong>Note:</strong> |
637 Hosted apps can use the | 637 Hosted apps can use the |
638 "geolocation", "notifications", and "unlimitedStorage" permissions, | 638 "background", "geolocation", "notifications", and "unlimitedStorage" permissions
, |
639 but not any other permissions listed in this table. | 639 but not any other permissions listed in this table. |
640 </p> | 640 </p> |
641 | 641 |
642 <table> | 642 <table> |
643 <tbody><tr> | 643 <tbody><tr> |
644 <th> Permission </th> <th> Description </th> | 644 <th> Permission </th> <th> Description </th> |
645 </tr> | 645 </tr> |
646 <tr> | 646 <tr> |
647 <td> <em>match pattern</em> </td> | 647 <td> <em>match pattern</em> </td> |
648 <td> Specifies a <em>host permission</em>. | 648 <td> Specifies a <em>host permission</em>. |
649 Required if the extension wants to interact | 649 Required if the extension wants to interact |
650 with the code running on pages. | 650 with the code running on pages. |
651 Many extension capabilities, such as | 651 Many extension capabilities, such as |
652 <a href="xhr.html">cross-origin XMLHttpRequests</a>, | 652 <a href="xhr.html">cross-origin XMLHttpRequests</a>, |
653 <a href="content_scripts.html#pi">programmatically injected | 653 <a href="content_scripts.html#pi">programmatically injected |
654 content scripts</a>, and <a href="cookies.html">the cookies API</a> | 654 content scripts</a>, and <a href="cookies.html">the cookies API</a> |
655 require host permissions. For details on the syntax, see | 655 require host permissions. For details on the syntax, see |
656 <a href="match_patterns.html">Match Patterns</a>. | 656 <a href="match_patterns.html">Match Patterns</a>. |
657 </td> | 657 </td> |
658 </tr> | 658 </tr> |
659 <tr> | 659 <tr> |
| 660 <td> "background" </td> |
| 661 <td> <p> |
| 662 Makes Chrome start up early and and shut down late, |
| 663 so that apps and extensions can have a longer life. |
| 664 </p> |
| 665 |
| 666 <p> |
| 667 When any installed hosted app, packaged app, or extension |
| 668 has "background" permission, Chrome runs (invisibly) |
| 669 as soon as the user logs into their computer—before |
| 670 the user launches Chrome. |
| 671 The "background" permission also makes Chrome continue running |
| 672 (even after its last window is closed) |
| 673 until the user explicitly quits Chrome. |
| 674 </p> |
| 675 |
| 676 <p class="note"> |
| 677 <b>Note:</b> |
| 678 Disabled apps and extensions |
| 679 are treated as if they aren't installed. |
| 680 </p> |
| 681 |
| 682 <p> |
| 683 You typically use the "background" permission with a |
| 684 <a href="background_pages.html">background page</a> |
| 685 or (for hosted apps) a |
| 686 <a href="http://code.google.com/chrome/apps/docs/background.html">backgro
und window</a>. |
| 687 </p> |
| 688 </td> |
| 689 </tr> |
| 690 <tr> |
660 <td> "bookmarks" </td> | 691 <td> "bookmarks" </td> |
661 <td> Required if the extension uses the | 692 <td> Required if the extension uses the |
662 <a href="bookmarks.html">chrome.bookmarks</a> module. </td> | 693 <a href="bookmarks.html">chrome.bookmarks</a> module. </td> |
663 </tr> | 694 </tr> |
664 <tr> | 695 <tr> |
665 <td> "chrome://favicon/" </td> | 696 <td> "chrome://favicon/" </td> |
666 <td> Required if the extension uses the | 697 <td> Required if the extension uses the |
667 "chrome://favicon/<em>url</em>" mechanism | 698 "chrome://favicon/<em>url</em>" mechanism |
668 to display the favicon of a page. | 699 to display the favicon of a page. |
669 For example, to display the favicon of http://www.google.com/, | 700 For example, to display the favicon of http://www.google.com/, |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 _uff=0; | 1011 _uff=0; |
981 urchinTracker(); | 1012 urchinTracker(); |
982 } | 1013 } |
983 catch(e) {/* urchinTracker not available. */} | 1014 catch(e) {/* urchinTracker not available. */} |
984 </script> | 1015 </script> |
985 <!-- end analytics --> | 1016 <!-- end analytics --> |
986 </div> | 1017 </div> |
987 </div> <!-- /gc-footer --> | 1018 </div> <!-- /gc-footer --> |
988 </div> <!-- /gc-container --> | 1019 </div> <!-- /gc-container --> |
989 </body></html> | 1020 </body></html> |
OLD | NEW |