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