| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |