OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "tabs", | 3 "namespace": "tabs", |
4 "types": [ | 4 "types": [ |
5 { | 5 { |
6 "id": "Tab", | 6 "id": "Tab", |
7 "type": "object", | 7 "type": "object", |
8 "properties": { | 8 "properties": { |
9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
tab. Tab IDs are unique within a browser session."}, | 9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
tab. Tab IDs are unique within a browser session."}, |
10 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba
sed index of the tab within its window."}, | 10 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba
sed index of the tab within its window."}, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 "optional": true | 56 "optional": true |
57 } | 57 } |
58 ] | 58 ] |
59 } | 59 } |
60 ] | 60 ] |
61 }, | 61 }, |
62 { | 62 { |
63 "name": "connect", | 63 "name": "connect", |
64 "nocompile": true, | 64 "nocompile": true, |
65 "type": "function", | 65 "type": "function", |
66 "description": "Connects to the content script(s) in the specified tab.
The <a href='extension.html#event-onConnect'>chrome.extension.onConnect</a> even
t is fired in each content script running in the specified tab for the current e
xtension. For more details, see <a href='content_scripts.html#messaging'>Content
Script Messaging</a>.", | 66 "description": "Connects to the content script(s) in the specified tab.
The <a href='extension.html#event-onConnect'>chrome.runtime.onConnect</a> event
is fired in each content script running in the specified tab for the current ext
ension. For more details, see <a href='content_scripts.html#messaging'>Content S
cript Messaging</a>.", |
67 "parameters": [ | 67 "parameters": [ |
68 { | 68 { |
69 "type": "integer", | 69 "type": "integer", |
70 "name": "tabId", | 70 "name": "tabId", |
71 "minimum": 0 | 71 "minimum": 0 |
72 }, | 72 }, |
73 { | 73 { |
74 "type": "object", | 74 "type": "object", |
75 "name": "connectInfo", | 75 "name": "connectInfo", |
76 "properties": { | 76 "properties": { |
(...skipping 23 matching lines...) Expand all Loading... |
100 "name": "request" | 100 "name": "request" |
101 }, | 101 }, |
102 { | 102 { |
103 "type": "function", | 103 "type": "function", |
104 "name": "responseCallback", | 104 "name": "responseCallback", |
105 "optional": true, | 105 "optional": true, |
106 "parameters": [ | 106 "parameters": [ |
107 { | 107 { |
108 "name": "response", | 108 "name": "response", |
109 "type": "any", | 109 "type": "any", |
110 "description": "The JSON response object sent by the handler of
the request. If an error occurs while connecting to the specified tab, the callb
ack will be called with no arguments and <a href='extension.html#property-lastEr
ror'>chrome.extension.lastError</a> will be set to the error message." | 110 "description": "The JSON response object sent by the handler of
the request. If an error occurs while connecting to the specified tab, the callb
ack will be called with no arguments and <a href='extension.html#property-lastEr
ror'>chrome.runtime.lastError</a> will be set to the error message." |
111 } | 111 } |
112 ] | 112 ] |
113 } | 113 } |
114 ] | 114 ] |
115 }, | 115 }, |
116 { | 116 { |
117 "name": "getSelected", | 117 "name": "getSelected", |
118 "nodoc": true, | 118 "nodoc": true, |
119 "type": "function", | 119 "type": "function", |
120 "description": "Deprecated. Please use query({'active': true}). Gets the
tab that is selected in the specified window.", | 120 "description": "Deprecated. Please use query({'active': true}). Gets the
tab that is selected in the specified window.", |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 "name": "removeInfo", | 760 "name": "removeInfo", |
761 "properties": { | 761 "properties": { |
762 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } | 762 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } |
763 } | 763 } |
764 } | 764 } |
765 ] | 765 ] |
766 } | 766 } |
767 ] | 767 ] |
768 } | 768 } |
769 ] | 769 ] |
OLD | NEW |