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/print.css" rel="stylesheet" type="text/css" media="print"
> | |
13 <script type="text/javascript" src="../../../../third_party/jstemplate/jstem
plate_compiled.js"> | |
14 </script> | |
15 <script type="text/javascript" src="../../../../../third_party/json_minify/m
inify-sans-regexp.js"> | |
16 </script> | |
17 <script type="text/javascript" src="../js/api_page_generator.js"></script> | |
18 <script type="text/javascript" src="../js/bootstrap.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> | |
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"> | |
23 <link href="../css/shared.css" rel="stylesheet" type="text/css"> | |
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. | |
26 </div> | |
27 <div id="branchWarning" class="displayModeWarning"> | |
28 <span>WARNING: This is the <span id="branchName">BETA</span> documentation. | |
29 It may not work with the stable release of Chrome.</span> | |
30 <select id="branchChooser"> | |
31 <option>Choose a different version... | |
32 </option><option value="">Stable | |
33 </option><option value="beta">Beta | |
34 </option><option value="dev">Dev | |
35 </option><option value="trunk">Trunk | |
36 </option></select> | |
37 </div> | |
38 <div id="unofficialWarning" class="displayModeWarning"> | |
39 <span>WARNING: This is unofficial documentation. It may not work with the | |
40 current release of Chrome.</span> | |
41 <button id="goToOfficialDocs">Go to the official docs</button> | |
42 </div> | |
43 <div id="gc-container" class="labs"> | |
44 <!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION --> | |
45 <!-- In particular, sub-templates that recurse, must be used by allowing | |
46 jstemplate to make a copy of the template in this section which | |
47 are not operated on by way of the jsskip="true" --> | |
48 <!-- /SUBTEMPLATES --> | |
49 <a id="top"></a> | |
50 <div id="skipto"> | |
51 <a href="#gc-pagecontent">Skip to page content</a> | |
52 <a href="#gc-toc">Skip to main navigation</a> | |
53 </div> | |
54 <!-- API HEADER --> | |
55 <table id="header" width="100%" cellspacing="0" border="0"> | |
56 <tbody><tr> | |
57 <td valign="middle"><a href="http://code.google.com/"><img src="../image
s/chrome_logo.gif" alt="Google Code" style="border:0; margin:0;"></a></td> | |
58 <td valign="middle" width="100%" style="padding-left:0.6em;"> | |
59 <form action="http://www.google.com/cse" id="cse" style="margin-top:0.
5em"> | |
60 <div id="gsc-search-box"> | |
61 <input type="hidden" name="cx" value="002967670403910741006:61_cvz
fqtno"> | |
62 <input type="hidden" name="ie" value="UTF-8"> | |
63 <input id="gsc-search-input" type="text" name="q" value="" size="5
5"> | |
64 <button class="gsc-search-button" type="submit" name="sa"> | |
65 <img class="gsc-search-button-lens" src="../images/search.png" a
lt="Search"> | |
66 </button> | |
67 <br> | |
68 <span class="greytext">e.g. "event page" or "alarms"</span> | |
69 </div> | |
70 </form> | |
71 <script type="text/javascript" src="https://www.google.com/jsapi"></sc
ript> | |
72 <script type="text/javascript">google.load("elements", "1", {packages:
"transliteration"});</script> | |
73 <script type="text/javascript" src="https://www.google.com/coop/cse/t1
3n?form=cse&t13n_langs=en"></script> | |
74 <script type="text/javascript" src="https://www.google.com/coop/cse/br
and?form=cse&lang=en"></script> | |
75 </td> | |
76 </tr> | |
77 </tbody></table> | |
78 <div id="codesiteContent" class=""> | |
79 <a id="gc-topnav-anchor"></a> | |
80 <div id="gc-topnav"> | |
81 <h1>Packaged Apps</h1> | |
82 <ul id="home" class="gc-topnav-tabs"> | |
83 <li id="home_link"> | |
84 <a href="about_apps.html" title="Packaged Apps home page"><span>Home
</span></a> | |
85 </li> | |
86 <li id="docs_link"> | |
87 <a href="develop_apps.html" title="Packaged apps developer documenta
tion"><span>Docs</span></a> | |
88 </li> | |
89 <li id="samples_link"> | |
90 <a href="https://github.com/GoogleChrome/chrome-app-samples" title="
Packaged apps samples repository"><span>Samples</span></a> | |
91 </li> | |
92 <li id="group_link"> | |
93 <a href="http://groups.google.com/a/chromium.org/group/chromium-apps
" title="Google Chrome Apps developer forum"><span>Group</span></a> | |
94 </li> | |
95 <li id="so_link"> | |
96 <a href="http://stackoverflow.com/questions/tagged/google-chrome-ext
ension" title="[google-chrome-extension] tag on Stack Overflow"><span>Questions?
</span></a> | |
97 </li> | |
98 </ul> | |
99 </div> <!-- end gc-topnav --> | |
100 <div class="g-section g-tpl-170"> | |
101 <!-- SIDENAV --> | |
102 <div class="g-unit g-first" id="gc-toc"> | |
103 <ul> | |
104 <li><h2>Getting Started</h2> | |
105 <ul> | |
106 <li><a href="about_apps.html">What Are Packaged Apps?</a></li> | |
107 <li><a href="app_architecture.html">Understand the Architecture</a
></li> | |
108 <li><a href="first_app.html">Create Your First App</a></li> | |
109 </ul> | |
110 </li> | |
111 <li><h2>Developing</h2> | |
112 <ul> | |
113 <li><a href="develop_apps.html">Before You Start</a></li> | |
114 <li><span>The Fundamentals</span> | |
115 <ul> | |
116 <li><a href="app_lifecycle.html">Manage App Lifecycle</a></li> | |
117 <li><a href="app_storage.html">Manage Data</a></li> | |
118 <li><a href="offline_apps.html">Offline First</a></li> | |
119 <li><a href="app_external.html">Embed Content</a></li> | |
120 </ul> | |
121 </li> | |
122 <li><span>Security & Privacy</span> | |
123 <ul> | |
124 <li><a href="app_identity.html">Identify User</a></li> | |
125 <li><a href="app_csp.html">Comply with CSP</a></li> | |
126 </ul> | |
127 </li> | |
128 <li><span>Advanced Technologies</span> | |
129 <ul> | |
130 <li><a href="app_network.html">Network Communications</a></li> | |
131 <li><a href="app_hardware.html">Access Hardware Devices</a></l
i> | |
132 <li><a href="app_intents.html">Connect Apps with Web Intents</
a></li> | |
133 </ul> | |
134 </li> | |
135 <li><a href="app_frameworks.html">MVC Architecture</a></li> | |
136 </ul> | |
137 </li> | |
138 <li><h2>Deploying</h2> | |
139 <ul> | |
140 <li><a href="publish_app.html">Publish</a></li> | |
141 </ul> | |
142 </li> | |
143 <li><h2>Reference</h2> | |
144 <ul> | |
145 <li><a href="manifest.html">Manifest Files</a></li> | |
146 <li><a href="api_index.html">Chrome JavaScript APIs</a></li> | |
147 <li><a href="api_other.html">Supported Libraries</a></li> | |
148 <li><a href="app_deprecated.html">Disabled Web Features</a></li> | |
149 </ul> | |
150 </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> | |
153 </ul> | |
154 </div> | |
155 <script> | |
156 initToggles(); | |
157 </script> | |
158 <div class="g-unit" id="gc-pagecontent"> | |
159 <div id="pageTitle"> | |
160 <h1 class="page_title">Experimental App APIs</h1> | |
161 </div> | |
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 --> | |
182 <!-- Standard content lead-in for experimental API pages --> | |
183 <!-- STATIC CONTENT PLACEHOLDER --> | |
184 <div id="static"><div id="pageData-name" class="pageData">Experimental A
pp APIs</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 --> | |
190 <div class="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 --> | |
402 </div> <!-- /g-section --> | |
403 </div> <!-- /codesiteContent --> | |
404 <div id="gc-footer" --=""> | |
405 <div class="text"> | |
406 <p> | |
407 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 | |
409 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>. | |
411 </p> | |
412 <p> | |
413 ©2012 Google | |
414 </p> | |
415 <!-- begin analytics --> | |
416 <script src="https://www.google-analytics.com/urchin.js" type="text/javascript">
</script> | |
417 <script src="https://www.google-analytics.com/ga.js" type="text/javascript"></sc
ript> | |
418 <script src="../js/prettify.js" type="text/javascript"></script> | |
419 <script> | |
420 // Auto syntax highlight all pre tags. | |
421 var pres = document.querySelectorAll('pre'); | |
422 for (var i = 0, pre; pre = pres[i]; ++i) { | |
423 pre.className += ' prettyprint'; | |
424 }; | |
425 prettyPrint(); | |
426 </script> | |
427 <script type="text/javascript"> | |
428 // chrome doc tracking | |
429 try { | |
430 var engdocs = _gat._getTracker("YT-10763712-2"); | |
431 engdocs._trackPageview(); | |
432 } catch(err) {} | |
433 // code.google.com site-wide tracking | |
434 try { | |
435 _uacct="UA-18071-1"; | |
436 _uanchor=1; | |
437 _uff=0; | |
438 urchinTracker(); | |
439 } | |
440 catch(e) {/* urchinTracker not available. */} | |
441 </script> | |
442 <!-- end analytics --> | |
443 </div> | |
444 </div> <!-- /gc-footer --> | |
445 </div> <!-- /gc-container --> | |
446 </body></html> | |
OLD | NEW |