Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: chrome/common/extensions/docs/tabs.html

Issue 5398002: doc stuff (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note:
2 1) The <head> information in this page is significant, should be uniform 2 1) The <head> information in this page is significant, should be uniform
3 across api docs and should be edited only with knowledge of the 3 across api docs and should be edited only with knowledge of the
4 templating mechanism. 4 templating mechanism.
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a
6 browser, it will be re-generated from the template, json schema and 6 browser, it will be re-generated from the template, json schema and
7 authored overview content. 7 authored overview content.
8 4) The <body>.innerHTML is also generated by an offline step so that this 8 4) The <body>.innerHTML is also generated by an offline step so that this
9 page may easily be indexed by search engines. 9 page may easily be indexed by search engines.
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 <ul> 163 <ul>
164 <li>Browser UI 164 <li>Browser UI
165 <ul> 165 <ul>
166 <li><a href="browserAction.html">Browser Actions</a></li> 166 <li><a href="browserAction.html">Browser Actions</a></li>
167 <li><a href="contextMenus.html">Context Menus</a></li> 167 <li><a href="contextMenus.html">Context Menus</a></li>
168 <li><a href="notifications.html">Desktop Notifications</a></li > 168 <li><a href="notifications.html">Desktop Notifications</a></li >
169 <li><a href="omnibox.html">Omnibox</a></li> 169 <li><a href="omnibox.html">Omnibox</a></li>
170 <li><a href="options.html">Options Pages</a></li> 170 <li><a href="options.html">Options Pages</a></li>
171 <li><a href="override.html">Override Pages</a></li> 171 <li><a href="override.html">Override Pages</a></li>
172 <li><a href="pageAction.html">Page Actions</a></li> 172 <li><a href="pageAction.html">Page Actions</a></li>
173 <li><a href="themes.html">Themes</a></li>
174 </ul> 173 </ul>
175 </li> 174 </li>
176 <li>Browser Interaction 175 <li>Browser Interaction
177 <ul> 176 <ul>
178 <li><a href="bookmarks.html">Bookmarks</a></li> 177 <li><a href="bookmarks.html">Bookmarks</a></li>
179 <li><a href="cookies.html">Cookies</a></li> 178 <li><a href="cookies.html">Cookies</a></li>
180 <li><a href="events.html">Events</a></li> 179 <li><a href="events.html">Events</a></li>
181 <li><a href="history.html">History</a></li> 180 <li><a href="history.html">History</a></li>
182 <li><a href="management.html">Management</a></li> 181 <li><a href="management.html">Management</a></li>
183 <li class="leftNavSelected">Tabs</li> 182 <li class="leftNavSelected">Tabs</li>
(...skipping 13 matching lines...) Expand all
197 </ul> 196 </ul>
198 </li> 197 </li>
199 <li>Finishing 198 <li>Finishing
200 <ul> 199 <ul>
201 <li><a href="hosting.html">Hosting</a></li> 200 <li><a href="hosting.html">Hosting</a></li>
202 <li><a href="external_extensions.html">Other Deployment Option s</a></li> 201 <li><a href="external_extensions.html">Other Deployment Option s</a></li>
203 </ul> 202 </ul>
204 </li> 203 </li>
205 </ul> 204 </ul>
206 </li> 205 </li>
206 <li><h2><a href="apps.html">Packaged Apps</a></h2></li>
207 <li><h2><a href="tutorials.html">Tutorials</a></h2> 207 <li><h2><a href="tutorials.html">Tutorials</a></h2>
208 <ul> 208 <ul>
209 <li><a href="tut_debugging.html">Debugging</a></li> 209 <li><a href="tut_debugging.html">Debugging</a></li>
210 <li><a href="tut_analytics.html">Google Analytics</a></li> 210 <li><a href="tut_analytics.html">Google Analytics</a></li>
211 <li><a href="tut_oauth.html">OAuth</a></li> 211 <li><a href="tut_oauth.html">OAuth</a></li>
212 </ul> 212 </ul>
213 </li> 213 </li>
214 <li><h2>Reference</h2> 214 <li><h2>Reference</h2>
215 <ul> 215 <ul>
216 <li>Formats 216 <li>Formats
217 <ul> 217 <ul>
218 <li><a href="manifest.html">Manifest Files</a></li> 218 <li><a href="manifest.html">Manifest Files</a></li>
219 <li><a href="match_patterns.html">Match Patterns</a></li> 219 <li><a href="match_patterns.html">Match Patterns</a></li>
220 <!-- <li>Packages (.crx)</li> -->
221 </ul> 220 </ul>
222 </li> 221 </li>
222 <li><a href="permission_warnings.html">Permission Warnings</a></li >
223 <li><a href="api_index.html">chrome.* APIs</a></li> 223 <li><a href="api_index.html">chrome.* APIs</a></li>
224 <li><a href="api_other.html">Other APIs</a></li> 224 <li><a href="api_other.html">Other APIs</a></li>
225 </ul> 225 </ul>
226 </li> 226 </li>
227 <li><h2><a href="samples.html">Samples</a></h2></li> 227 <li><h2><a href="samples.html">Samples</a></h2></li>
228 <div class="line"> </div> 228 <div class="line"> </div>
229 <li><h2>More</h2> 229 <li><h2>More</h2>
230 <ul> 230 <ul>
231 <li><a href="http://code.google.com/chrome/webstore/docs/index.htm l">Chrome Web Store</a></li> 231 <li><a href="http://code.google.com/chrome/webstore/docs/index.htm l">Chrome Web Store</a></li>
232 <li><a href="http://code.google.com/chrome/apps/docs/developers_gu ide.html">Installable Web Apps</a></li> 232 <li><a href="http://code.google.com/chrome/apps/docs/developers_gu ide.html">Hosted Apps</a></li>
233 <li><a href="themes.html">Themes</a></li> 233 <li><a href="themes.html">Themes</a></li>
234 </ul> 234 </ul>
235 </li> 235 </li>
236 </ul> 236 </ul>
237 </div> 237 </div>
238 <script> 238 <script>
239 initToggles(); 239 initToggles();
240 </script> 240 </script>
241 241
242 <div class="g-unit" id="gc-pagecontent"> 242 <div class="g-unit" id="gc-pagecontent">
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 <p id="classSummary"> 353 <p id="classSummary">
354 Use the <code>chrome.tabs</code> module 354 Use the <code>chrome.tabs</code> module
355 to interact with the browser's tab system. 355 to interact with the browser's tab system.
356 You can use this module to 356 You can use this module to
357 create, modify, and rearrange tabs in the browser. 357 create, modify, and rearrange tabs in the browser.
358 </p> 358 </p>
359 359
360 <img src="images/tabs.png" width="323" height="50" alt="Two tabs in a window"> 360 <img src="images/tabs.png" width="323" height="50" alt="Two tabs in a window">
361 361
362 <h2 id="manifest">Manifest</h2> 362 <h2 id="manifest">Manifest</h2>
363 <p>All but two functions* require you to declare the "tabs" permission in your e xtension's manifest to use the tabs API. 363 <p>
364 Almost all <code>chrome.tabs</code> methods require you to
365 declare the "tabs" permission
366 in the <a href="manifest.html">extension manifest</a>.
364 For example: 367 For example:
365 </p> 368 </p>
366 369
367 <pre>{ 370 <pre>{
368 "name": "My extension", 371 "name": "My extension",
369 ... 372 ...
370 <b>"permissions": [ 373 <b>"permissions": [
371 "tabs" 374 "tabs"
372 ]</b>, 375 ]</b>,
373 ... 376 ...
374 }</pre> 377 }</pre>
375 378
376 <p>* The two functions that do not require the "tabs" permission are: tabs.creat e and tabs.update</p> 379 <p>
380 The two methods that don't require the "tabs" permission are
381 <a href="#method-create"><code>create</code></a> and
382 <a href="#method-update"><code>update</code></a>.
383 </p>
384
385
377 <h2 id="examples"> Examples </h2> 386 <h2 id="examples"> Examples </h2>
378 387
379 <p> 388 <p>
380 You can find simple examples of using the tabs module in the 389 You can find simple examples of using the tabs module in the
381 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension s/docs/examples/api/tabs/">examples/api/tabs</a> 390 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension s/docs/examples/api/tabs/">examples/api/tabs</a>
382 directory. 391 directory.
383 For other examples and for help in viewing the source code, see 392 For other examples and for help in viewing the source code, see
384 <a href="samples.html">Samples</a>. 393 <a href="samples.html">Samples</a>.
385 </p> 394 </p>
386 395
(...skipping 6998 matching lines...) Expand 10 before | Expand all | Expand 10 after
7385 _uff=0; 7394 _uff=0;
7386 urchinTracker(); 7395 urchinTracker();
7387 } 7396 }
7388 catch(e) {/* urchinTracker not available. */} 7397 catch(e) {/* urchinTracker not available. */}
7389 </script> 7398 </script>
7390 <!-- end analytics --> 7399 <!-- end analytics -->
7391 </div> 7400 </div>
7392 </div> <!-- /gc-footer --> 7401 </div> <!-- /gc-footer -->
7393 </div> <!-- /gc-container --> 7402 </div> <!-- /gc-container -->
7394 </body></html> 7403 </body></html>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/static/tabs.html ('k') | chrome/common/extensions/docs/template/api_template.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698