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 <meta name="description" content="Documentation for the chrome.app.runtime mod
ule, which is part of the Google Chrome extension APIs."><title>chrome.app.runt
ime - 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">chrome.app.runtime</h1> |
161 </div> | 161 </div> |
162 <!-- TABLE OF CONTENTS --> | 162 <!-- TABLE OF CONTENTS --> |
163 <div id="toc"> | 163 <div id="toc"> |
164 <h2>Contents</h2> | 164 <h2>Contents</h2> |
165 <ol> | 165 <ol> |
166 <li> | 166 <li> |
167 <a href="#apiReference">API reference: chrome.experimental.app</
a> | 167 <a href="#apiReference">API reference: chrome.app.runtime</a> |
168 <ol> | 168 <ol> |
169 <li> | 169 <li> |
170 <a href="#global-events">Events</a> | 170 <a href="#global-events">Events</a> |
171 <ol> | 171 <ol> |
172 <li> | 172 <li> |
173 <a href="#event-onLaunched">onLaunched</a> | 173 <a href="#event-onLaunched">onLaunched</a> |
174 </li> | 174 </li> |
175 </ol> | 175 </ol> |
176 </li> | 176 </li> |
177 </ol> | 177 </ol> |
178 </li> | 178 </li> |
179 </ol> | 179 </ol> |
180 </div> | 180 </div> |
181 <!-- /TABLE OF CONTENTS --> | 181 <!-- /TABLE OF CONTENTS --> |
182 <!-- Standard content lead-in for experimental API pages --> | 182 <!-- Standard content lead-in for experimental API pages --> |
183 <!-- STATIC CONTENT PLACEHOLDER --> | 183 <!-- STATIC CONTENT PLACEHOLDER --> |
184 <div id="static"><div id="pageData-name" class="pageData">Experimental A
pp APIs</div> | 184 <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 --> | 185 <!-- API PAGE --> |
190 <div class="apiPage"> | 186 <div class="apiPage"> |
191 <a name="apiReference"></a> | 187 <a name="apiReference"></a> |
192 <h2>API reference: chrome.experimental.app</h2> | 188 <h2>API reference: chrome.app.runtime</h2> |
193 <!-- PROPERTIES --> | 189 <!-- PROPERTIES --> |
194 <!-- /apiGroup --> | 190 <!-- /apiGroup --> |
195 <!-- METHODS --> | 191 <!-- METHODS --> |
196 <!-- /apiGroup --> | 192 <!-- /apiGroup --> |
197 <!-- EVENTS --> | 193 <!-- EVENTS --> |
198 <div id="eventsTemplate" class="apiGroup"> | 194 <div id="eventsTemplate" class="apiGroup"> |
199 <a name="global-events"></a> | 195 <a name="global-events"></a> |
200 <h3>Events</h3> | 196 <h3>Events</h3> |
201 <!-- iterates over all events --> | 197 <!-- iterates over all events --> |
202 <div class="apiItem"> | 198 <div class="apiItem"> |
203 <a name="event-onLaunched"></a> | 199 <a name="event-onLaunched"></a> |
204 <h4>onLaunched</h4> | 200 <h4>onLaunched</h4> |
205 <div class="summary"> | 201 <div class="summary"> |
206 <!-- Note: intentionally longer 80 columns --> | 202 <!-- 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>); | 203 <span class="subdued">chrome.app.runtime.</span><span>onLaunched
</span><span class="subdued">.addListener</span>(function(<span>object launchDat
a</span>) <span class="subdued">{...}</span><span></span>); |
208 </div> | 204 </div> |
209 <div class="description"> | 205 <div class="description"> |
210 <p>Fired when the app is launched.</p> | |
211 <!-- LISTENER PARAMETERS --> | 206 <!-- LISTENER PARAMETERS --> |
212 <div> | 207 <div> |
213 <h4>Listener parameters</h4> | 208 <h4>Listener parameters</h4> |
214 <dl> | 209 <dl> |
215 <div> | 210 <div> |
216 <div> | 211 <div> |
217 <dt> | 212 <dt> |
218 <var>launchData</var> | 213 <var>launchData</var> |
219 <em> | 214 <em> |
220 <!-- TYPE --> | 215 <!-- TYPE --> |
221 <div style="display:inline"> | 216 <div style="display:inline"> |
222 ( | 217 ( |
223 <span class="optional">optional</span> | 218 <span class="optional">optional</span> |
224 <span id="typeTemplate"> | 219 <span id="typeTemplate"> |
225 <span> | 220 <span> |
226 <span>object</span> | 221 <span>object</span> |
227 </span> | 222 </span> |
228 </span> | 223 </span> |
229 ) | 224 ) |
230 </div> | 225 </div> |
231 </em> | 226 </em> |
232 </dt> | 227 </dt> |
233 <dd>Optional data for the launch.</dd> | 228 <dd class="todo"> |
| 229 Undocumented. |
| 230 </dd> |
234 <!-- OBJECT PROPERTIES --> | 231 <!-- OBJECT PROPERTIES --> |
235 <dd> | 232 <dd> |
236 <dl> | 233 <dl> |
237 <div> | 234 <div> |
238 <div> | 235 <div> |
239 <dt> | 236 <dt> |
240 <var>intent</var> | 237 <var>intent</var> |
241 <em> | 238 <em> |
242 <!-- TYPE --> | 239 <!-- TYPE --> |
243 <div style="display:inline"> | 240 <div style="display:inline"> |
244 ( | 241 ( |
245 <span id="typeTemplate"> | 242 <span id="typeTemplate"> |
246 <span> | 243 <span> |
247 <span>object</span> | 244 <span>object</span> |
248 </span> | 245 </span> |
249 </span> | 246 </span> |
250 ) | 247 ) |
251 </div> | 248 </div> |
252 </em> | 249 </em> |
253 </dt> | 250 </dt> |
254 <dd>A WebIntents intent object.</dd> | 251 <dd class="todo"> |
| 252 Undocumented. |
| 253 </dd> |
255 <!-- OBJECT PROPERTIES --> | 254 <!-- OBJECT PROPERTIES --> |
256 <dd> | 255 <dd> |
257 <dl> | 256 <dl> |
258 <div> | 257 <div> |
259 <div> | 258 <div> |
260 <dt> | 259 <dt> |
261 <var>action</var> | 260 <var>action</var> |
262 <em> | 261 <em> |
263 <!-- TYPE --> | 262 <!-- TYPE --> |
264 <div style="display:inline"> | 263 <div style="display:inline"> |
265 ( | 264 ( |
266 <span id="typeTemplate"> | 265 <span id="typeTemplate"> |
267 <span> | 266 <span> |
268 <span>string</span> | 267 <span>string</span> |
269 </span> | 268 </span> |
270 </span> | 269 </span> |
271 ) | 270 ) |
272 </div> | 271 </div> |
273 </em> | 272 </em> |
274 </dt> | 273 </dt> |
275 <dd>The WebIntent being invoked.</dd> | 274 <dd>The WebIntent being invoked.</dd> |
276 <!-- OBJECT PROPERTIES --> | 275 <!-- OBJECT PROPERTIES --> |
277 <!-- OBJECT METHODS --> | 276 <!-- OBJECT METHODS --> |
278 <!-- OBJECT EVENT FIELDS --> | 277 <!-- OBJECT EVENT FIELDS --> |
279 <!-- FUNCTION PARAMETERS --> | 278 <!-- FUNCTION PARAMETERS --> |
280 </div> | 279 </div> |
281 </div><div> | 280 </div><div> |
282 <div> | 281 <div> |
283 <dt> | 282 <dt> |
284 <var>type</var> | 283 <var>data</var> |
285 <em> | 284 <em> |
286 <!-- TYPE --> | 285 <!-- TYPE --> |
287 <div style="display:inline"> | 286 <div style="display:inline"> |
288 ( | 287 ( |
289 <span id="typeTemplate"> | 288 <span id="typeTemplate"> |
290 <span> | 289 <span> |
291 <span>string</span> | 290 <span>any</span> |
292 </span> | 291 </span> |
293 </span> | 292 </span> |
294 ) | 293 ) |
295 </div> | 294 </div> |
296 </em> | 295 </em> |
297 </dt> | 296 </dt> |
298 <dd>The MIME type of the data.</dd> | 297 <dd>Data associated with the intent.</dd> |
299 <!-- OBJECT PROPERTIES --> | 298 <!-- OBJECT PROPERTIES --> |
300 <!-- OBJECT METHODS --> | 299 <!-- OBJECT METHODS --> |
301 <!-- OBJECT EVENT FIELDS --> | 300 <!-- OBJECT EVENT FIELDS --> |
302 <!-- FUNCTION PARAMETERS --> | 301 <!-- FUNCTION PARAMETERS --> |
303 </div> | 302 </div> |
304 </div><div> | 303 </div><div> |
305 <div> | 304 <div> |
306 <dt> | 305 <dt> |
307 <var>data</var> | 306 <var>postFailure</var> |
308 <em> | 307 <em> |
309 <!-- TYPE --> | 308 <!-- TYPE --> |
310 <div style="display:inline"> | 309 <div style="display:inline"> |
311 ( | 310 ( |
312 <span id="typeTemplate"> | 311 <span id="typeTemplate"> |
313 <span> | 312 <span> |
314 <span>any</span> | 313 <span>function</span> |
315 </span> | 314 </span> |
316 </span> | 315 </span> |
317 ) | 316 ) |
318 </div> | 317 </div> |
319 </em> | 318 </em> |
320 </dt> | 319 </dt> |
321 <dd>Data associated with the intent.</dd> | 320 <dd>Callback to be compatible with WebIntents.</dd> |
322 <!-- OBJECT PROPERTIES --> | 321 <!-- OBJECT PROPERTIES --> |
323 <!-- OBJECT METHODS --> | 322 <!-- OBJECT METHODS --> |
324 <!-- OBJECT EVENT FIELDS --> | 323 <!-- OBJECT EVENT FIELDS --> |
325 <!-- FUNCTION PARAMETERS --> | 324 <!-- FUNCTION PARAMETERS --> |
| 325 <dd> |
| 326 </dd> |
326 </div> | 327 </div> |
327 </div><div> | 328 </div><div> |
328 <div> | 329 <div> |
329 <dt> | 330 <dt> |
330 <var>postResult</var> | 331 <var>postResult</var> |
331 <em> | 332 <em> |
332 <!-- TYPE --> | 333 <!-- TYPE --> |
333 <div style="display:inline"> | 334 <div style="display:inline"> |
334 ( | 335 ( |
335 <span id="typeTemplate"> | 336 <span id="typeTemplate"> |
336 <span> | 337 <span> |
337 <span>function</span> | 338 <span>function</span> |
338 </span> | 339 </span> |
339 </span> | 340 </span> |
340 ) | 341 ) |
341 </div> | 342 </div> |
342 </em> | 343 </em> |
343 </dt> | 344 </dt> |
344 <dd>Null callback to be compatible with WebIntents.</dd> | 345 <dd>Callback to be compatible with WebIntents.</dd> |
345 <!-- OBJECT PROPERTIES --> | 346 <!-- OBJECT PROPERTIES --> |
346 <!-- OBJECT METHODS --> | 347 <!-- OBJECT METHODS --> |
347 <!-- OBJECT EVENT FIELDS --> | 348 <!-- OBJECT EVENT FIELDS --> |
348 <!-- FUNCTION PARAMETERS --> | 349 <!-- FUNCTION PARAMETERS --> |
| 350 <dd> |
| 351 </dd> |
349 </div> | 352 </div> |
350 </div><div> | 353 </div><div> |
351 <div> | 354 <div> |
352 <dt> | 355 <dt> |
353 <var>postFailure</var> | 356 <var>type</var> |
354 <em> | 357 <em> |
355 <!-- TYPE --> | 358 <!-- TYPE --> |
356 <div style="display:inline"> | 359 <div style="display:inline"> |
357 ( | 360 ( |
358 <span id="typeTemplate"> | 361 <span id="typeTemplate"> |
359 <span> | 362 <span> |
360 <span>function</span> | 363 <span>string</span> |
361 </span> | 364 </span> |
362 </span> | 365 </span> |
363 ) | 366 ) |
364 </div> | 367 </div> |
365 </em> | 368 </em> |
366 </dt> | 369 </dt> |
367 <dd>Null callback to be compatible with WebIntents.</dd> | 370 <dd>The MIME type of the data.</dd> |
368 <!-- OBJECT PROPERTIES --> | 371 <!-- OBJECT PROPERTIES --> |
369 <!-- OBJECT METHODS --> | 372 <!-- OBJECT METHODS --> |
370 <!-- OBJECT EVENT FIELDS --> | 373 <!-- OBJECT EVENT FIELDS --> |
371 <!-- FUNCTION PARAMETERS --> | 374 <!-- FUNCTION PARAMETERS --> |
372 </div> | 375 </div> |
373 </div> | 376 </div> |
374 </dl> | 377 </dl> |
375 </dd> | 378 </dd> |
376 <!-- OBJECT METHODS --> | 379 <!-- OBJECT METHODS --> |
377 <!-- OBJECT EVENT FIELDS --> | 380 <!-- OBJECT EVENT FIELDS --> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 _uff=0; | 440 _uff=0; |
438 urchinTracker(); | 441 urchinTracker(); |
439 } | 442 } |
440 catch(e) {/* urchinTracker not available. */} | 443 catch(e) {/* urchinTracker not available. */} |
441 </script> | 444 </script> |
442 <!-- end analytics --> | 445 <!-- end analytics --> |
443 </div> | 446 </div> |
444 </div> <!-- /gc-footer --> | 447 </div> <!-- /gc-footer --> |
445 </div> <!-- /gc-container --> | 448 </div> <!-- /gc-container --> |
446 </body></html> | 449 </body></html> |
OLD | NEW |