diff options
author | kathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 18:06:08 +0000 |
---|---|---|
committer | kathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 18:06:08 +0000 |
commit | dd3e1fdc061bd405e9826612d682c610d6801490 (patch) | |
tree | bb5e891978f64bdfb21037363d94a552268551ad /chrome/common/extensions/docs/static/background_pages.html | |
parent | 669795375b446d72f51d464db05ec30906d3d433 (diff) | |
download | chromium_src-dd3e1fdc061bd405e9826612d682c610d6801490.zip chromium_src-dd3e1fdc061bd405e9826612d682c610d6801490.tar.gz chromium_src-dd3e1fdc061bd405e9826612d682c610d6801490.tar.bz2 |
Formatting pass: h3 -> h2, minor changes to some page names,
removed "Status" sections (since this isn't a design doc
any more), ... Also added a few styles.
No meaningful changes to anything except packaging.html.
I did an editing pass on that page but didn't change the
content significantly.
TBR=aa, rafaelw
Review URL: http://codereview.chromium.org/165535
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/static/background_pages.html')
-rwxr-xr-x | chrome/common/extensions/docs/static/background_pages.html | 47 |
1 files changed, 33 insertions, 14 deletions
diff --git a/chrome/common/extensions/docs/static/background_pages.html b/chrome/common/extensions/docs/static/background_pages.html index 3d99295..b412635 100755 --- a/chrome/common/extensions/docs/static/background_pages.html +++ b/chrome/common/extensions/docs/static/background_pages.html @@ -1,16 +1,26 @@ <div id="pageData-title" class="pageData">Background Pages</div> -<p>A common need for extensions is to have a single long-running script to manage some task or state. Toolstrips don't quite fit this need, because there can be multiple toolstrips active at any one time (one per browser window). Background pages to the rescue.</p> - -<p>The background page is similar to a toolstrip, 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 there is only one instance of it active at a time.</p> - -<h3>Status</h3> - -<p>Implemented.</p> - -<h3>Details</h3> - -<p>Register your background page in the extension manifest, like this:</p> +<p> +A common need for extensions is to have +a single long-running script to manage some task or state. +Toolstrips don't quite fit this need, +because multiple toolstrips can be active at any one time +(one per browser window). +Background pages to the rescue. +</p> + +<p> +The background page is similar to a toolstrip, +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> + +<h2>Details</h2> + +<p> +Register your background page in the extension manifest, like this: +</p> <pre>{ "name": "My First Extension", @@ -20,9 +30,18 @@ "toolstrips": ["toolstrip.html"] }</pre> -<p>Your toolstrip will likely contain only the necessary code to display the toolstrip UI, with all your extension logic contained in the background page. You can communicate between your various pages using direct script calls, similar to how frames can communicate. The chrome.self.getViews() function returns a list of window objects for every active page belonging to your extension.</p> - -<h3>Example</h3> +<p> +Your toolstrip will likely contain +only the necessary code to display the toolstrip UI, +with all your extension logic contained in the background page. +You can communicate between your various pages using direct script calls, +similar to how frames can communicate. +The chrome.self.getViews() function +returns a list of window objects +for every active page belonging to your extension. +</p> + +<h2>Example</h2> <pre>background_page.html (snippet): function updateUI(checked) { |