| 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> |
| 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 12 <link href="../css/print.css" rel="stylesheet" type="text/css" media="print"
> | 12 <link href="../css/print.css" rel="stylesheet" type="text/css" media="print"
> |
| 13 <script type="text/javascript" src="../../../../third_party/jstemplate/jstem
plate_compiled.js"> | 13 <script type="text/javascript" src="../../../../third_party/jstemplate/jstem
plate_compiled.js"> |
| 14 </script> | 14 </script> |
| 15 <script type="text/javascript" src="../../../../../third_party/json_minify/m
inify-sans-regexp.js"> | 15 <script type="text/javascript" src="../../../../../third_party/json_minify/m
inify-sans-regexp.js"> |
| 16 </script> | 16 </script> |
| 17 <script type="text/javascript" src="../js/api_page_generator.js"></script> | 17 <script type="text/javascript" src="../js/api_page_generator.js"></script> |
| 18 <script type="text/javascript" src="../js/bootstrap.js"></script> | 18 <script type="text/javascript" src="../js/bootstrap.js"></script> |
| 19 <script type="text/javascript" src="../js/sidebar.js"></script> | 19 <script type="text/javascript" src="../js/sidebar.js"></script> |
| 20 <meta name="description" content="Documentation for the chrome.experimental.ap
p module, which is part of the Google Chrome extension APIs."><title>Experiment
al App APIs - Google Chrome Extensions - Google Code</title></head> | 20 <title>App_runtime - Google Chrome Extensions - Google Code</title></head> |
| 21 <body doc-family="apps"> <link href="../css/ApiRefStyles.css" rel="stylesheet
" type="text/css"> | 21 <body doc-family="apps"> <link href="../css/ApiRefStyles.css" rel="stylesheet
" type="text/css"> |
| 22 <link href="../css/prettify.css" rel="stylesheet" type="text/css"> | 22 <link href="../css/prettify.css" rel="stylesheet" type="text/css"> |
| 23 <link href="../css/shared.css" rel="stylesheet" type="text/css"> | 23 <link href="../css/shared.css" rel="stylesheet" type="text/css"> |
| 24 <div id="devModeWarning" class="displayModeWarning"> | 24 <div id="devModeWarning" class="displayModeWarning"> |
| 25 You are viewing extension docs in chrome via the 'file:' scheme: are you exp
ecting to see local changes when you refresh? You'll need run chrome with --allo
w-file-access-from-files. | 25 You are viewing extension docs in chrome via the 'file:' scheme: are you exp
ecting to see local changes when you refresh? You'll need run chrome with --allo
w-file-access-from-files. |
| 26 </div> | 26 </div> |
| 27 <div id="branchWarning" class="displayModeWarning"> | 27 <div id="branchWarning" class="displayModeWarning"> |
| 28 <span>WARNING: This is the <span id="branchName">BETA</span> documentation. | 28 <span>WARNING: This is the <span id="branchName">BETA</span> documentation. |
| 29 It may not work with the stable release of Chrome.</span> | 29 It may not work with the stable release of Chrome.</span> |
| 30 <select id="branchChooser"> | 30 <select id="branchChooser"> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 </li> | 150 </li> |
| 151 <li><h2><a href="https://github.com/GoogleChrome/chrome-app-samples">S
amples</a></h2></li> | 151 <li><h2><a href="https://github.com/GoogleChrome/chrome-app-samples">S
amples</a></h2></li> |
| 152 <li><h2><a href="app_known_issues.html">Known Issues</a></h2></li> | 152 <li><h2><a href="app_known_issues.html">Known Issues</a></h2></li> |
| 153 </ul> | 153 </ul> |
| 154 </div> | 154 </div> |
| 155 <script> | 155 <script> |
| 156 initToggles(); | 156 initToggles(); |
| 157 </script> | 157 </script> |
| 158 <div class="g-unit" id="gc-pagecontent"> | 158 <div class="g-unit" id="gc-pagecontent"> |
| 159 <div id="pageTitle"> | 159 <div id="pageTitle"> |
| 160 <h1 class="page_title">Experimental App APIs</h1> | 160 <h1 class="page_title">App_runtime</h1> |
| 161 </div> | 161 </div> |
| 162 <!-- TABLE OF CONTENTS --> | 162 <!-- TABLE OF CONTENTS --> |
| 163 <div id="toc"> | |
| 164 <h2>Contents</h2> | |
| 165 <ol> | |
| 166 <li> | |
| 167 <a href="#apiReference">API reference: chrome.experimental.app</
a> | |
| 168 <ol> | |
| 169 <li> | |
| 170 <a href="#global-events">Events</a> | |
| 171 <ol> | |
| 172 <li> | |
| 173 <a href="#event-onLaunched">onLaunched</a> | |
| 174 </li> | |
| 175 </ol> | |
| 176 </li> | |
| 177 </ol> | |
| 178 </li> | |
| 179 </ol> | |
| 180 </div> | |
| 181 <!-- /TABLE OF CONTENTS --> | 163 <!-- /TABLE OF CONTENTS --> |
| 182 <!-- Standard content lead-in for experimental API pages --> | 164 <!-- Standard content lead-in for experimental API pages --> |
| 183 <!-- STATIC CONTENT PLACEHOLDER --> | 165 <!-- STATIC CONTENT PLACEHOLDER --> |
| 184 <div id="static"><div id="pageData-name" class="pageData">Experimental A
pp APIs</div> | 166 <div id="static"></div> |
| 185 <!-- BEGIN AUTHORED CONTENT --> | |
| 186 <p>The current methods allow applications to generate passive notifications.</p> | |
| 187 <!-- END AUTHORED CONTENT --> | |
| 188 </div> | |
| 189 <!-- API PAGE --> | 167 <!-- API PAGE --> |
| 190 <div class="apiPage"> | 168 <!-- /apiPage --> |
| 191 <a name="apiReference"></a> | |
| 192 <h2>API reference: chrome.experimental.app</h2> | |
| 193 <!-- PROPERTIES --> | |
| 194 <!-- /apiGroup --> | |
| 195 <!-- METHODS --> | |
| 196 <!-- /apiGroup --> | |
| 197 <!-- EVENTS --> | |
| 198 <div id="eventsTemplate" class="apiGroup"> | |
| 199 <a name="global-events"></a> | |
| 200 <h3>Events</h3> | |
| 201 <!-- iterates over all events --> | |
| 202 <div class="apiItem"> | |
| 203 <a name="event-onLaunched"></a> | |
| 204 <h4>onLaunched</h4> | |
| 205 <div class="summary"> | |
| 206 <!-- Note: intentionally longer 80 columns --> | |
| 207 <span class="subdued">chrome.experimental.app.</span><span>onLau
nched</span><span class="subdued">.addListener</span>(function(<span>object laun
chData</span>) <span class="subdued">{...}</span><span></span>); | |
| 208 </div> | |
| 209 <div class="description"> | |
| 210 <p>Fired when the app is launched.</p> | |
| 211 <!-- LISTENER PARAMETERS --> | |
| 212 <div> | |
| 213 <h4>Listener parameters</h4> | |
| 214 <dl> | |
| 215 <div> | |
| 216 <div> | |
| 217 <dt> | |
| 218 <var>launchData</var> | |
| 219 <em> | |
| 220 <!-- TYPE --> | |
| 221 <div style="display:inline"> | |
| 222 ( | |
| 223 <span class="optional">optional</span> | |
| 224 <span id="typeTemplate"> | |
| 225 <span> | |
| 226 <span>object</span> | |
| 227 </span> | |
| 228 </span> | |
| 229 ) | |
| 230 </div> | |
| 231 </em> | |
| 232 </dt> | |
| 233 <dd>Optional data for the launch.</dd> | |
| 234 <!-- OBJECT PROPERTIES --> | |
| 235 <dd> | |
| 236 <dl> | |
| 237 <div> | |
| 238 <div> | |
| 239 <dt> | |
| 240 <var>intent</var> | |
| 241 <em> | |
| 242 <!-- TYPE --> | |
| 243 <div style="display:inline"> | |
| 244 ( | |
| 245 <span id="typeTemplate"> | |
| 246 <span> | |
| 247 <span>object</span> | |
| 248 </span> | |
| 249 </span> | |
| 250 ) | |
| 251 </div> | |
| 252 </em> | |
| 253 </dt> | |
| 254 <dd>A WebIntents intent object.</dd> | |
| 255 <!-- OBJECT PROPERTIES --> | |
| 256 <dd> | |
| 257 <dl> | |
| 258 <div> | |
| 259 <div> | |
| 260 <dt> | |
| 261 <var>action</var> | |
| 262 <em> | |
| 263 <!-- TYPE --> | |
| 264 <div style="display:inline"> | |
| 265 ( | |
| 266 <span id="typeTemplate"> | |
| 267 <span> | |
| 268 <span>string</span> | |
| 269 </span> | |
| 270 </span> | |
| 271 ) | |
| 272 </div> | |
| 273 </em> | |
| 274 </dt> | |
| 275 <dd>The WebIntent being invoked.</dd> | |
| 276 <!-- OBJECT PROPERTIES --> | |
| 277 <!-- OBJECT METHODS --> | |
| 278 <!-- OBJECT EVENT FIELDS --> | |
| 279 <!-- FUNCTION PARAMETERS --> | |
| 280 </div> | |
| 281 </div><div> | |
| 282 <div> | |
| 283 <dt> | |
| 284 <var>type</var> | |
| 285 <em> | |
| 286 <!-- TYPE --> | |
| 287 <div style="display:inline"> | |
| 288 ( | |
| 289 <span id="typeTemplate"> | |
| 290 <span> | |
| 291 <span>string</span> | |
| 292 </span> | |
| 293 </span> | |
| 294 ) | |
| 295 </div> | |
| 296 </em> | |
| 297 </dt> | |
| 298 <dd>The MIME type of the data.</dd> | |
| 299 <!-- OBJECT PROPERTIES --> | |
| 300 <!-- OBJECT METHODS --> | |
| 301 <!-- OBJECT EVENT FIELDS --> | |
| 302 <!-- FUNCTION PARAMETERS --> | |
| 303 </div> | |
| 304 </div><div> | |
| 305 <div> | |
| 306 <dt> | |
| 307 <var>data</var> | |
| 308 <em> | |
| 309 <!-- TYPE --> | |
| 310 <div style="display:inline"> | |
| 311 ( | |
| 312 <span id="typeTemplate"> | |
| 313 <span> | |
| 314 <span>any</span> | |
| 315 </span> | |
| 316 </span> | |
| 317 ) | |
| 318 </div> | |
| 319 </em> | |
| 320 </dt> | |
| 321 <dd>Data associated with the intent.</dd> | |
| 322 <!-- OBJECT PROPERTIES --> | |
| 323 <!-- OBJECT METHODS --> | |
| 324 <!-- OBJECT EVENT FIELDS --> | |
| 325 <!-- FUNCTION PARAMETERS --> | |
| 326 </div> | |
| 327 </div><div> | |
| 328 <div> | |
| 329 <dt> | |
| 330 <var>postResult</var> | |
| 331 <em> | |
| 332 <!-- TYPE --> | |
| 333 <div style="display:inline"> | |
| 334 ( | |
| 335 <span id="typeTemplate"> | |
| 336 <span> | |
| 337 <span>function</span> | |
| 338 </span> | |
| 339 </span> | |
| 340 ) | |
| 341 </div> | |
| 342 </em> | |
| 343 </dt> | |
| 344 <dd>Null callback to be compatible with WebIntents.</dd> | |
| 345 <!-- OBJECT PROPERTIES --> | |
| 346 <!-- OBJECT METHODS --> | |
| 347 <!-- OBJECT EVENT FIELDS --> | |
| 348 <!-- FUNCTION PARAMETERS --> | |
| 349 </div> | |
| 350 </div><div> | |
| 351 <div> | |
| 352 <dt> | |
| 353 <var>postFailure</var> | |
| 354 <em> | |
| 355 <!-- TYPE --> | |
| 356 <div style="display:inline"> | |
| 357 ( | |
| 358 <span id="typeTemplate"> | |
| 359 <span> | |
| 360 <span>function</span> | |
| 361 </span> | |
| 362 </span> | |
| 363 ) | |
| 364 </div> | |
| 365 </em> | |
| 366 </dt> | |
| 367 <dd>Null callback to be compatible with WebIntents.</dd> | |
| 368 <!-- OBJECT PROPERTIES --> | |
| 369 <!-- OBJECT METHODS --> | |
| 370 <!-- OBJECT EVENT FIELDS --> | |
| 371 <!-- FUNCTION PARAMETERS --> | |
| 372 </div> | |
| 373 </div> | |
| 374 </dl> | |
| 375 </dd> | |
| 376 <!-- OBJECT METHODS --> | |
| 377 <!-- OBJECT EVENT FIELDS --> | |
| 378 <!-- FUNCTION PARAMETERS --> | |
| 379 </div> | |
| 380 </div> | |
| 381 </dl> | |
| 382 </dd> | |
| 383 <!-- OBJECT METHODS --> | |
| 384 <!-- OBJECT EVENT FIELDS --> | |
| 385 <!-- FUNCTION PARAMETERS --> | |
| 386 </div> | |
| 387 </div> | |
| 388 </dl> | |
| 389 </div> | |
| 390 <!-- EXTRA PARAMETERS --> | |
| 391 <!-- LISTENER RETURN VALUE --> | |
| 392 <dl> | |
| 393 </dl> | |
| 394 </div> <!-- /description --> | |
| 395 <!-- /description --> | |
| 396 </div> <!-- /apiItem --> | |
| 397 </div> <!-- /apiGroup --> | |
| 398 <!-- TYPES --> | |
| 399 <!-- /apiGroup --> | |
| 400 </div> <!-- /apiPage --> | |
| 401 </div> <!-- /gc-pagecontent --> | 169 </div> <!-- /gc-pagecontent --> |
| 402 </div> <!-- /g-section --> | 170 </div> <!-- /g-section --> |
| 403 </div> <!-- /codesiteContent --> | 171 </div> <!-- /codesiteContent --> |
| 404 <div id="gc-footer" --=""> | 172 <div id="gc-footer" --=""> |
| 405 <div class="text"> | 173 <div class="text"> |
| 406 <p> | 174 <p> |
| 407 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
">noted</a>, | 175 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
">noted</a>, |
| 408 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/">Creative Commons | 176 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/">Creative Commons |
| 409 Attribution 3.0 License</a>, and code samples are licensed under the | 177 Attribution 3.0 License</a>, and code samples are licensed under the |
| 410 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic
ense</a>. | 178 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic
ense</a>. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 437 _uff=0; | 205 _uff=0; |
| 438 urchinTracker(); | 206 urchinTracker(); |
| 439 } | 207 } |
| 440 catch(e) {/* urchinTracker not available. */} | 208 catch(e) {/* urchinTracker not available. */} |
| 441 </script> | 209 </script> |
| 442 <!-- end analytics --> | 210 <!-- end analytics --> |
| 443 </div> | 211 </div> |
| 444 </div> <!-- /gc-footer --> | 212 </div> <!-- /gc-footer --> |
| 445 </div> <!-- /gc-container --> | 213 </div> <!-- /gc-container --> |
| 446 </body></html> | 214 </body></html> |
| OLD | NEW |