Index: chrome/common/extensions/docs/server2/templates/intros/windows.html |
diff --git a/chrome/common/extensions/docs/server2/templates/intros/windows.html b/chrome/common/extensions/docs/server2/templates/intros/windows.html |
index fbf674e1a0b03313fc54bc79a000d5cc70b997de..2cca1cc046aa75e5d7b2c53901b5d8ff39a21285 100644 |
--- a/chrome/common/extensions/docs/server2/templates/intros/windows.html |
+++ b/chrome/common/extensions/docs/server2/templates/intros/windows.html |
@@ -1,12 +1,13 @@ |
-<!-- BEGIN AUTHORED CONTENT --> |
<p id="classSummary"> |
Use the <code>chrome.windows</code> module |
to interact with browser windows. |
You can use this module to |
create, modify, and rearrange windows in the browser. |
</p> |
+ |
<img src="{{static}}/images/windows.png" |
width="256" height="76" alt="Two windows, each with one tab" /> |
+ |
<h2 id="manifest">Manifest</h2> |
<p> |
To use the windows API, |
@@ -17,22 +18,27 @@ the window and tabs modules interact so closely we |
decided to just share one permission between them.) |
For example: |
</p> |
+ |
<pre>{ |
"name": "My extension", |
... |
<b>"permissions": ["tabs"]</b>, |
... |
}</pre> |
+ |
<h2 id="current-window">The current window</h2> |
+ |
<p>Many functions in the extension system |
take an optional <var>windowId</var> parameter, |
which defaults to the current window. |
</p> |
+ |
<p>The <em>current window</em> 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> |
+ |
<p>For example, say an extension |
creates a few tabs or windows from a single HTML file, |
and that the HTML file |
@@ -41,11 +47,14 @@ contains a call to |
The current window is the window that contains the page that made |
the call, no matter what the topmost window is. |
</p> |
+ |
<p>In the case of the <a href="background_pages.html">background page</a>, |
the value of the current window falls back to the last active window. Under some |
circumstances, there may be no current window for background pages. |
</p> |
+ |
<h2 id="examples"> Examples </h2> |
+ |
<p> |
You can find simple examples of using the windows module in the |
<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/windows/">examples/api/windows</a> |
@@ -57,5 +66,4 @@ of the |
example. |
For other examples and for help in viewing the source code, see |
<a href="samples.html">Samples</a>. |
-</p> |
-<!-- END AUTHORED CONTENT --> |
+</p> |