Home | History | Annotate | Download | only in static
      1 <div id="pageData-name" class="pageData">Tabs</div>
      2 
      3 <!-- BEGIN AUTHORED CONTENT -->
      4 <p id="classSummary">
      5 Use the <code>chrome.tabs</code> module
      6 to interact with the browser's tab system.
      7 You can use this module to
      8 create, modify, and rearrange tabs in the browser.
      9 </p>
     10 
     11 <img src="images/tabs.png"
     12      width="323" height="50" alt="Two tabs in a window" />
     13 
     14 <h2 id="manifest">Manifest</h2>
     15 <p>
     16 Almost all <code>chrome.tabs</code> methods require you to
     17 declare the "tabs" permission
     18 in the <a href="manifest.html">extension manifest</a>.
     19 For example:
     20 </p>
     21 
     22 <pre>{
     23   "name": "My extension",
     24   ...
     25   <b>"permissions": [
     26     "tabs"
     27   ]</b>,
     28   ...
     29 }</pre>
     30 
     31 <p>
     32 The two methods that don't require the "tabs" permission are
     33 <a href="#method-create"><code>create</code></a> and
     34 <a href="#method-update"><code>update</code></a>.
     35 </p>
     36 
     37 
     38 <h2 id="examples"> Examples </h2>
     39 
     40 <p>
     41 You can find simple examples of using the tabs module in the
     42 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/">examples/api/tabs</a>
     43 directory.
     44 For other examples and for help in viewing the source code, see
     45 <a href="samples.html">Samples</a>.
     46 </p>
     47 
     48 <!-- END AUTHORED CONTENT -->
     49