| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 <li><a href="api_index.html">chrome.* APIs</a></li> | 182 <li><a href="api_index.html">chrome.* APIs</a></li> |
| 183 <li><a href="api_other.html">Other APIs</a></li> | 183 <li><a href="api_other.html">Other APIs</a></li> |
| 184 </ul> | 184 </ul> |
| 185 </li> | 185 </li> |
| 186 <li><h2><a href="samples.html">Samples</a></h2></li> | 186 <li><h2><a href="samples.html">Samples</a></h2></li> |
| 187 </ul> | 187 </ul> |
| 188 </div> | 188 </div> |
| 189 | 189 |
| 190 <div class="g-unit" id="gc-pagecontent"> | 190 <div class="g-unit" id="gc-pagecontent"> |
| 191 <div id="pageTitle"> | 191 <div id="pageTitle"> |
| 192 <h1 class="page_title">Message Passing - Google Chrome Extensions - Goog
le Code</h1> | 192 <h1 class="page_title">Message Passing</h1> |
| 193 </div> | 193 </div> |
| 194 <!-- TABLE OF CONTENTS --> | 194 <!-- TABLE OF CONTENTS --> |
| 195 <div id="toc"> | 195 <div id="toc"> |
| 196 <h2>Contents</h2> | 196 <h2>Contents</h2> |
| 197 <ol> | 197 <ol> |
| 198 <li> | 198 <li> |
| 199 <a href="#simple">Simple one-time requests</a> | 199 <a href="#simple">Simple one-time requests</a> |
| 200 <ol> | 200 <ol> |
| 201 <li style="display: none; "> | 201 <li style="display: none; "> |
| 202 <a>h3Name</a> | 202 <a>h3Name</a> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 </ol> | 261 </ol> |
| 262 </li> | 262 </li> |
| 263 </ol> | 263 </ol> |
| 264 </li> | 264 </li> |
| 265 </div> | 265 </div> |
| 266 </ol> | 266 </ol> |
| 267 </div> | 267 </div> |
| 268 <!-- /TABLE OF CONTENTS --> | 268 <!-- /TABLE OF CONTENTS --> |
| 269 | 269 |
| 270 <!-- STATIC CONTENT PLACEHOLDER --> | 270 <!-- STATIC CONTENT PLACEHOLDER --> |
| 271 <div id="static"><div id="pageData-title" class="pageData">Message Passi
ng</div> | 271 <div id="static"><div id="pageData-name" class="pageData">Message Passin
g</div> |
| 272 <div id="pageData-showTOC" class="pageData">true</div> | 272 <div id="pageData-showTOC" class="pageData">true</div> |
| 273 | 273 |
| 274 <p> | 274 <p> |
| 275 Since content scripts run in the context of a web page and not the extension, | 275 Since content scripts run in the context of a web page and not the extension, |
| 276 they often need some way of communicating with the rest of the extension. For | 276 they often need some way of communicating with the rest of the extension. For |
| 277 example, an RSS reader extension might use content scripts to detect the | 277 example, an RSS reader extension might use content scripts to detect the |
| 278 presence of an RSS feed on a page, then notify the background page in order to | 278 presence of an RSS feed on a page, then notify the background page in order to |
| 279 display a page action icon for that page. | 279 display a page action icon for that page. |
| 280 | 280 |
| 281 </p><p> | 281 </p><p> |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 urchinTracker(); | 701 urchinTracker(); |
| 702 } | 702 } |
| 703 catch(e) {/* urchinTracker not available. */} | 703 catch(e) {/* urchinTracker not available. */} |
| 704 </script> | 704 </script> |
| 705 <!-- end analytics --> | 705 <!-- end analytics --> |
| 706 </div> | 706 </div> |
| 707 </div> <!-- /gc-footer --> | 707 </div> <!-- /gc-footer --> |
| 708 </div> <!-- /gc-container --> | 708 </div> <!-- /gc-container --> |
| 709 </body></html> | 709 </body></html> |
| 710 | 710 |
| OLD | NEW |