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

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: 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/api/runtime.json ('k') | chrome/common/extensions/docs/extensions/runtime.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bac650346d58be409471180669c88cec5c081c2f 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 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/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