Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: chrome/common/extensions/docs/apps/runtime.html

Issue 10804020: Introduce runtime.onSuspendCanceled() event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 </li> 188 </li>
189 </ol> 189 </ol>
190 </li> 190 </li>
191 <li> 191 <li>
192 <a href="#global-events">Events</a> 192 <a href="#global-events">Events</a>
193 <ol> 193 <ol>
194 <li> 194 <li>
195 <a href="#event-onInstalled">onInstalled</a> 195 <a href="#event-onInstalled">onInstalled</a>
196 </li><li> 196 </li><li>
197 <a href="#event-onSuspend">onSuspend</a> 197 <a href="#event-onSuspend">onSuspend</a>
198 </li><li>
199 <a href="#event-onSuspendCanceled">onSuspendCanceled</a>
198 </li> 200 </li>
199 </ol> 201 </ol>
200 </li> 202 </li>
201 <li> 203 <li>
202 <a href="#types">Types</a> 204 <a href="#types">Types</a>
203 <ol> 205 <ol>
204 <li> 206 <li>
205 <a href="#type-runtime.ManifestDetails">runtime.ManifestDetails< /a> 207 <a href="#type-runtime.ManifestDetails">runtime.ManifestDetails< /a>
206 <ol> 208 <ol>
207 </ol> 209 </ol>
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 </div> <!-- /description --> 498 </div> <!-- /description -->
497 <!-- /description --> 499 <!-- /description -->
498 </div><div class="apiItem"> 500 </div><div class="apiItem">
499 <a name="event-onSuspend"></a> 501 <a name="event-onSuspend"></a>
500 <h4>onSuspend</h4> 502 <h4>onSuspend</h4>
501 <div class="summary"> 503 <div class="summary">
502 <!-- Note: intentionally longer 80 columns --> 504 <!-- Note: intentionally longer 80 columns -->
503 <span class="subdued">chrome.runtime.</span><span>onSuspend</spa n><span class="subdued">.addListener</span>(function(<span></span>) <span class= "subdued">{...}</span><span></span>); 505 <span class="subdued">chrome.runtime.</span><span>onSuspend</spa n><span class="subdued">.addListener</span>(function(<span></span>) <span class= "subdued">{...}</span><span></span>);
504 </div> 506 </div>
505 <div class="description"> 507 <div class="description">
506 <p>Sent to the event page just before it is unloaded. This gives the extension opportunity to do some clean up. Note that since the page is unlo ading, any asynchronous operations started while handling this event are not gua ranteed to complete.</p> 508 <p>Sent to the event page just before it is unloaded. This gives the extension opportunity to do some clean up. Note that since the page is unlo ading, any asynchronous operations started while handling this event are not gua ranteed to complete. If more activity for the event page occurs before it gets u nloaded the onSuspendCanceled event will be sent and the page won't be unloaded. </p>
507 <!-- LISTENER PARAMETERS --> 509 <!-- LISTENER PARAMETERS -->
508 <!-- EXTRA PARAMETERS --> 510 <!-- EXTRA PARAMETERS -->
509 <!-- LISTENER RETURN VALUE --> 511 <!-- LISTENER RETURN VALUE -->
512 <dl>
513 </dl>
514 </div> <!-- /description -->
515 <!-- /description -->
516 </div><div class="apiItem">
517 <a name="event-onSuspendCanceled"></a>
518 <h4>onSuspendCanceled</h4>
519 <div class="summary">
520 <!-- Note: intentionally longer 80 columns -->
521 <span class="subdued">chrome.runtime.</span><span>onSuspendCance led</span><span class="subdued">.addListener</span>(function(<span></span>) <spa n class="subdued">{...}</span><span></span>);
522 </div>
523 <div class="description">
524 <p>Sent after onSuspend() to indicate that the app won't be unlo aded after all.</p>
525 <!-- LISTENER PARAMETERS -->
526 <!-- EXTRA PARAMETERS -->
527 <!-- LISTENER RETURN VALUE -->
510 <dl> 528 <dl>
511 </dl> 529 </dl>
512 </div> <!-- /description --> 530 </div> <!-- /description -->
513 <!-- /description --> 531 <!-- /description -->
514 </div> <!-- /apiItem --> 532 </div> <!-- /apiItem -->
515 </div> <!-- /apiGroup --> 533 </div> <!-- /apiGroup -->
516 <!-- TYPES --> 534 <!-- TYPES -->
517 <div class="apiGroup"> 535 <div class="apiGroup">
518 <a name="types"></a> 536 <a name="types"></a>
519 <h3 id="types">Types</h3> 537 <h3 id="types">Types</h3>
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 _uff=0; 711 _uff=0;
694 urchinTracker(); 712 urchinTracker();
695 } 713 }
696 catch(e) {/* urchinTracker not available. */} 714 catch(e) {/* urchinTracker not available. */}
697 </script> 715 </script>
698 <!-- end analytics --> 716 <!-- end analytics -->
699 </div> 717 </div>
700 </div> <!-- /gc-footer --> 718 </div> <!-- /gc-footer -->
701 </div> <!-- /gc-container --> 719 </div> <!-- /gc-container -->
702 </body></html> 720 </body></html>
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/runtime.json ('k') | chrome/common/extensions/docs/extensions/runtime.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698