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

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: More review issues 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 <a href="#default_locale">default_locale</a> 204 <a href="#default_locale">default_locale</a>
205 </li><li> 205 </li><li>
206 <a href="#description">description</a> 206 <a href="#description">description</a>
207 </li><li> 207 </li><li>
208 <a href="#homepage_url">homepage_url</a> 208 <a href="#homepage_url">homepage_url</a>
209 </li><li> 209 </li><li>
210 <a href="#icons">icons</a> 210 <a href="#icons">icons</a>
211 </li><li> 211 </li><li>
212 <a href="#incognito">incognito</a> 212 <a href="#incognito">incognito</a>
213 </li><li> 213 </li><li>
214 <a href="#intents">intents</a>
215 </li><li>
214 <a href="#key">key</a> 216 <a href="#key">key</a>
215 </li><li> 217 </li><li>
216 <a href="#minimum_chrome_version">minimum_chrome_version</a> 218 <a href="#minimum_chrome_version">minimum_chrome_version</a>
217 </li><li> 219 </li><li>
218 <a href="#name">name</a> 220 <a href="#name">name</a>
219 </li><li> 221 </li><li>
220 <a href="#nacl_modules">nacl_modules</a> 222 <a href="#nacl_modules">nacl_modules</a>
221 </li><li> 223 </li><li>
222 <a href="#offline_enabled">offline_enabled</a> 224 <a href="#offline_enabled">offline_enabled</a>
223 </li><li> 225 </li><li>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 "<a href="themes.html">theme</a>": {...}, 270 "<a href="themes.html">theme</a>": {...},
269 "<a href="#app">app</a>": {...}, 271 "<a href="#app">app</a>": {...},
270 <em>// Add any of these that you need</em> 272 <em>// Add any of these that you need</em>
271 "<a href="background_pages.html">background</a>": {...}, 273 "<a href="background_pages.html">background</a>": {...},
272 "<a href="override.html">chrome_url_overrides</a>": {...}, 274 "<a href="override.html">chrome_url_overrides</a>": {...},
273 "<a href="content_scripts.html">content_scripts</a>": [...], 275 "<a href="content_scripts.html">content_scripts</a>": [...],
274 "<a href="contentSecurityPolicy.html">content_security_policy</a>": "<em>polic yString</em>", 276 "<a href="contentSecurityPolicy.html">content_security_policy</a>": "<em>polic yString</em>",
275 "<a href="fileBrowserHandler.html">file_browser_handlers</a>": [...], 277 "<a href="fileBrowserHandler.html">file_browser_handlers</a>": [...],
276 "<a href="#homepage_url">homepage_url</a>": "http://<em>path/to/homepage</em>" , 278 "<a href="#homepage_url">homepage_url</a>": "http://<em>path/to/homepage</em>" ,
277 "<a href="#incognito">incognito</a>": "spanning" <em>or</em> "split", 279 "<a href="#incognito">incognito</a>": "spanning" <em>or</em> "split",
280 "<a href="#intents">intents</a>": {...}
278 "<a href="#key">key</a>": "<em>publicKey</em>", 281 "<a href="#key">key</a>": "<em>publicKey</em>",
279 "<a href="#minimum_chrome_version">minimum_chrome_version</a>": "<em>versionSt ring</em>", 282 "<a href="#minimum_chrome_version">minimum_chrome_version</a>": "<em>versionSt ring</em>",
280 "<a href="#nacl_modules">nacl_modules</a>": [...], 283 "<a href="#nacl_modules">nacl_modules</a>": [...],
281 "<a href="#offline_enabled">offline_enabled</a>": true, 284 "<a href="#offline_enabled">offline_enabled</a>": true,
282 "<a href="omnibox.html">omnibox</a>": { "keyword": "<em>aString</em>" }, 285 "<a href="omnibox.html">omnibox</a>": { "keyword": "<em>aString</em>" },
283 "<a href="options.html">options_page</a>": "<em>aFile</em>.html", 286 "<a href="options.html">options_page</a>": "<em>aFile</em>.html",
284 "<a href="#permissions">permissions</a>": [...], 287 "<a href="#permissions">permissions</a>": [...],
285 "<a href="npapi.html">plugins</a>": [...], 288 "<a href="npapi.html">plugins</a>": [...],
286 "<a href="#requirements">requirements</a>": {...}, 289 "<a href="#requirements">requirements</a>": {...},
287 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em >.xml", 290 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em >.xml",
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 memory-only cookie store. Each process sees events and messages only from its 412 memory-only cookie store. Each process sees events and messages only from its
410 own context (for example, the incognito process will see only incognito tab upda tes). 413 own context (for example, the incognito process will see only incognito tab upda tes).
411 The processes are unable to communicate with each other. 414 The processes are unable to communicate with each other.
412 </p> 415 </p>
413 <p> 416 <p>
414 As a rule of thumb, if your extension or app needs to load a tab in an incognito browser, use 417 As a rule of thumb, if your extension or app needs to load a tab in an incognito browser, use
415 <em>split</em> incognito behavior. If your extension or app needs to be logged 418 <em>split</em> incognito behavior. If your extension or app needs to be logged
416 into a remote server or persist settings locally, use <em>spanning</em> 419 into a remote server or persist settings locally, use <em>spanning</em>
417 incognito behavior. 420 incognito behavior.
418 </p> 421 </p>
422 <h3 id="intents">intents</h3>
423 <p>
424 A dictionary that specifies all intent handlers provided by this extension or ap p. Each key in the dictionary specifies the an action verb that is handled by th is extension. The following example specifies two handlers for the action verb " <a href="http://webintents.org/share">http://webintents.org/share</a>".
425 </p>
426 <pre>{
427 "name": "test",
428 "version": "1",
429 "intents": {
430 "http://webintents.org/share": [
431 {
432 "type": ["text/uri-list"],
433 "href": "/services/sharelink.html",
434 "title" : "Sample Link Sharing Intent",
435 "disposition" : "inline"
436 },
437 {
438 "type": ["image/*"],
439 "href": "/services/shareimage.html",
440 "title" : "Sample Image Sharing Intent",
441 "disposition" : "window"
442 }
443 ]
444 }
445 }
446 </pre>
447 <p>
448 The value of "type" is an array of mime types that is supported by this handler. The "href" indicates the URL of the page that handles the intent. For hosted ap ps, 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.
449 </p>
450 <p>
451 The "title" is displayed in the intent picker UI when the user initiates the act ion specific to the handler.
452 </p>
453 <p>
454 The "disposition" is either "inline" or "window". Intents with "window" disposit ion will open a new tab when invoked. Intents with "inline" disposition will be displayed inside the intent picker when invoked.
455 </p>
456 <p>
457 For more information on intents, refer to the <a href="http://dvcs.w3.org/hg/web -intents/raw-file/tip/spec/Overview.html">Web Intents specification</a> and <a h ref="http://www.webintents.org">webintents.org</a>.
458 </p>
419 <h3 id="key">key</h3> 459 <h3 id="key">key</h3>
420 <p> 460 <p>
421 This value can be used to control 461 This value can be used to control
422 the unique ID of an extension, app, or theme when 462 the unique ID of an extension, app, or theme when
423 it is loaded during development. 463 it is loaded during development.
424 </p> 464 </p>
425 <p class="note"> 465 <p class="note">
426 <b>Note:</b> You don't usually need to 466 <b>Note:</b> You don't usually need to
427 use this value. Instead, write your 467 use this value. Instead, write your
428 code so that the key value doesn't matter 468 code so that the key value doesn't matter
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 _uff=0; 967 _uff=0;
928 urchinTracker(); 968 urchinTracker();
929 } 969 }
930 catch(e) {/* urchinTracker not available. */} 970 catch(e) {/* urchinTracker not available. */}
931 </script> 971 </script>
932 <!-- end analytics --> 972 <!-- end analytics -->
933 </div> 973 </div>
934 </div> <!-- /gc-footer --> 974 </div> <!-- /gc-footer -->
935 </div> <!-- /gc-container --> 975 </div> <!-- /gc-container -->
936 </body></html> 976 </body></html>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/README.txt ('k') | chrome/common/extensions/docs/static/manifest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698