| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "extension", | 3 "namespace": "extension", |
| 4 "types": [ | 4 "types": [ |
| 5 { | 5 { |
| 6 "id": "MessageSender", |
| 7 "type": "object", |
| 8 "description": "An object containing information about the script contex
t that sent a message or request.", |
| 9 "properties": { |
| 10 "tab": {"$ref": "Tab", "optional": true, "description":"This property
will <b>only</b> be present when the connection was opened from a tab or content
script."}, |
| 11 "id": {"type": "string", "description": "The extension ID of the exten
sion that opened the connection."} |
| 12 } |
| 13 }, |
| 14 { |
| 6 "id": "Port", | 15 "id": "Port", |
| 7 "type": "object", | 16 "type": "object", |
| 8 "description": "An object which allows two way communication with other
pages.", | 17 "description": "An object which allows two way communication with other
pages.", |
| 9 "properties": { | 18 "properties": { |
| 10 "name": {"type": "string"}, | 19 "name": {"type": "string"}, |
| 11 "onDisconnect": {"type": "object"}, | 20 "onDisconnect": {"type": "object"}, |
| 12 "onMessage": {"type": "object"}, | 21 "onMessage": {"type": "object"}, |
| 13 "postMessage": {"type": "function"}, | 22 "postMessage": {"type": "function"}, |
| 14 "sender": { | 23 "sender": { |
| 15 "type": "object", | 24 "$ref": "MessageSender", |
| 16 "optional": true, | 25 "optional": true, |
| 17 "description": "This property will <b>only</b> be present on ports p
assed to onConnect/onConnectExternal listeners.", | 26 "description": "This property will <b>only</b> be present on ports p
assed to onConnect/onConnectExternal listeners." |
| 18 "properties": { | |
| 19 "tab": {"$ref": "Tab", "optional": true, "description":"This prope
rty will <b>only</b> be present when the connection was opened from a tab or con
tent script."}, | |
| 20 "id": {"type": "string", "description": "The extension ID of the e
xtension that opened the connection."} | |
| 21 } | |
| 22 } | 27 } |
| 23 } | 28 } |
| 24 } | 29 } |
| 25 ], | 30 ], |
| 26 "properties": { | 31 "properties": { |
| 27 "lastError": { | 32 "lastError": { |
| 28 "type": "object", | 33 "type": "object", |
| 29 "optional": true, | 34 "optional": true, |
| 30 "description": "Set for the lifetime of a callback if an ansychronous ex
tension api has resulted in an error. If no error has occured lastError will be
<var>undefined</var>.", | 35 "description": "Set for the lifetime of a callback if an ansychronous ex
tension api has resulted in an error. If no error has occured lastError will be
<var>undefined</var>.", |
| 31 "properties": { | 36 "properties": { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 "description": "Fired when a connection is made from another extension."
, | 151 "description": "Fired when a connection is made from another extension."
, |
| 147 "parameters": [ | 152 "parameters": [ |
| 148 {"$ref": "Port", "name": "port"} | 153 {"$ref": "Port", "name": "port"} |
| 149 ] | 154 ] |
| 150 }, | 155 }, |
| 151 { | 156 { |
| 152 "name": "onRequest", | 157 "name": "onRequest", |
| 153 "type": "function", | 158 "type": "function", |
| 154 "description": "Fired when a request is sent from either an extension pr
ocess or a content script.", | 159 "description": "Fired when a request is sent from either an extension pr
ocess or a content script.", |
| 155 "parameters": [ | 160 "parameters": [ |
| 156 { "type": "any", "name": "request" }, | 161 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, |
| 157 { "type": "function", "name": "sendResponse", "description": "Function
to call when you have a response. The argument should be any JSON-ifiable objec
t, or undefined if there is no response." } | 162 {"name": "sender", "$ref": "MessageSender" }, |
| 163 {"name": "sendResponse", "type": "function", "description": "Function
to call when you have a response. The argument should be any JSON-ifiable object
, or undefined if there is no response." } |
| 158 ] | 164 ] |
| 159 }, | 165 }, |
| 160 { | 166 { |
| 161 "name": "onRequestExternal", | 167 "name": "onRequestExternal", |
| 162 "type": "function", | 168 "type": "function", |
| 163 "description": "Fired when a request is sent from another extension.", | 169 "description": "Fired when a request is sent from another extension.", |
| 164 "parameters": [ | 170 "parameters": [ |
| 165 { "type": "any", "name": "request" }, | 171 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, |
| 166 { "type": "function", "name": "sendResponse", "description": "Function
to call when you have a response. The argument should be any JSON-ifiable objec
t, or undefined if there is no response." } | 172 {"name": "sender", "$ref": "MessageSender" }, |
| 173 {"name": "sendResponse", "type": "function", "description": "Function
to call when you have a response. The argument should be any JSON-ifiable object
, or undefined if there is no response." } |
| 167 ] | 174 ] |
| 168 } | 175 } |
| 169 ] | 176 ] |
| 170 }, | 177 }, |
| 171 { | 178 { |
| 172 "namespace": "windows", | 179 "namespace": "windows", |
| 173 "types": [ | 180 "types": [ |
| 174 { | 181 { |
| 175 "id": "Window", | 182 "id": "Window", |
| 176 "type": "object", | 183 "type": "object", |
| (...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1470 "type": "function", | 1477 "type": "function", |
| 1471 "description": "Logs a message during internal unit testing.", | 1478 "description": "Logs a message during internal unit testing.", |
| 1472 "parameters": [ | 1479 "parameters": [ |
| 1473 {"type": "string", "name": "message"} | 1480 {"type": "string", "name": "message"} |
| 1474 ] | 1481 ] |
| 1475 } | 1482 } |
| 1476 ], | 1483 ], |
| 1477 "events": [] | 1484 "events": [] |
| 1478 } | 1485 } |
| 1479 ] | 1486 ] |
| OLD | NEW |