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

Side by Side Diff: chrome/common/extensions/docs/server2/templates/articles/event_pages.html

Issue 10834130: Extensions Docs Server: Doc conversion script - SVN (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 unified diff | Download patch
OLDNEW
1 <div id="pageData-name" class="pageData">Event Pages</div> 1 <h1>Event Pages</h1>
2 <div id="pageData-showTOC" class="pageData">true</div> 2
3 3
4 <p> 4 <p>
5 Event pages are very similar to 5 Event pages are very similar to
6 <a href="background_pages.html">background pages</a>, 6 <a href="background_pages.html">background pages</a>,
7 with one important difference: 7 with one important difference:
8 event pages are loaded only when they are needed. 8 event pages are loaded only when they are needed.
9 When the event page is not actively doing something, 9 When the event page is not actively doing something,
10 it is unloaded, freeing memory and other system resources. 10 it is unloaded, freeing memory and other system resources.
11 </p> 11 </p>
12 12
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBa ckgroundPage()</a></code>, 113 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBa ckgroundPage()</a></code>,
114 switch to 114 switch to
115 <code><a href="runtime.html#method-getBackgroundPage">chrome.runtime.getBackgr oundPage()</a></code> 115 <code><a href="runtime.html#method-getBackgroundPage">chrome.runtime.getBackgr oundPage()</a></code>
116 instead. The newer method is asynchronous so that it can start the event 116 instead. The newer method is asynchronous so that it can start the event
117 page if necessary before returning it. 117 page if necessary before returning it.
118 118
119 <li>If you're using <a href="messaging.html">message passing</a>, be sure 119 <li>If you're using <a href="messaging.html">message passing</a>, be sure
120 to close unused message ports. The event page will not shut down until all 120 to close unused message ports. The event page will not shut down until all
121 message ports are closed. 121 message ports are closed.
122 </ol> 122 </ol>
123 </p> 123 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698