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

Unified Diff: chrome/common/extensions/docs/extensions/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/apps/runtime.html ('k') | chrome/common/extensions/docs/samples.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/extensions/runtime.html
diff --git a/chrome/common/extensions/docs/extensions/runtime.html b/chrome/common/extensions/docs/extensions/runtime.html
index 391c9b8f63a2f4549785d450c9de6b2737dd2d07..d83bc2051fd25fca36ba833ca434ccf4e9d8eeb0 100644
--- a/chrome/common/extensions/docs/extensions/runtime.html
+++ b/chrome/common/extensions/docs/extensions/runtime.html
@@ -224,6 +224,8 @@
<a href="#event-onInstalled">onInstalled</a>
</li><li>
<a href="#event-onSuspend">onSuspend</a>
+ </li><li>
+ <a href="#event-onSuspendCanceled">onSuspendCanceled</a>
</li>
</ol>
</li>
@@ -570,7 +572,23 @@
<span class="subdued">chrome.runtime.</span><span>onSuspend</span><span class="subdued">.addListener</span>(function(<span></span>) <span class="subdued">{...}</span><span></span>);
</div>
<div class="description">
- <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 unloading, any asynchronous operations started while handling this event are not guaranteed to complete.</p>
+ <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 unloading, any asynchronous operations started while handling this event are not guaranteed to complete. If more activity for the event page occurs before it gets unloaded the onSuspendCanceled event will be sent and the page won't be unloaded. </p>
+ <!-- LISTENER PARAMETERS -->
+ <!-- EXTRA PARAMETERS -->
+ <!-- LISTENER RETURN VALUE -->
+ <dl>
+ </dl>
+ </div> <!-- /description -->
+ <!-- /description -->
+ </div><div class="apiItem">
+ <a name="event-onSuspendCanceled"></a>
+ <h4>onSuspendCanceled</h4>
+ <div class="summary">
+ <!-- Note: intentionally longer 80 columns -->
+ <span class="subdued">chrome.runtime.</span><span>onSuspendCanceled</span><span class="subdued">.addListener</span>(function(<span></span>) <span class="subdued">{...}</span><span></span>);
+ </div>
+ <div class="description">
+ <p>Sent after onSuspend() to indicate that the app won't be unloaded after all.</p>
<!-- LISTENER PARAMETERS -->
<!-- EXTRA PARAMETERS -->
<!-- LISTENER RETURN VALUE -->
« no previous file with comments | « chrome/common/extensions/docs/apps/runtime.html ('k') | chrome/common/extensions/docs/samples.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698