OLD | NEW |
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 Loading... |
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 | |
370 <a name="H2-1"></a><h2>Details</h2> | 362 <a name="H2-1"></a><h2>Details</h2> |
371 | 363 |
372 <p> | 364 <p> |
373 You can communicate between your various pages using direct script calls, | 365 You can communicate between your various pages using direct script calls, |
374 similar to how frames can communicate. | 366 similar to how frames can communicate. |
375 The <a href="extension.html#method-getViews"><code>chrome.extension.getViews()</
code></a> method | 367 The <a href="extension.html#method-getViews"><code>chrome.extension.getViews()</
code></a> method |
376 returns a list of window objects | 368 returns a list of window objects |
377 for every active page belonging to your extension, | 369 for every active page belonging to your extension, |
378 and the | 370 and the |
379 <a href="extension.html#method-getBackgroundPage"><code>chrome.extension.getBack
groundPage()</code></a> method | 371 <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 Loading... |
634 _uff=0; | 626 _uff=0; |
635 urchinTracker(); | 627 urchinTracker(); |
636 } | 628 } |
637 catch(e) {/* urchinTracker not available. */} | 629 catch(e) {/* urchinTracker not available. */} |
638 </script> | 630 </script> |
639 <!-- end analytics --> | 631 <!-- end analytics --> |
640 </div> | 632 </div> |
641 </div> <!-- /gc-footer --> | 633 </div> <!-- /gc-footer --> |
642 </div> <!-- /gc-container --> | 634 </div> <!-- /gc-container --> |
643 </body></html> | 635 </body></html> |
OLD | NEW |