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 3 across api docs and should be edited only with knowledge of the 4 templating mechanism. 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 7 authored overview content. 8 4) The <body>.innerHTML is also generated by an offline step so that this 9 page may easily be indexed by search engines. 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 12 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css"> 13 <link href="css/print.css" rel="stylesheet" type="text/css" media="print"> 14 <script type="text/javascript" src="../../../third_party/jstemplate/jstemplate_compiled.js"> 15 </script> 16 <script type="text/javascript" src="js/api_page_generator.js"></script> 17 <script type="text/javascript" src="js/bootstrap.js"></script> 18 <script type="text/javascript" src="js/sidebar.js"></script> 19 <title>chrome.experimental.infobars - Google Chrome Extensions - Google Code</title></head> 20 <body> <div id="gc-container" class="labs"> 21 <div id="devModeWarning"> 22 You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with --allow-file-access-from-files. 23 </div> 24 <!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION --> 25 <!-- In particular, sub-templates that recurse, must be used by allowing 26 jstemplate to make a copy of the template in this section which 27 are not operated on by way of the jsskip="true" --> 28 <div style="display:none"> 29 30 <!-- VALUE --> 31 <div id="valueTemplate"> 32 <dt> 33 <var>paramName</var> 34 <em> 35 36 <!-- TYPE --> 37 <div style="display:inline"> 38 ( 39 <span class="optional">optional</span> 40 <span class="enum">enumerated</span> 41 <span id="typeTemplate"> 42 <span> 43 <a> Type</a> 44 </span> 45 <span> 46 <span> 47 array of <span><span></span></span> 48 </span> 49 <span>paramType</span> 50 <span></span> 51 </span> 52 </span> 53 ) 54 </div> 55 56 </em> 57 </dt> 58 <dd class="todo"> 59 Undocumented. 60 </dd> 61 <dd> 62 Description of this parameter from the json schema. 63 </dd> 64 <dd> 65 This parameter was added in version 66 <b><span></span></b>. 67 You must omit this parameter in earlier versions, 68 and you may omit it in any version. If you require this 69 parameter, the manifest key 70 <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> 71 can ensure that your extension won't be run in an earlier browser version. 72 </dd> 73 74 <!-- OBJECT PROPERTIES --> 75 <dd> 76 <dl> 77 <div> 78 <div> 79 </div> 80 </div> 81 </dl> 82 </dd> 83 84 <!-- OBJECT METHODS --> 85 <dd> 86 <div></div> 87 </dd> 88 89 <!-- OBJECT EVENT FIELDS --> 90 <dd> 91 <div></div> 92 </dd> 93 94 <!-- FUNCTION PARAMETERS --> 95 <dd> 96 <div></div> 97 </dd> 98 99 </div> <!-- /VALUE --> 100 101 <div id="functionParametersTemplate"> 102 <h5>Parameters</h5> 103 <dl> 104 <div> 105 <div> 106 </div> 107 </div> 108 </dl> 109 </div> 110 </div> <!-- /SUBTEMPLATES --> 111 112 <a id="top"></a> 113 <div id="skipto"> 114 <a href="#gc-pagecontent">Skip to page content</a> 115 <a href="#gc-toc">Skip to main navigation</a> 116 </div> 117 <!-- API HEADER --> 118 <table id="header" width="100%" cellspacing="0" border="0"> 119 <tbody><tr> 120 <td valign="middle"><a href="http://code.google.com/"><img src="images/code_labs_logo.gif" height="43" width="161" alt="Google Code Labs" style="border:0; margin:0;"></a></td> 121 <td valign="middle" width="100%" style="padding-left:0.6em;"> 122 <form action="http://www.google.com/cse" id="cse" style="margin-top:0.5em"> 123 <div id="gsc-search-box"> 124 <input type="hidden" name="cx" value="002967670403910741006:61_cvzfqtno"> 125 <input type="hidden" name="ie" value="UTF-8"> 126 <input type="text" name="q" value="" size="55"> 127 <input class="gsc-search-button" type="submit" name="sa" value="Search"> 128 <br> 129 <span class="greytext">e.g. "page action" or "tabs"</span> 130 </div> 131 </form> 132 133 <script type="text/javascript" src="http://www.google.com/jsapi"></script> 134 <script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script> 135 <script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse&t13n_langs=en"></script> 136 <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse&lang=en"></script> 137 </td> 138 </tr> 139 </tbody></table> 140 141 <div id="codesiteContent" class=""> 142 143 <a id="gc-topnav-anchor"></a> 144 <div id="gc-topnav"> 145 <h1>Google Chrome Extensions (<a href="http://code.google.com/labs/">Labs</a>)</h1> 146 <ul id="home" class="gc-topnav-tabs"> 147 <li id="home_link"> 148 <a href="index.html" title="Google Chrome Extensions home page">Home</a> 149 </li> 150 <li id="docs_link"> 151 <a href="docs.html" title="Official Google Chrome Extensions documentation">Docs</a> 152 </li> 153 <li id="faq_link"> 154 <a href="faq.html" title="Answers to frequently asked questions about Google Chrome Extensions">FAQ</a> 155 </li> 156 <li id="samples_link"> 157 <a href="samples.html" title="Sample extensions (with source code)">Samples</a> 158 </li> 159 <li id="group_link"> 160 <a href="http://groups.google.com/a/chromium.org/group/chromium-extensions" title="Google Chrome Extensions developer forum">Group</a> 161 </li> 162 </ul> 163 </div> <!-- end gc-topnav --> 164 165 <div class="g-section g-tpl-170"> 166 <!-- SIDENAV --> 167 <div class="g-unit g-first" id="gc-toc"> 168 <ul> 169 <li><a href="getstarted.html">Getting Started</a></li> 170 <li><a href="overview.html">Overview</a></li> 171 <li><a href="whats_new.html">What's New?</a></li> 172 <li><h2><a href="devguide.html">Developer's Guide</a></h2> 173 <ul> 174 <li>Browser UI 175 <ul> 176 <li><a href="browserAction.html">Browser Actions</a></li> 177 <li><a href="contextMenus.html">Context Menus</a></li> 178 <li><a href="notifications.html">Desktop Notifications</a></li> 179 <li><a href="omnibox.html">Omnibox</a></li> 180 <li><a href="options.html">Options Pages</a></li> 181 <li><a href="override.html">Override Pages</a></li> 182 <li><a href="pageAction.html">Page Actions</a></li> 183 </ul> 184 </li> 185 <li>Browser Interaction 186 <ul> 187 <li><a href="bookmarks.html">Bookmarks</a></li> 188 <li><a href="cookies.html">Cookies</a></li> 189 <li><a href="events.html">Events</a></li> 190 <li><a href="history.html">History</a></li> 191 <li><a href="management.html">Management</a></li> 192 <li><a href="tabs.html">Tabs</a></li> 193 <li><a href="windows.html">Windows</a></li> 194 </ul> 195 </li> 196 <li>Implementation 197 <ul> 198 <li><a href="a11y.html">Accessibility</a></li> 199 <li><a href="background_pages.html">Background Pages</a></li> 200 <li><a href="content_scripts.html">Content Scripts</a></li> 201 <li><a href="xhr.html">Cross-Origin XHR</a></li> 202 <li><a href="idle.html">Idle</a></li> 203 <li><a href="i18n.html">Internationalization</a></li> 204 <li><a href="messaging.html">Message Passing</a></li> 205 <li><a href="npapi.html">NPAPI Plugins</a></li> 206 </ul> 207 </li> 208 <li>Finishing 209 <ul> 210 <li><a href="hosting.html">Hosting</a></li> 211 <li><a href="external_extensions.html">Other Deployment Options</a></li> 212 </ul> 213 </li> 214 </ul> 215 </li> 216 <li><h2><a href="apps.html">Packaged Apps</a></h2></li> 217 <li><h2><a href="tutorials.html">Tutorials</a></h2> 218 <ul> 219 <li><a href="tut_debugging.html">Debugging</a></li> 220 <li><a href="tut_analytics.html">Google Analytics</a></li> 221 <li><a href="tut_oauth.html">OAuth</a></li> 222 </ul> 223 </li> 224 <li><h2>Reference</h2> 225 <ul> 226 <li>Formats 227 <ul> 228 <li><a href="manifest.html">Manifest Files</a></li> 229 <li><a href="match_patterns.html">Match Patterns</a></li> 230 </ul> 231 </li> 232 <li><a href="permission_warnings.html">Permission Warnings</a></li> 233 <li><a href="api_index.html">chrome.* APIs</a></li> 234 <li><a href="api_other.html">Other APIs</a></li> 235 </ul> 236 </li> 237 <li><h2><a href="samples.html">Samples</a></h2></li> 238 <div class="line"> </div> 239 <li><h2>More</h2> 240 <ul> 241 <li><a href="http://code.google.com/chrome/webstore/docs/index.html">Chrome Web Store</a></li> 242 <li><a href="http://code.google.com/chrome/apps/docs/developers_guide.html">Hosted Apps</a></li> 243 <li><a href="themes.html">Themes</a></li> 244 </ul> 245 </li> 246 </ul> 247 </div> 248 <script> 249 initToggles(); 250 </script> 251 252 <div class="g-unit" id="gc-pagecontent"> 253 <div id="pageTitle"> 254 <h1 class="page_title">chrome.experimental.infobars</h1> 255 </div> 256 <!-- TABLE OF CONTENTS --> 257 <div id="toc"> 258 <h2>Contents</h2> 259 <ol> 260 <li> 261 <a href="#manifest">Manifest</a> 262 <ol> 263 <li style="display: none; "> 264 <a>h3Name</a> 265 </li> 266 </ol> 267 </li> 268 <li> 269 <a href="#apiReference">API reference: chrome.experimental.infobars</a> 270 <ol> 271 <li style="display: none; "> 272 <a href="#properties">Properties</a> 273 <ol> 274 <li> 275 <a href="#property-anchor">propertyName</a> 276 </li> 277 </ol> 278 </li> 279 <li> 280 <a href="#global-methods">Methods</a> 281 <ol> 282 <li> 283 <a href="#method-show">show</a> 284 </li> 285 </ol> 286 </li> 287 <li style="display: none; "> 288 <a>Events</a> 289 <ol> 290 <li> 291 <a href="#event-anchor">eventName</a> 292 </li> 293 </ol> 294 </li> 295 <li style="display: none; "> 296 <a href="#types">Types</a> 297 <ol> 298 <li> 299 <a href="#id-anchor">id</a> 300 </li> 301 </ol> 302 </li> 303 </ol> 304 </li> 305 </ol> 306 </div> 307 <!-- /TABLE OF CONTENTS --> 308 309 <!-- Standard content lead-in for experimental API pages --> 310 <p id="classSummary"> 311 For information on how to use experimental APIs, see the <a href="experimental.html">chrome.experimental.* APIs</a> page. 312 </p> 313 314 <!-- STATIC CONTENT PLACEHOLDER --> 315 <div id="static"><!-- BEGIN AUTHORED CONTENT --> 316 <p> 317 The infobars API allows you to add a 318 horizontal panel just above a tab's contents, 319 as the following screenshot shows. 320 </p> 321 322 <p> 323 <img src="images/infobar.png" width="566" height="150" alt="An infobar asking whether the user wants to translate the current page"> 324 </p> 325 326 <p> 327 Use an infobar to tell the reader 328 something about a particular page. 329 When the user leaves the page for which the infobar is displayed, 330 Google Chrome automatically closes the infobar. 331 </p> 332 333 <p> 334 You implement the content of your 335 infobar using HTML. Because infobars are ordinary pages inside an extension, 336 they can 337 <a href="overview.html#pageComm">communicate with other extension pages</a>. 338 </p> 339 340 341 <h2 id="manifest">Manifest</h2> 342 343 <p> 344 The infobars API is currently 345 experimental, so you must declare the "experimental" 346 permission to use it. Also, you should specify 347 a 16x16-pixel icon for display next to your infobar. 348 For example: 349 </p> 350 351 <pre>{ 352 "name": "Andy's infobar extension", 353 "version": "1.0", 354 <b>"permissions": ["experimental"],</b> 355 <b>"icons": {</b> 356 <b>"16": "16.png"</b> 357 <b>},</b> 358 "background_page": "background.html" 359 }</pre> 360 361 <!-- END AUTHORED CONTENT --> 362 </div> 363 364 <!-- API PAGE --> 365 <div class="apiPage"> 366 <a name="apiReference"></a> 367 <h2>API reference: chrome.experimental.infobars</h2> 368 369 <!-- PROPERTIES --> 370 <div class="apiGroup" style="display: none; "> 371 <a name="properties"></a> 372 <h3 id="properties">Properties</h3> 373 374 <div> 375 <a></a> 376 <h4>getLastError</h4> 377 <div class="summary"> 378 <!-- Note: intentionally longer 80 columns --> 379 <span>chrome.extension</span><span>lastError</span> 380 </div> 381 <div> 382 </div> 383 </div> 384 385 </div> <!-- /apiGroup --> 386 387 <!-- METHODS --> 388 <div id="methodsTemplate" class="apiGroup"> 389 <a name="global-methods"></a> 390 <h3>Methods</h3> 391 392 <!-- iterates over all functions --> 393 <div class="apiItem"> 394 <a name="method-show"></a> <!-- method-anchor --> 395 <h4>show</h4> 396 397 <div class="summary"><span style="display: none; ">void</span> 398 <!-- Note: intentionally longer 80 columns --> 399 <span>chrome.experimental.infobars.show</span>(<span class="null"><span style="display: none; ">, </span><span>object</span> 400 <var><span>details</span></var></span><span class="optional"><span>, </span><span>function</span> 401 <var><span>callback</span></var></span>)</div> 402 403 <div class="description"> 404 <p class="todo" style="display: none; ">Undocumented.</p> 405 <p>Shows an infobar in the specified tab. The infobar will be closed automatically when the tab navigates. Use window.close() to close the infobar before then.</p> 406 407 <!-- PARAMETERS --> 408 <h4>Parameters</h4> 409 <dl> 410 <div> 411 <div> 412 <dt> 413 <var>details</var> 414 <em> 415 416 <!-- TYPE --> 417 <div style="display:inline"> 418 ( 419 <span class="optional" style="display: none; ">optional</span> 420 <span class="enum" style="display: none; ">enumerated</span> 421 <span id="typeTemplate"> 422 <span style="display: none; "> 423 <a> Type</a> 424 </span> 425 <span> 426 <span style="display: none; "> 427 array of <span><span></span></span> 428 </span> 429 <span>object</span> 430 <span style="display: none; "></span> 431 </span> 432 </span> 433 ) 434 </div> 435 436 </em> 437 </dt> 438 <dd class="todo"> 439 Undocumented. 440 </dd> 441 <dd style="display: none; "> 442 Description of this parameter from the json schema. 443 </dd> 444 <dd style="display: none; "> 445 This parameter was added in version 446 <b><span></span></b>. 447 You must omit this parameter in earlier versions, 448 and you may omit it in any version. If you require this 449 parameter, the manifest key 450 <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> 451 can ensure that your extension won't be run in an earlier browser version. 452 </dd> 453 454 <!-- OBJECT PROPERTIES --> 455 <dd> 456 <dl> 457 <div> 458 <div> 459 <dt> 460 <var>tabId</var> 461 <em> 462 463 <!-- TYPE --> 464 <div style="display:inline"> 465 ( 466 <span class="optional" style="display: none; ">optional</span> 467 <span class="enum" style="display: none; ">enumerated</span> 468 <span id="typeTemplate"> 469 <span style="display: none; "> 470 <a> Type</a> 471 </span> 472 <span> 473 <span style="display: none; "> 474 array of <span><span></span></span> 475 </span> 476 <span>integer</span> 477 <span style="display: none; "></span> 478 </span> 479 </span> 480 ) 481 </div> 482 483 </em> 484 </dt> 485 <dd class="todo" style="display: none; "> 486 Undocumented. 487 </dd> 488 <dd>The tab id for the tab to display the infobar in.</dd> 489 <dd style="display: none; "> 490 This parameter was added in version 491 <b><span></span></b>. 492 You must omit this parameter in earlier versions, 493 and you may omit it in any version. If you require this 494 parameter, the manifest key 495 <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> 496 can ensure that your extension won't be run in an earlier browser version. 497 </dd> 498 499 <!-- OBJECT PROPERTIES --> 500 <dd style="display: none; "> 501 <dl> 502 <div> 503 <div> 504 </div> 505 </div> 506 </dl> 507 </dd> 508 509 <!-- OBJECT METHODS --> 510 <dd style="display: none; "> 511 <div></div> 512 </dd> 513 514 <!-- OBJECT EVENT FIELDS --> 515 <dd style="display: none; "> 516 <div></div> 517 </dd> 518 519 <!-- FUNCTION PARAMETERS --> 520 <dd style="display: none; "> 521 <div></div> 522 </dd> 523 524 </div> 525 </div><div> 526 <div> 527 <dt> 528 <var>path</var> 529 <em> 530 531 <!-- TYPE --> 532 <div style="display:inline"> 533 ( 534 <span class="optional" style="display: none; ">optional</span> 535 <span class="enum" style="display: none; ">enumerated</span> 536 <span id="typeTemplate"> 537 <span style="display: none; "> 538 <a> Type</a> 539 </span> 540 <span> 541 <span style="display: none; "> 542 array of <span><span></span></span> 543 </span> 544 <span>string</span> 545 <span style="display: none; "></span> 546 </span> 547 </span> 548 ) 549 </div> 550 551 </em> 552 </dt> 553 <dd class="todo" style="display: none; "> 554 Undocumented. 555 </dd> 556 <dd>The html file that contains the infobar.</dd> 557 <dd style="display: none; "> 558 This parameter was added in version 559 <b><span></span></b>. 560 You must omit this parameter in earlier versions, 561 and you may omit it in any version. If you require this 562 parameter, the manifest key 563 <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> 564 can ensure that your extension won't be run in an earlier browser version. 565 </dd> 566 567 <!-- OBJECT PROPERTIES --> 568 <dd style="display: none; "> 569 <dl> 570 <div> 571 <div> 572 </div> 573 </div> 574 </dl> 575 </dd> 576 577 <!-- OBJECT METHODS --> 578 <dd style="display: none; "> 579 <div></div> 580 </dd> 581 582 <!-- OBJECT EVENT FIELDS --> 583 <dd style="display: none; "> 584 <div></div> 585 </dd> 586 587 <!-- FUNCTION PARAMETERS --> 588 <dd style="display: none; "> 589 <div></div> 590 </dd> 591 592 </div> 593 </div> 594 </dl> 595 </dd> 596 597 <!-- OBJECT METHODS --> 598 <dd style="display: none; "> 599 <div></div> 600 </dd> 601 602 <!-- OBJECT EVENT FIELDS --> 603 <dd style="display: none; "> 604 <div></div> 605 </dd> 606 607 <!-- FUNCTION PARAMETERS --> 608 <dd style="display: none; "> 609 <div></div> 610 </dd> 611 612 </div> 613 </div><div> 614 <div> 615 <dt> 616 <var>callback</var> 617 <em> 618 619 <!-- TYPE --> 620 <div style="display:inline"> 621 ( 622 <span class="optional">optional</span> 623 <span class="enum" style="display: none; ">enumerated</span> 624 <span id="typeTemplate"> 625 <span style="display: none; "> 626 <a> Type</a> 627 </span> 628 <span> 629 <span style="display: none; "> 630 array of <span><span></span></span> 631 </span> 632 <span>function</span> 633 <span style="display: none; "></span> 634 </span> 635 </span> 636 ) 637 </div> 638 639 </em> 640 </dt> 641 <dd class="todo"> 642 Undocumented. 643 </dd> 644 <dd style="display: none; "> 645 Description of this parameter from the json schema. 646 </dd> 647 <dd style="display: none; "> 648 This parameter was added in version 649 <b><span></span></b>. 650 You must omit this parameter in earlier versions, 651 and you may omit it in any version. If you require this 652 parameter, the manifest key 653 <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> 654 can ensure that your extension won't be run in an earlier browser version. 655 </dd> 656 657 <!-- OBJECT PROPERTIES --> 658 <dd style="display: none; "> 659 <dl> 660 <div> 661 <div> 662 </div> 663 </div> 664 </dl> 665 </dd> 666 667 <!-- OBJECT METHODS --> 668 <dd style="display: none; "> 669 <div></div> 670 </dd> 671 672 <!-- OBJECT EVENT FIELDS --> 673 <dd style="display: none; "> 674 <div></div> 675 </dd> 676 677 <!-- FUNCTION PARAMETERS --> 678 <dd style="display: none; "> 679 <div></div> 680 </dd> 681 682 </div> 683 </div> 684 </dl> 685 686 <!-- RETURNS --> 687 <h4 style="display: none; ">Returns</h4> 688 <dl> 689 <div style="display: none; "> 690 <div> 691 </div> 692 </div> 693 </dl> 694 695 <!-- CALLBACK --> 696 <div> 697 <div> 698 <h4>Callback function</h4> 699 <p style="display: none; "> 700 The callback <em>parameter</em> should specify a function 701 that looks like this: 702 </p> 703 <p> 704 If you specify the <em>callback</em> parameter, it should 705 specify a function that looks like this: 706 </p> 707 708 <!-- Note: intentionally longer 80 columns --> 709 <pre>function(<span>Window window</span>) <span class="subdued">{...}</span>;</pre> 710 <dl> 711 <div> 712 <div> 713 <dt> 714 <var>window</var> 715 <em> 716 717 <!-- TYPE --> 718 <div style="display:inline"> 719 ( 720 <span class="optional" style="display: none; ">optional</span> 721 <span class="enum" style="display: none; ">enumerated</span> 722 <span id="typeTemplate"> 723 <span> 724 <a href="windows.html#type-Window">Window</a> 725 </span> 726 <span style="display: none; "> 727 <span> 728 array of <span><span></span></span> 729 </span> 730 <span>paramType</span> 731 <span></span> 732 </span> 733 </span> 734 ) 735 </div> 736 737 </em> 738 </dt> 739 <dd class="todo" style="display: none; "> 740 Undocumented. 741 </dd> 742 <dd>Contains details about the window in which the infobar was created.</dd> 743 <dd style="display: none; "> 744 This parameter was added in version 745 <b><span></span></b>. 746 You must omit this parameter in earlier versions, 747 and you may omit it in any version. If you require this 748 parameter, the manifest key 749 <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> 750 can ensure that your extension won't be run in an earlier browser version. 751 </dd> 752 753 <!-- OBJECT PROPERTIES --> 754 <dd style="display: none; "> 755 <dl> 756 <div> 757 <div> 758 </div> 759 </div> 760 </dl> 761 </dd> 762 763 <!-- OBJECT METHODS --> 764 <dd style="display: none; "> 765 <div></div> 766 </dd> 767 768 <!-- OBJECT EVENT FIELDS --> 769 <dd style="display: none; "> 770 <div></div> 771 </dd> 772 773 <!-- FUNCTION PARAMETERS --> 774 <dd style="display: none; "> 775 <div></div> 776 </dd> 777 778 </div> 779 </div> 780 </dl> 781 </div> 782 </div> 783 784 <!-- MIN_VERSION --> 785 <p style="display: none; "> 786 This function was added in version <b><span></span></b>. 787 If you require this function, the manifest key 788 <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> 789 can ensure that your extension won't be run in an earlier browser version. 790 </p> 791 </div> <!-- /description --> 792 793 </div> <!-- /apiItem --> 794 795 </div> <!-- /apiGroup --> 796 797 <!-- EVENTS --> 798 <div id="eventsTemplate" class="apiGroup" style="display: none; "> 799 <a></a> 800 <h3>Events</h3> 801 <!-- iterates over all events --> 802 <div class="apiItem"> 803 <a></a> 804 <h4>event name</h4> 805 806 <div class="summary"> 807 <!-- Note: intentionally longer 80 columns --> 808 <span class="subdued">chrome.bookmarks</span><span>onEvent</span><span class="subdued">.addListener</span>(function(<span>Type param1, Type param2</span>) <span class="subdued">{...}</span>); 809 </div> 810 811 <div class="description"> 812 <p class="todo">Undocumented.</p> 813 <p> 814 A description from the json schema def of the event goes here. 815 </p> 816 817 <!-- PARAMETERS --> 818 <div> 819 <h4>Parameters</h4> 820 <dl> 821 <div> 822 <div> 823 </div> 824 </div> 825 </dl> 826 </div> 827 </div> <!-- /decription --> 828 829 </div> <!-- /apiItem --> 830 831 </div> <!-- /apiGroup --> 832 833 <!-- TYPES --> 834 <div class="apiGroup" style="display: none; "> 835 <a name="types"></a> 836 <h3 id="types">Types</h3> 837 838 <!-- iterates over all types --> 839 <div class="apiItem"> 840 <a></a> 841 <h4>type name</h4> 842 843 <div> 844 </div> 845 846 </div> <!-- /apiItem --> 847 848 </div> <!-- /apiGroup --> 849 850 </div> <!-- /apiPage --> 851 </div> <!-- /gc-pagecontent --> 852 </div> <!-- /g-section --> 853 </div> <!-- /codesiteContent --> 854 <div id="gc-footer" --=""> 855 <div class="text"> 856 <p> 857 Except as otherwise <a href="http://code.google.com/policies.html#restrictions">noted</a>, 858 the content of this page is licensed under the <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons 859 Attribution 3.0 License</a>, and code samples are licensed under the 860 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD License</a>. 861 </p> 862 <p> 863 2011 Google 864 </p> 865 866 <!-- begin analytics --> 867 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script> 868 <script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script> 869 870 <script type="text/javascript"> 871 // chrome doc tracking 872 try { 873 var engdocs = _gat._getTracker("YT-10763712-2"); 874 engdocs._trackPageview(); 875 } catch(err) {} 876 877 // code.google.com site-wide tracking 878 try { 879 _uacct="UA-18071-1"; 880 _uanchor=1; 881 _uff=0; 882 urchinTracker(); 883 } 884 catch(e) {/* urchinTracker not available. */} 885 </script> 886 <!-- end analytics --> 887 </div> 888 </div> <!-- /gc-footer --> 889 </div> <!-- /gc-container --> 890 </body></html> 891