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

Unified 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: 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
Index: chrome/common/extensions/docs/apps/runtime.html
diff --git a/chrome/common/extensions/docs/apps/runtime.html b/chrome/common/extensions/docs/apps/runtime.html
index 0c8247055ec0e1dc84b4224ff2dee566370b46e1..04662f12343156a12fc5b7916dd5049274fdc16b 100644
--- a/chrome/common/extensions/docs/apps/runtime.html
+++ b/chrome/common/extensions/docs/apps/runtime.html
@@ -195,6 +195,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>
@@ -503,7 +505,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 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 -->

Powered by Google App Engine
This is Rietveld 408576698