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

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

Issue 6594057: Merge 76274 - Add info about "background" permission (new for M10).... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/648/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/manifest.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 like this: 352 like this:
353 </p> 353 </p>
354 354
355 <pre>{ 355 <pre>{
356 "name": "My extension", 356 "name": "My extension",
357 ... 357 ...
358 <b>"background_page": "background.html"</b>, 358 <b>"background_page": "background.html"</b>,
359 ... 359 ...
360 }</pre> 360 }</pre>
361 361
362 <p>
363 If you need the browser to start up early—so
364 you can display notifications, for example—then
365 you might also want to specify the
366 <a href="manifest.html#permissions">"background" permission</a>.
367 </p>
368
369
362 <a name="H2-1"></a><h2>Details</h2> 370 <a name="H2-1"></a><h2>Details</h2>
363 371
364 <p> 372 <p>
365 You can communicate between your various pages using direct script calls, 373 You can communicate between your various pages using direct script calls,
366 similar to how frames can communicate. 374 similar to how frames can communicate.
367 The <a href="extension.html#method-getViews"><code>chrome.extension.getViews()</ code></a> method 375 The <a href="extension.html#method-getViews"><code>chrome.extension.getViews()</ code></a> method
368 returns a list of window objects 376 returns a list of window objects
369 for every active page belonging to your extension, 377 for every active page belonging to your extension,
370 and the 378 and the
371 <a href="extension.html#method-getBackgroundPage"><code>chrome.extension.getBack groundPage()</code></a> method 379 <a href="extension.html#method-getBackgroundPage"><code>chrome.extension.getBack groundPage()</code></a> method
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 _uff=0; 634 _uff=0;
627 urchinTracker(); 635 urchinTracker();
628 } 636 }
629 catch(e) {/* urchinTracker not available. */} 637 catch(e) {/* urchinTracker not available. */}
630 </script> 638 </script>
631 <!-- end analytics --> 639 <!-- end analytics -->
632 </div> 640 </div>
633 </div> <!-- /gc-footer --> 641 </div> <!-- /gc-footer -->
634 </div> <!-- /gc-container --> 642 </div> <!-- /gc-container -->
635 </body></html> 643 </body></html>
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/manifest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698