Home | History | Annotate | Download | only in intros
      1 <img src="{{static}}/images/tabs.png"
      2      width="323" height="50" alt="Two tabs in a window" />
      3 
      4 <h2 id="manifest">Manifest</h2>
      5 <p>
      6 Almost all <code>chrome.tabs</code> methods require you to
      7 declare the "tabs" permission
      8 in the <a href="manifest.html">extension manifest</a>.
      9 For example:
     10 </p>
     11 
     12 <pre>{
     13   "name": "My extension",
     14   ...
     15   <b>"permissions": [
     16     "tabs"
     17   ]</b>,
     18   ...
     19 }</pre>
     20 
     21 <p>
     22 Three methods ($ref:tabs.create,
     23 $ref:tabs.update and
     24 $ref:tabs.remove) and one event
     25 ($ref:tabs.onRemoved) don't require the "tabs"
     26 permission.
     27 </p>
     28 
     29 
     30 <h2 id="examples"> Examples </h2>
     31 
     32 <p>
     33 You can find simple examples of using the tabs module in the
     34 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/">examples/api/tabs</a>
     35 directory.
     36 For other examples and for help in viewing the source code, see
     37 <a href="samples.html">Samples</a>.
     38 </p>
     39