OLD | NEW |
---|---|
1 <div id="pageData-name" class="pageData">Formats: Manifest Files</div> | 1 <div id="pageData-name" class="pageData">Formats: Manifest Files</div> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 2 <div id="pageData-showTOC" class="pageData">true</div> |
3 | 3 |
4 <p> | 4 <p> |
5 Every extension, installable web app, and theme has a | 5 Every extension, installable web app, and theme has a |
6 <a href="http://www.json.org">JSON</a>-formatted manifest file, | 6 <a href="http://www.json.org">JSON</a>-formatted manifest file, |
7 named <code>manifest.json</code>, | 7 named <code>manifest.json</code>, |
8 that provides important information. | 8 that provides important information. |
9 </p> | 9 </p> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 | 48 |
49 "<a href="#nacl_modules">nacl_modules</a>": [...], | 49 "<a href="#nacl_modules">nacl_modules</a>": [...], |
50 "<a href="#offline_enabled">offline_enabled</a>": true, | 50 "<a href="#offline_enabled">offline_enabled</a>": true, |
51 "<a href="omnibox.html">omnibox</a>": { "keyword": "<em>aString</em>" }, | 51 "<a href="omnibox.html">omnibox</a>": { "keyword": "<em>aString</em>" }, |
52 "<a href="options.html">options_page</a>": "<em>aFile</em>.html", | 52 "<a href="options.html">options_page</a>": "<em>aFile</em>.html", |
53 "<a href="#permissions">permissions</a>": [...], | 53 "<a href="#permissions">permissions</a>": [...], |
54 "<a href="npapi.html">plugins</a>": [...], | 54 "<a href="npapi.html">plugins</a>": [...], |
55 "<a href="#requirements">requirements</a>": {...}, | 55 "<a href="#requirements">requirements</a>": {...}, |
56 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em >.xml", | 56 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em >.xml", |
57 "<a href="#web_accessible_resources">web_accessible_resources</a>": [...] | 57 "<a href="#web_accessible_resources">web_accessible_resources</a>": [...] |
58 "<a href="#intents">intents</a>": {...} | |
mkearney
2012/03/09 00:28:50
These links are in alphabetical order, so you prob
groby-ooo-7-16
2012/03/09 20:44:26
Done.
| |
58 } | 59 } |
59 </pre> | 60 </pre> |
60 | 61 |
61 | 62 |
62 <h2>Field details</h2> | 63 <h2>Field details</h2> |
63 | 64 |
64 <p> | 65 <p> |
65 This section covers fields that aren't described in another page. | 66 This section covers fields that aren't described in another page. |
66 For a complete list of fields, | 67 For a complete list of fields, |
67 with links to where they're described in detail, | 68 with links to where they're described in detail, |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
744 </a> 2 or above are <strong>blocked by default</strong>, and must be whitelisted | 745 </a> 2 or above are <strong>blocked by default</strong>, and must be whitelisted |
745 for use via this property. | 746 for use via this property. |
746 </p> | 747 </p> |
747 | 748 |
748 <p> | 749 <p> |
749 Resources inside of packages using <code>manifest_version</code> 1 are available | 750 Resources inside of packages using <code>manifest_version</code> 1 are available |
750 by default, but <em>if</em> you do set this property, then it will be treated as | 751 by default, but <em>if</em> you do set this property, then it will be treated as |
751 a complete list of all whitelisted resources. Resources not listed will be | 752 a complete list of all whitelisted resources. Resources not listed will be |
752 blocked. | 753 blocked. |
753 </p> | 754 </p> |
755 | |
756 <h3 id="intents">intents</h3> | |
mkearney
2012/03/09 00:28:50
These sections are in alphabetical order, so you w
groby-ooo-7-16
2012/03/09 20:44:26
Done.
| |
757 | |
758 <p> | |
759 A dictionary that specifies all web intents provided by this extension. Each key in the dictionary specifies the action name that is handled by this extent. The following example specifies two handlers for the action "http://webintents.org/ share". | |
mkearney
2012/03/09 00:28:50
What about adding a sentence that briefly defines
mkearney
2012/03/09 00:28:50
'extent' should be 'extension'?
mkearney
2012/03/09 00:28:50
Should this also mention hosted apps?
groby-ooo-7-16
2012/03/09 20:44:26
Done.
groby-ooo-7-16
2012/03/09 20:44:26
webintents are available in packaged apps, hosted
groby-ooo-7-16
2012/03/09 20:44:26
I wish I _had_ a sentence like that. Even webinten
mkearney
2012/03/09 21:41:15
Looks good, and yes, I totally know what you mean.
mkearney
2012/03/09 21:41:15
Can we make "http://webintents.org/share" a link t
groby-ooo-7-16
2012/03/09 22:06:04
Done.
| |
760 </p> | |
761 | |
762 <pre> | |
763 { | |
764 "name": "test", | |
765 "version": "1", | |
766 "intents": { | |
767 "http://webintents.org/share": [ | |
768 { | |
769 "type": ["text/uri-list"], | |
770 "href": "/services/sharelink.html", | |
771 "title" : "Sample Link Sharing Intent", | |
772 "disposition" : "inline" | |
773 }, | |
774 { | |
775 "type": ["image/*"], | |
776 "href": "/services/shareimage.html", | |
777 "title" : "Sample Image Sharing Intent", | |
778 "disposition" : "window" | |
779 } | |
780 ] | |
781 } | |
782 } | |
783 </pre> | |
784 | |
785 <p> | |
786 The value of "type" is an array of mime types that is supported by this handler. "path" indicates the URL of the page that handles the intent. For hosted apps, these URLs must be within the allowed set of URLs. For extensions, all URLs are inside the extension and considered relative to the extension root URL. | |
mkearney
2012/03/09 00:28:50
Small - add 'The' before "path".
groby-ooo-7-16
2012/03/09 20:44:26
Done.
| |
787 </p> | |
788 | |
789 <p> | |
790 "title" is the handler's title and is displayed in the intent picker UI if the u ser initiated the action specific to the handler. | |
791 </p> | |
mkearney
2012/03/09 00:28:50
Slight rewording:
The "title" is displayed in the
groby-ooo-7-16
2012/03/09 20:44:26
Done.
| |
792 | |
793 <p> | |
794 "disposition" is either "inline" or "window". Intents with "window" disposition will open a new tab when invoked. Intents with "inline" disposition will be disp layed inside the intent picker when invoked. | |
mkearney
2012/03/09 00:28:50
Small - add 'The' before "disposition".
groby-ooo-7-16
2012/03/09 20:44:26
Done.
| |
795 </p> | |
796 | |
797 <p> | |
798 For more information on intents, refer to the <a href="dvcs.w3.org/hg/web-intent s/raw-file/tip/spec/Overview.html">Web Intents specification</a> and <a href="ht tp://www.webintents.org">webintents.org</a>. | |
mkearney
2012/03/09 00:28:50
If you put the sentence above with the cross-refer
groby-ooo-7-16
2012/03/09 20:44:26
I consider the .org doc to be somewhat in flux (it
mkearney
2012/03/09 21:41:15
Sonds good.
I just tested the link though to the
groby-ooo-7-16
2012/03/09 22:06:04
That's because it _is_ broken - I forgot the http
| |
799 </p> | |
OLD | NEW |