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