Chromium Code Reviews| 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 629 </pre> | 629 </pre> |
| 630 | 630 |
| 631 <p> | 631 <p> |
| 632 The following table lists the permissions an extension | 632 The following table lists the permissions an extension |
| 633 or packaged app can use. | 633 or packaged app can use. |
| 634 </p> | 634 </p> |
| 635 | 635 |
| 636 <p class="note"> | 636 <p class="note"> |
| 637 <strong>Note:</strong> | 637 <strong>Note:</strong> |
| 638 Hosted apps can use the | 638 Hosted apps can use the |
| 639 "background", "geolocation", "notifications", and "unlimitedStorage" permissions , | 639 "background", "geolocation", "notifications", and "unlimitedStorage" permissions , |
|
kathyw
2011/05/23 18:06:35
add "clipboardRead" and "clipboardWrite" to this l
dcheng
2011/05/23 19:31:59
Done.
| |
| 640 but not any other permissions listed in this table. | 640 but not any other permissions listed in this table. |
| 641 </p> | 641 </p> |
| 642 | 642 |
| 643 <table> | 643 <table> |
| 644 <tbody><tr> | 644 <tbody><tr> |
| 645 <th> Permission </th> <th> Description </th> | 645 <th> Permission </th> <th> Description </th> |
| 646 </tr> | 646 </tr> |
| 647 <tr> | 647 <tr> |
| 648 <td> <em>match pattern</em> </td> | 648 <td> <em>match pattern</em> </td> |
| 649 <td> Specifies a <em>host permission</em>. | 649 <td> Specifies a <em>host permission</em>. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 698 <td> Required if the extension uses the | 698 <td> Required if the extension uses the |
| 699 "chrome://favicon/<em>url</em>" mechanism | 699 "chrome://favicon/<em>url</em>" mechanism |
| 700 to display the favicon of a page. | 700 to display the favicon of a page. |
| 701 For example, to display the favicon of http://www.google.com/, | 701 For example, to display the favicon of http://www.google.com/, |
| 702 you declare the "chrome://favicon/" permission | 702 you declare the "chrome://favicon/" permission |
| 703 and use HTML code like this: | 703 and use HTML code like this: |
| 704 <pre><img src="chrome://favicon/http://www.google.com/"></pre> | 704 <pre><img src="chrome://favicon/http://www.google.com/"></pre> |
| 705 </td> | 705 </td> |
| 706 </tr> | 706 </tr> |
| 707 <tr> | 707 <tr> |
| 708 <td> "clipboardRead" </td> | |
| 709 <td> Required if the extension uses | |
| 710 <code>document.execCommand('paste')</code>. </td> | |
| 711 </tr> | |
| 712 <tr> | |
| 713 <td> "clipboardWrite" </td> | |
| 714 <td> Recommended if an extension uses | |
|
kathyw
2011/05/23 18:06:35
How about something like this instead:
Indicates
dcheng
2011/05/23 19:31:59
Done.
| |
| 715 <code>document.execCommand('copy')</code> or | |
| 716 <code>document.execCommand('cut')</code>. Required for an app.</td> | |
| 717 </tr> | |
| 718 <tr> | |
| 708 <td> "contextMenus" </td> | 719 <td> "contextMenus" </td> |
| 709 <td> Required if the extension uses the | 720 <td> Required if the extension uses the |
| 710 <a href="contextMenus.html">chrome.contextMenus</a> module. </td> | 721 <a href="contextMenus.html">chrome.contextMenus</a> module. </td> |
| 711 </tr> | 722 </tr> |
| 712 <tr> | 723 <tr> |
| 713 <td> "cookies" </td> | 724 <td> "cookies" </td> |
| 714 <td> Required if the extension uses the | 725 <td> Required if the extension uses the |
| 715 <a href="cookies.html">chrome.cookies</a> module. </td> | 726 <a href="cookies.html">chrome.cookies</a> module. </td> |
| 716 </tr> | 727 </tr> |
| 717 <tr> | 728 <tr> |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1037 _uff=0; | 1048 _uff=0; |
| 1038 urchinTracker(); | 1049 urchinTracker(); |
| 1039 } | 1050 } |
| 1040 catch(e) {/* urchinTracker not available. */} | 1051 catch(e) {/* urchinTracker not available. */} |
| 1041 </script> | 1052 </script> |
| 1042 <!-- end analytics --> | 1053 <!-- end analytics --> |
| 1043 </div> | 1054 </div> |
| 1044 </div> <!-- /gc-footer --> | 1055 </div> <!-- /gc-footer --> |
| 1045 </div> <!-- /gc-container --> | 1056 </div> <!-- /gc-container --> |
| 1046 </body></html> | 1057 </body></html> |
| OLD | NEW |