OLD | NEW |
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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 </div> | 513 </div> |
514 </div> | 514 </div> |
515 </dl> | 515 </dl> |
516 </div> | 516 </div> |
517 </div> | 517 </div> |
518 <!-- MIN_VERSION --> | 518 <!-- MIN_VERSION --> |
519 </div> <!-- /description --> | 519 </div> <!-- /description --> |
520 </div><div class="apiItem"> | 520 </div><div class="apiItem"> |
521 <a name="method-connect"></a> <!-- method-anchor --> | 521 <a name="method-connect"></a> <!-- method-anchor --> |
522 <h4>connect</h4> | 522 <h4>connect</h4> |
523 <div class="summary"><span>Port</span> | 523 <div class="summary"><span>extension.Port</span> |
524 <!-- Note: intentionally longer 80 columns --> | 524 <!-- Note: intentionally longer 80 columns --> |
525 <span>chrome.tabs.connect</span>(<span class="null"><span>inte
ger</span> | 525 <span>chrome.tabs.connect</span>(<span class="null"><span>inte
ger</span> |
526 <var><span>tabId</span></var></span><span class="optional"
><span>, </span><span>object</span> | 526 <var><span>tabId</span></var></span><span class="optional"
><span>, </span><span>object</span> |
527 <var><span>connectInfo</span></var></span>)</div> | 527 <var><span>connectInfo</span></var></span>)</div> |
528 <div class="description"> | 528 <div class="description"> |
529 <p>Connects to the content script(s) in the specified tab. The <
a href="extension.html#event-onConnect">chrome.extension.onConnect</a> event is
fired in each content script running in the specified tab for the current extens
ion. For more details, see <a href="content_scripts.html#messaging">Content Scri
pt Messaging</a>.</p> | 529 <p>Connects to the content script(s) in the specified tab. The <
a href="extension.html#event-onConnect">chrome.extension.onConnect</a> event is
fired in each content script running in the specified tab for the current extens
ion. For more details, see <a href="content_scripts.html#messaging">Content Scri
pt Messaging</a>.</p> |
530 <!-- PARAMETERS --> | 530 <!-- PARAMETERS --> |
531 <h4>Parameters</h4> | 531 <h4>Parameters</h4> |
532 <dl> | 532 <dl> |
533 <div> | 533 <div> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 <dl> | 617 <dl> |
618 <div> | 618 <div> |
619 <div> | 619 <div> |
620 <dt> | 620 <dt> |
621 <em> | 621 <em> |
622 <!-- TYPE --> | 622 <!-- TYPE --> |
623 <div style="display:inline"> | 623 <div style="display:inline"> |
624 ( | 624 ( |
625 <span id="typeTemplate"> | 625 <span id="typeTemplate"> |
626 <span> | 626 <span> |
627 <a href="extension.html#type-Port">Port</a> | 627 <a>extension.Port</a> |
628 </span> | 628 </span> |
629 </span> | 629 </span> |
630 ) | 630 ) |
631 </div> | 631 </div> |
632 </em> | 632 </em> |
633 </dt> | 633 </dt> |
634 <dd>A port that can be used to communicate with the content scripts ru
nning in the specified tab. The port's <a href="extension.html#type-Port">onDisc
onnect</a> event is fired if the tab closes or does not exist. </dd> | 634 <dd>A port that can be used to communicate with the content scripts ru
nning in the specified tab. The port's <a href="extension.html#type-Port">onDisc
onnect</a> event is fired if the tab closes or does not exist. </dd> |
635 <!-- OBJECT PROPERTIES --> | 635 <!-- OBJECT PROPERTIES --> |
636 <!-- OBJECT METHODS --> | 636 <!-- OBJECT METHODS --> |
637 <!-- OBJECT EVENT FIELDS --> | 637 <!-- OBJECT EVENT FIELDS --> |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1532 </dl> | 1532 </dl> |
1533 <!-- CALLBACK --> | 1533 <!-- CALLBACK --> |
1534 <div> | 1534 <div> |
1535 <div> | 1535 <div> |
1536 <h4>Callback function</h4> | 1536 <h4>Callback function</h4> |
1537 <p> | 1537 <p> |
1538 The callback <em>parameter</em> should specify a function | 1538 The callback <em>parameter</em> should specify a function |
1539 that looks like this: | 1539 that looks like this: |
1540 </p> | 1540 </p> |
1541 <!-- Note: intentionally longer 80 columns --> | 1541 <!-- Note: intentionally longer 80 columns --> |
1542 <pre>function(<span>Window window</span>) <span class="subdued
">{...}</span>;</pre> | 1542 <pre>function(<span>windows.Window window</span>) <span class=
"subdued">{...}</span>;</pre> |
1543 <dl> | 1543 <dl> |
1544 <div> | 1544 <div> |
1545 <div> | 1545 <div> |
1546 <dt> | 1546 <dt> |
1547 <var>window</var> | 1547 <var>window</var> |
1548 <em> | 1548 <em> |
1549 <!-- TYPE --> | 1549 <!-- TYPE --> |
1550 <div style="display:inline"> | 1550 <div style="display:inline"> |
1551 ( | 1551 ( |
1552 <span id="typeTemplate"> | 1552 <span id="typeTemplate"> |
1553 <span> | 1553 <span> |
1554 <a href="windows.html#type-Window">Window</a> | 1554 <a>windows.Window</a> |
1555 </span> | 1555 </span> |
1556 </span> | 1556 </span> |
1557 ) | 1557 ) |
1558 </div> | 1558 </div> |
1559 </em> | 1559 </em> |
1560 </dt> | 1560 </dt> |
1561 <dd>Contains details about the window whose tabs were highlighted.</dd
> | 1561 <dd>Contains details about the window whose tabs were highlighted.</dd
> |
1562 <!-- OBJECT PROPERTIES --> | 1562 <!-- OBJECT PROPERTIES --> |
1563 <!-- OBJECT METHODS --> | 1563 <!-- OBJECT METHODS --> |
1564 <!-- OBJECT EVENT FIELDS --> | 1564 <!-- OBJECT EVENT FIELDS --> |
(...skipping 2718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4283 _uff=0; | 4283 _uff=0; |
4284 urchinTracker(); | 4284 urchinTracker(); |
4285 } | 4285 } |
4286 catch(e) {/* urchinTracker not available. */} | 4286 catch(e) {/* urchinTracker not available. */} |
4287 </script> | 4287 </script> |
4288 <!-- end analytics --> | 4288 <!-- end analytics --> |
4289 </div> | 4289 </div> |
4290 </div> <!-- /gc-footer --> | 4290 </div> <!-- /gc-footer --> |
4291 </div> <!-- /gc-container --> | 4291 </div> <!-- /gc-container --> |
4292 </body></html> | 4292 </body></html> |
OLD | NEW |