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

Unified Diff: chrome/common/extensions/docs/background_pages.html

Issue 225023: Another draft of the overview. Made related changes to the content scripts (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « no previous file | chrome/common/extensions/docs/content_scripts.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/background_pages.html
===================================================================
--- chrome/common/extensions/docs/background_pages.html (revision 27015)
+++ chrome/common/extensions/docs/background_pages.html (working copy)
@@ -224,8 +224,20 @@
in that it is an HTML page that runs in the extension process.
The difference is that the background page exists
for the lifetime of your extension,
-and only one instance of it at a time is active.</p>
+and only one instance of it at a time is active.
+</p>
+<p>
+In a typical extension with a background page,
+the UI —
+toolstrips, page actions, and so on —
+is implemented with dumb views.
+When the view needs some state,
+it requests the state from the background page.
+When the background page notices a state change,
+the background page tells the views to update.
+</p>
+
<h2 id="manifest">Manifest</h2>
<p>
« no previous file with comments | « no previous file | chrome/common/extensions/docs/content_scripts.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698