| OLD | NEW |
| (Empty) | |
| 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 |
| 3 across api docs and should be edited only with knowledge of the |
| 4 templating mechanism. |
| 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 |
| 7 authored overview content. |
| 8 4) The <body>.innerHTML is also generated by an offline step so that this |
| 9 page may easily be indexed by search engines. |
| 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
| 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 12 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css"> |
| 13 <link href="css/print.css" rel="stylesheet" type="text/css" media="print"> |
| 14 <script type="text/javascript" src="../../../third_party/jstemplate/jstempla
te_compiled.js"> |
| 15 </script> |
| 16 <script type="text/javascript" src="js/api_page_generator.js"></script> |
| 17 <script type="text/javascript" src="js/bootstrap.js"></script> |
| 18 <title>Popup</title></head><body> <div id="container"> |
| 19 <!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION --> |
| 20 <!-- In particular, sub-templates that recurse, must be used by allowing |
| 21 jstemplate to make a copy of the template in this section which |
| 22 are not operated on by way of the jsskip="true" --> |
| 23 <div style="display:none"> |
| 24 |
| 25 <!-- VALUE --> |
| 26 <div id="valueTemplate"> |
| 27 <dt> |
| 28 <var>paramName</var> |
| 29 <em> |
| 30 |
| 31 <!-- TYPE --> |
| 32 <div style="display:inline"> |
| 33 ( |
| 34 <span class="optional">optional</span> |
| 35 <span id="typeTemplate"> |
| 36 <span> |
| 37 <a> Type</a> |
| 38 </span> |
| 39 <span> |
| 40 <span> |
| 41 array of <span><span></span></span> |
| 42 </span> |
| 43 <span>paramType</span> |
| 44 </span> |
| 45 </span> |
| 46 ) |
| 47 </div> |
| 48 |
| 49 </em> |
| 50 </dt> |
| 51 <dd class="todo"> |
| 52 Undocumented. |
| 53 </dd> |
| 54 <dd> |
| 55 Description of this parameter from the json schema. |
| 56 </dd> |
| 57 |
| 58 <!-- OBJECT PROPERTIES --> |
| 59 <dd> |
| 60 <dl> |
| 61 <div> |
| 62 <div> |
| 63 </div> |
| 64 </div> |
| 65 </dl> |
| 66 </dd> |
| 67 </div> <!-- /VALUE --> |
| 68 |
| 69 </div> <!-- /SUBTEMPLATES --> |
| 70 |
| 71 <a name="top"> </a> |
| 72 <!-- API HEADER --> |
| 73 <div id="pageHeader"> |
| 74 <div id="searchbox"> |
| 75 <form action="http://www.google.com/cse" id="cse-search-box"> |
| 76 <div> |
| 77 <input type="hidden" name="cx" value="002967670403910741006:61_cvzfq
tno"> |
| 78 <input type="hidden" name="ie" value="UTF-8"> |
| 79 <input type="text" name="q" size="31"> |
| 80 <input type="submit" name="sa" value="Search"> |
| 81 </div> |
| 82 </form> |
| 83 |
| 84 <script type="text/javascript" src="http://www.google.com/jsapi"></scrip
t> |
| 85 <script type="text/javascript">google.load("elements", "1", {packages: "
transliteration"});</script> |
| 86 <script type="text/javascript" src="http://www.google.com/coop/cse/t13n?
form=cse-search-box&t13n_langs=en"></script> |
| 87 <script type="text/javascript" src="http://www.google.com/coop/cse/brand
?form=cse-search-box&lang=en"></script> |
| 88 </div> |
| 89 <div id="pageTitle"> |
| 90 <h1>Popup</h1> |
| 91 </div> |
| 92 </div> <!-- /pageHeader --> |
| 93 |
| 94 <div id="pageContent"> |
| 95 <!-- SIDENAV --> |
| 96 <div id="leftNav"> |
| 97 <ul> |
| 98 <li> <a href="index.html">Home</a></li> |
| 99 <li> <a href="getstarted.html">Getting Started</a></li> |
| 100 <li> <a href="overview.html">Overview</a></li> |
| 101 <li> <a href="devguide.html"><div>Developer's Guide</div></a> |
| 102 <ul> |
| 103 <li> Browser UI |
| 104 <ul> |
| 105 <li><a href="browserAction.html">Browser Actions</a></li> |
| 106 <li><a href="options.html">Options Pages</a></li> |
| 107 <li><a href="override.html">Override Pages</a></li> |
| 108 <li><a href="pageAction.html">Page Actions</a></li> |
| 109 <li><a href="themes.html">Themes</a></li> |
| 110 </ul> |
| 111 </li> |
| 112 <li> Browser Interaction |
| 113 <ul> |
| 114 <li><a href="bookmarks.html">Bookmarks</a></li> |
| 115 <li><a href="events.html">Events</a></li> |
| 116 <li><a href="tabs.html">Tabs</a></li> |
| 117 <li><a href="windows.html">Windows</a></li> |
| 118 </ul> |
| 119 </li> |
| 120 <li> Implementation |
| 121 <ul> |
| 122 <li><a href="background_pages.html">Background Pages</a></li> |
| 123 <li><a href="content_scripts.html">Content Scripts</a></li> |
| 124 <li><a href="xhr.html">Cross-Origin XHR</a></li> |
| 125 <li><a href="messaging.html">Message Passing</a></li> |
| 126 <li><a href="npapi.html">NPAPI Plugins</a></li> |
| 127 </ul> |
| 128 </li> |
| 129 <li> Finishing |
| 130 <ul> |
| 131 <li><a href="autoupdate.html">Autoupdating</a></li> |
| 132 <li><a href="packaging.html">Packaging</a></li> |
| 133 </ul> |
| 134 </li> |
| 135 </ul> |
| 136 </li> |
| 137 <li><a href="tutorials.html"><div>Tutorials</div></a> |
| 138 <ul> |
| 139 <li><a href="tut_debugging.html">Debugging</a></li> |
| 140 </ul> |
| 141 </li> |
| 142 <li>Reference |
| 143 <ul> |
| 144 <li> Formats |
| 145 <ul> |
| 146 <li><a href="manifest.html">Manifest Files</a></li> |
| 147 <li><a href="match_patterns.html">Match Patterns</a></li> |
| 148 <!-- <li>Packages (.crx)</li> --> |
| 149 </ul> |
| 150 </li> |
| 151 <li> <a href="api_index.html">chrome.* APIs</a> </li> |
| 152 <li> <a href="api_other.html">Other APIs</a> </li> |
| 153 </ul> |
| 154 </li> |
| 155 <li><a href="samples.html">Samples</a></li> |
| 156 </ul> |
| 157 </div> |
| 158 |
| 159 <div id="mainColumn"> |
| 160 <!-- TABLE OF CONTENTS --> |
| 161 <div id="toc" style="display: none; "> |
| 162 <p>Contents</p> |
| 163 <ol> |
| 164 <li> |
| 165 <a>h2Name</a> |
| 166 <ol> |
| 167 <li> |
| 168 <a>h3Name</a> |
| 169 </li> |
| 170 </ol> |
| 171 </li> |
| 172 <div> |
| 173 <li> |
| 174 <a href="#apiReference">API reference</a> |
| 175 <ol> |
| 176 <li> |
| 177 <a href="#properties">Properties</a> |
| 178 <ol> |
| 179 <li> |
| 180 <a href="#property-anchor">propertyName</a> |
| 181 </li> |
| 182 </ol> |
| 183 </li> |
| 184 <li> |
| 185 <a href="#methods">Methods</a> |
| 186 <ol> |
| 187 <li> |
| 188 <a href="#method-anchor">methodName</a> |
| 189 </li> |
| 190 </ol> |
| 191 </li> |
| 192 <li> |
| 193 <a href="#events">Events</a> |
| 194 <ol> |
| 195 <li> |
| 196 <a href="#event-anchor">eventName</a> |
| 197 </li> |
| 198 </ol> |
| 199 </li> |
| 200 <li> |
| 201 <a href="#types">Types</a> |
| 202 <ol> |
| 203 <li> |
| 204 <a href="#id-anchor">id</a> |
| 205 </li> |
| 206 </ol> |
| 207 </li> |
| 208 </ol> |
| 209 </li> |
| 210 </div> |
| 211 </ol> |
| 212 </div> |
| 213 <!-- /TABLE OF CONTENTS --> |
| 214 |
| 215 <!-- STATIC CONTENT PLACEHOLDER --> |
| 216 <div id="static"></div> |
| 217 |
| 218 <!-- API PAGE --> |
| 219 <div class="apiPage" style="display: none; "> |
| 220 <a name="apiReference"></a> |
| 221 <h2>API reference: chrome.apiname </h2> |
| 222 |
| 223 <!-- PROPERTIES --> |
| 224 <div class="apiGroup"> |
| 225 <a name="properties"></a> |
| 226 <h3 id="properties">Properties</h3> |
| 227 |
| 228 <div> |
| 229 <a></a> |
| 230 <h4>getLastError</h4> |
| 231 <div class="summary"> |
| 232 <!-- Note: intentionally longer 80 columns --> |
| 233 <span>chrome.extension</span><span>lastError</span> |
| 234 </div> |
| 235 <div> |
| 236 </div> |
| 237 </div> |
| 238 |
| 239 </div> <!-- /apiGroup --> |
| 240 |
| 241 <!-- METHODS --> |
| 242 <div class="apiGroup" id="methods"> |
| 243 <a name="methods"></a> |
| 244 <h3>Methods</h3> |
| 245 |
| 246 <!-- iterates over all functions --> |
| 247 <div class="apiItem"> |
| 248 <a></a> <!-- method-anchor --> |
| 249 <h4>method name</h4> |
| 250 |
| 251 <div class="summary"><span>void</span> |
| 252 <!-- Note: intentionally longer 80 columns --> |
| 253 <span>chrome.module.methodName</span>(<span><span>, </span><sp
an></span> |
| 254 <var><span></span></var></span>)</div> |
| 255 |
| 256 <div class="description"> |
| 257 <p class="todo">Undocumented.</p> |
| 258 <p> |
| 259 A description from the json schema def of the function goes he
re. |
| 260 </p> |
| 261 |
| 262 <!-- PARAMETERS --> |
| 263 <h4>Parameters</h4> |
| 264 <dl> |
| 265 <div> |
| 266 <div> |
| 267 </div> |
| 268 </div> |
| 269 </dl> |
| 270 |
| 271 <!-- RETURNS --> |
| 272 <h4>Returns</h4> |
| 273 <dl> |
| 274 <div> |
| 275 <div> |
| 276 </div> |
| 277 </div> |
| 278 </dl> |
| 279 |
| 280 <!-- CALLBACK --> |
| 281 <div> |
| 282 <div> |
| 283 <h4>Callback function</h4> |
| 284 <p> |
| 285 If you specify the <em>callback</em> parameter, |
| 286 it should specify a function that looks like this: |
| 287 </p> |
| 288 |
| 289 <!-- Note: intentionally longer 80 columns --> |
| 290 <pre>function(<span>Type param1, Type param2</span>) <span cla
ss="subdued">{...}</span>);</pre> |
| 291 <dl> |
| 292 <div> |
| 293 <div> |
| 294 </div> |
| 295 </div> |
| 296 </dl> |
| 297 </div> |
| 298 </div> |
| 299 |
| 300 </div> <!-- /description --> |
| 301 |
| 302 </div> <!-- /apiItem --> |
| 303 |
| 304 </div> <!-- /apiGroup --> |
| 305 |
| 306 <!-- EVENTS --> |
| 307 <div class="apiGroup"> |
| 308 <a name="events"></a> |
| 309 <h3 id="events">Events</h3> |
| 310 |
| 311 <!-- iterates over all events --> |
| 312 <div class="apiItem"> |
| 313 <a></a> |
| 314 <h4>event name</h4> |
| 315 |
| 316 <div class="summary"> |
| 317 <!-- Note: intentionally longer 80 columns --> |
| 318 <span class="subdued">chrome.bookmarks</span><span>onEvent</span
><span class="subdued">.addListener</span>(function(<span>Type param1, Type para
m2</span>) <span class="subdued">{...}</span>); |
| 319 </div> |
| 320 |
| 321 <div class="description"> |
| 322 <p class="todo">Undocumented.</p> |
| 323 <p> |
| 324 A description from the json schema def of the event goes here. |
| 325 </p> |
| 326 |
| 327 <!-- PARAMETERS --> |
| 328 <h4>Parameters</h4> |
| 329 <dl> |
| 330 <div> |
| 331 <div> |
| 332 </div> |
| 333 </div> |
| 334 </dl> |
| 335 |
| 336 </div> <!-- /decription --> |
| 337 |
| 338 </div> <!-- /apiItem --> |
| 339 |
| 340 </div> <!-- /apiGroup --> |
| 341 |
| 342 <!-- TYPES --> |
| 343 <div class="apiGroup"> |
| 344 <a name="types.sort(sortByName)"></a> |
| 345 <h3 id="types">Types</h3> |
| 346 |
| 347 <!-- iterates over all types --> |
| 348 <div class="apiItem"> |
| 349 <a></a> |
| 350 <h4>type name</h4> |
| 351 |
| 352 <div> |
| 353 </div> |
| 354 |
| 355 </div> <!-- /apiItem --> |
| 356 |
| 357 </div> <!-- /apiGroup --> |
| 358 |
| 359 </div> <!-- /apiPage --> |
| 360 </div> <!-- /mainColumn --> |
| 361 </div> <!-- /pageContent --> |
| 362 <div id="pageFooter" --=""> |
| 363 <p> |
| 364 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
">noted</a>, |
| 365 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/">Creative Commons |
| 366 Attribution 3.0 License</a>, and code samples are licensed under the |
| 367 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic
ense</a>. |
| 368 </p> |
| 369 <p> |
| 370 ©2009 Google |
| 371 </p> |
| 372 |
| 373 <!-- begin analytics --> |
| 374 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"><
/script> |
| 375 <script src="http://www.google-analytics.com/ga.js" type="text/javascript"></scr
ipt> |
| 376 |
| 377 <script type="text/javascript"> |
| 378 // chrome doc tracking |
| 379 try { |
| 380 var engdocs = _gat._getTracker("YT-10763712-2"); |
| 381 engdocs._trackPageview(); |
| 382 } catch(err) {} |
| 383 |
| 384 // code.google.com site-wide tracking |
| 385 try { |
| 386 _uacct="UA-18071-1"; |
| 387 _uanchor=1; |
| 388 _uff=0; |
| 389 urchinTracker(); |
| 390 } |
| 391 catch(e) {/* urchinTracker not available. */} |
| 392 </script> |
| 393 <!-- end analytics --> |
| 394 |
| 395 </div> <!-- /pageFooter --> |
| 396 </div> <!-- /container --> |
| 397 </body></html> |
| 398 |
| OLD | NEW |