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

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

Issue 6574028: Add info about "background" permission (new for M10). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 like this: 362 like this:
363 </p> 363 </p>
364 364
365 <pre>{ 365 <pre>{
366 "name": "My extension", 366 "name": "My extension",
367 ... 367 ...
368 <b>"background_page": "background.html"</b>, 368 <b>"background_page": "background.html"</b>,
369 ... 369 ...
370 }</pre> 370 }</pre>
371 371
372 <p>
373 If you need the browser to start up early—so
374 you can display notifications, for example—then
375 you might also want to specify the
376 <a href="manifest.html#permissions">"background" permission</a>.
377 </p>
378
379
372 <a name="H2-1"></a><h2>Details</h2> 380 <a name="H2-1"></a><h2>Details</h2>
373 381
374 <p> 382 <p>
375 You can communicate between your various pages using direct script calls, 383 You can communicate between your various pages using direct script calls,
376 similar to how frames can communicate. 384 similar to how frames can communicate.
377 The <a href="extension.html#method-getViews"><code>chrome.extension.getViews()</ code></a> method 385 The <a href="extension.html#method-getViews"><code>chrome.extension.getViews()</ code></a> method
378 returns a list of window objects 386 returns a list of window objects
379 for every active page belonging to your extension, 387 for every active page belonging to your extension,
380 and the 388 and the
381 <a href="extension.html#method-getBackgroundPage"><code>chrome.extension.getBack groundPage()</code></a> method 389 <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
636 _uff=0; 644 _uff=0;
637 urchinTracker(); 645 urchinTracker();
638 } 646 }
639 catch(e) {/* urchinTracker not available. */} 647 catch(e) {/* urchinTracker not available. */}
640 </script> 648 </script>
641 <!-- end analytics --> 649 <!-- end analytics -->
642 </div> 650 </div>
643 </div> <!-- /gc-footer --> 651 </div> <!-- /gc-footer -->
644 </div> <!-- /gc-container --> 652 </div> <!-- /gc-container -->
645 </body></html> 653 </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