OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "extension", | 3 "namespace": "extension", |
| 4 "nocompile": true, |
4 "dependencies": [ "tabs" ], | 5 "dependencies": [ "tabs" ], |
5 "types": [ | 6 "types": [ |
6 { | 7 { |
7 "id": "MessageSender", | 8 "id": "MessageSender", |
8 "type": "object", | 9 "type": "object", |
9 "description": "An object containing information about the script contex
t that sent a message or request.", | 10 "description": "An object containing information about the script contex
t that sent a message or request.", |
10 "properties": { | 11 "properties": { |
11 "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."}, | 12 "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."}, |
12 "id": {"type": "string", "description": "The extension ID of the exten
sion that opened the connection."} | 13 "id": {"type": "string", "description": "The extension ID of the exten
sion that opened the connection."} |
13 } | 14 } |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 "description": "Fired when a request is sent from another extension.", | 261 "description": "Fired when a request is sent from another extension.", |
261 "parameters": [ | 262 "parameters": [ |
262 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, | 263 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, |
263 {"name": "sender", "$ref": "MessageSender" }, | 264 {"name": "sender", "$ref": "MessageSender" }, |
264 {"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." } | 265 {"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." } |
265 ] | 266 ] |
266 } | 267 } |
267 ] | 268 ] |
268 } | 269 } |
269 ] | 270 ] |
OLD | NEW |