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 --> |