Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: chrome/common/extensions/docs/manifest.html

Issue 9618033: Updated docs to explain "intents" section in extension manifest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 </li><li> 223 </li><li>
224 <a href="#permissions">permissions</a> 224 <a href="#permissions">permissions</a>
225 </li><li> 225 </li><li>
226 <a href="#requirements">requirements</a> 226 <a href="#requirements">requirements</a>
227 </li><li> 227 </li><li>
228 <a href="#version">version</a> 228 <a href="#version">version</a>
229 </li><li> 229 </li><li>
230 <a href="#manifest_version">manifest_version</a> 230 <a href="#manifest_version">manifest_version</a>
231 </li><li> 231 </li><li>
232 <a href="#web_accessible_resources">web_accessible_resources</ a> 232 <a href="#web_accessible_resources">web_accessible_resources</ a>
233 </li><li>
234 <a href="#intents">intents</a>
233 </li> 235 </li>
234 </ol> 236 </ol>
235 </li> 237 </li>
236 </ol> 238 </ol>
237 </div> 239 </div>
238 <!-- /TABLE OF CONTENTS --> 240 <!-- /TABLE OF CONTENTS -->
239 <!-- Standard content lead-in for experimental API pages --> 241 <!-- Standard content lead-in for experimental API pages -->
240 <!-- STATIC CONTENT PLACEHOLDER --> 242 <!-- STATIC CONTENT PLACEHOLDER -->
241 <div id="static"><div id="pageData-name" class="pageData">Formats: Manif est Files</div> 243 <div id="static"><div id="pageData-name" class="pageData">Formats: Manif est Files</div>
242 <div id="pageData-showTOC" class="pageData">true</div> 244 <div id="pageData-showTOC" class="pageData">true</div>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 "<a href="#minimum_chrome_version">minimum_chrome_version</a>": "<em>versionSt ring</em>", 281 "<a href="#minimum_chrome_version">minimum_chrome_version</a>": "<em>versionSt ring</em>",
280 "<a href="#nacl_modules">nacl_modules</a>": [...], 282 "<a href="#nacl_modules">nacl_modules</a>": [...],
281 "<a href="#offline_enabled">offline_enabled</a>": true, 283 "<a href="#offline_enabled">offline_enabled</a>": true,
282 "<a href="omnibox.html">omnibox</a>": { "keyword": "<em>aString</em>" }, 284 "<a href="omnibox.html">omnibox</a>": { "keyword": "<em>aString</em>" },
283 "<a href="options.html">options_page</a>": "<em>aFile</em>.html", 285 "<a href="options.html">options_page</a>": "<em>aFile</em>.html",
284 "<a href="#permissions">permissions</a>": [...], 286 "<a href="#permissions">permissions</a>": [...],
285 "<a href="npapi.html">plugins</a>": [...], 287 "<a href="npapi.html">plugins</a>": [...],
286 "<a href="#requirements">requirements</a>": {...}, 288 "<a href="#requirements">requirements</a>": {...},
287 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em >.xml", 289 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em >.xml",
288 "<a href="#web_accessible_resources">web_accessible_resources</a>": [...] 290 "<a href="#web_accessible_resources">web_accessible_resources</a>": [...]
291 "<a href="#intents">intents</a>": {...}
289 } 292 }
290 </pre> 293 </pre>
291 <a name="H2-1"></a><h2>Field details</h2> 294 <a name="H2-1"></a><h2>Field details</h2>
292 <p> 295 <p>
293 This section covers fields that aren't described in another page. 296 This section covers fields that aren't described in another page.
294 For a complete list of fields, 297 For a complete list of fields,
295 with links to where they're described in detail, 298 with links to where they're described in detail,
296 see the <a href="#overview">Field summary</a>. 299 see the <a href="#overview">Field summary</a>.
297 </p> 300 </p>
298 <h3 id="app">app</h3> 301 <h3 id="app">app</h3>
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 <code>manifest_version</code> 890 <code>manifest_version</code>
888 </a> 2 or above are <strong>blocked by default</strong>, and must be whitelisted 891 </a> 2 or above are <strong>blocked by default</strong>, and must be whitelisted
889 for use via this property. 892 for use via this property.
890 </p> 893 </p>
891 <p> 894 <p>
892 Resources inside of packages using <code>manifest_version</code> 1 are available 895 Resources inside of packages using <code>manifest_version</code> 1 are available
893 by default, but <em>if</em> you do set this property, then it will be treated as 896 by default, but <em>if</em> you do set this property, then it will be treated as
894 a complete list of all whitelisted resources. Resources not listed will be 897 a complete list of all whitelisted resources. Resources not listed will be
895 blocked. 898 blocked.
896 </p> 899 </p>
897 </div> 900 <h3 id="intents">intents</h3>
901 <p>
902 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".
903 </p>
904 <pre>{
905 "name": "test",
906 "version": "1",
907 "intents": {
908 "http://webintents.org/share": [
909 {
910 "type": ["text/uri-list"],
911 "href": "/services/sharelink.html",
912 "title" : "Sample Link Sharing Intent",
913 "disposition" : "inline"
914 },
915 {
916 "type": ["image/*"],
917 "href": "/services/shareimage.html",
918 "title" : "Sample Image Sharing Intent",
919 "disposition" : "window"
920 }
921 ]
922 }
923 }
924 </pre>
925 <p>
926 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.
927 </p>
928 <p>
929 "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.
930 </p>
931 <p>
932 "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.
933 </p>
934 <p>
935 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>.
936 </p></div>
898 <!-- API PAGE --> 937 <!-- API PAGE -->
899 <!-- /apiPage --> 938 <!-- /apiPage -->
900 </div> <!-- /gc-pagecontent --> 939 </div> <!-- /gc-pagecontent -->
901 </div> <!-- /g-section --> 940 </div> <!-- /g-section -->
902 </div> <!-- /codesiteContent --> 941 </div> <!-- /codesiteContent -->
903 <div id="gc-footer" --=""> 942 <div id="gc-footer" --="">
904 <div class="text"> 943 <div class="text">
905 <p> 944 <p>
906 Except as otherwise <a href="http://code.google.com/policies.html#restrictions ">noted</a>, 945 Except as otherwise <a href="http://code.google.com/policies.html#restrictions ">noted</a>,
907 the content of this page is licensed under the <a rel="license" href="http://c reativecommons.org/licenses/by/3.0/">Creative Commons 946 the content of this page is licensed under the <a rel="license" href="http://c reativecommons.org/licenses/by/3.0/">Creative Commons
(...skipping 19 matching lines...) Expand all
927 _uff=0; 966 _uff=0;
928 urchinTracker(); 967 urchinTracker();
929 } 968 }
930 catch(e) {/* urchinTracker not available. */} 969 catch(e) {/* urchinTracker not available. */}
931 </script> 970 </script>
932 <!-- end analytics --> 971 <!-- end analytics -->
933 </div> 972 </div>
934 </div> <!-- /gc-footer --> 973 </div> <!-- /gc-footer -->
935 </div> <!-- /gc-container --> 974 </div> <!-- /gc-container -->
936 </body></html> 975 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698