diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 07:17:35 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 07:17:35 +0000 |
commit | 2f3345ff725395b5e8466eb2b4d45e9d8e9024e0 (patch) | |
tree | 1826787800d19277e664558adb43eeb9c998c16b /chrome/common/extensions/docs/static/windows.html | |
parent | 8d518af0634a01ff4a78479bef43d880259949ca (diff) | |
download | chromium_src-2f3345ff725395b5e8466eb2b4d45e9d8e9024e0.zip chromium_src-2f3345ff725395b5e8466eb2b4d45e9d8e9024e0.tar.gz chromium_src-2f3345ff725395b5e8466eb2b4d45e9d8e9024e0.tar.bz2 |
Fill out the tabs docs. Also, fix a bug where we didn't
honor #anchors in dynamic mode.
TBR=rafaelw@chromium.org,kathyw@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/static/windows.html')
-rwxr-xr-x | chrome/common/extensions/docs/static/windows.html | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/chrome/common/extensions/docs/static/windows.html b/chrome/common/extensions/docs/static/windows.html index 997b579..49f5cd1 100755 --- a/chrome/common/extensions/docs/static/windows.html +++ b/chrome/common/extensions/docs/static/windows.html @@ -1,5 +1,22 @@ <!-- BEGIN AUTHORED CONTENT --> -<p class="todo"> -[PENDING: API Module Overview Goes Here] -</p> +<h2 id="current-window">The current window</h2> + +<p>Many functions in the extension system +take an optional <var>windowId</var> parameter +which is documented to default to the <em>current window</em>. + +<p>The current window is the window that +contains the code that is currently executing. +It's important to realize that this can be +different from the topmost or focused window. + +<p>For example, consider code running in a +<a href="toolstrip.html">toolstrip</a>, that +calls <a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a>. +The current window is the window that contains the toolstrip that made +the call, no matter what the topmost window is. + +<p>In the case of the <a href="background_pages.html">background page</a>, +the value of the current window falls back to the topmost window. + <!-- END AUTHORED CONTENT --> |