summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/static/tabs.html
blob: b20ee50e7709aa7090b0380f730ac4636b61153e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div id="pageData-name" class="pageData">Tabs</div>

<!-- BEGIN AUTHORED CONTENT -->
<p id="classSummary">
Use the <code>chrome.tabs</code> module
to interact with the browser's tab system.
You can use this module to
create, modify, and rearrange tabs in the browser.
</p>

<img src="images/tabs.png"
     width="323" height="50" alt="Two tabs in a window" />

<h2 id="manifest">Manifest</h2>
<p>You must declare the "tabs" permission in your extension's manifest to use the tabs API.
For example:
</p>

<pre>{
  "name": "My extension",
  ...
  <b>"permissions": [
    "tabs"
  ]</b>,
  ...
}</pre>

<h2 id="examples"> Examples </h2>

<p>
You can find simple examples of using the tabs module in the
<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/">examples/api/tabs</a>
directory.
For other examples and for help in viewing the source code, see
<a href="samples.html">Samples</a>.
</p>

<!-- END AUTHORED CONTENT -->