| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "runtime", | 7 "namespace": "runtime", |
| 8 "documentation_permissions_required": ["runtime"], | 8 "documentation_permissions_required": ["runtime"], |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 "description": "This property will <b>only</b> be present on ports p
assed to onConnect/onConnectExternal listeners." | 23 "description": "This property will <b>only</b> be present on ports p
assed to onConnect/onConnectExternal listeners." |
| 24 } | 24 } |
| 25 }, | 25 }, |
| 26 "additionalProperties": { "type": "any"} | 26 "additionalProperties": { "type": "any"} |
| 27 }, | 27 }, |
| 28 { | 28 { |
| 29 "id": "MessageSender", | 29 "id": "MessageSender", |
| 30 "type": "object", | 30 "type": "object", |
| 31 "description": "An object containing information about the script contex
t that sent a message or request.", | 31 "description": "An object containing information about the script contex
t that sent a message or request.", |
| 32 "properties": { | 32 "properties": { |
| 33 "tab": {"$ref": "tabs.Tab", "optional": true, "description":"This prop
erty will <b>only</b> be present when the connection was opened from a tab or co
ntent script."}, | 33 "tab": {"$ref": "tabs.Tab", "optional": true, "description": "The $ref
:tabs.Tab which opened the connection, if any. This property will <strong>only</
strong> be present when the connection was opened from a tab (including content
scripts), and <strong>only</strong> if the receiver is an extension, not an app.
"}, |
| 34 "id": {"type": "string", "description": "The ID of the extension/app t
hat opened the connection."} | 34 "id": {"type": "string", "description": "The ID of the extension or ap
p that opened the connection."}, |
| 35 "url": {"type": "string", "optional": true, "description": "The URL of
the page or frame that opened the connection. This property will <strong>only</
strong> be present when the connection was opened from a tab (including content
scripts)."} |
| 35 } | 36 } |
| 36 } | 37 } |
| 37 ], | 38 ], |
| 38 "properties": { | 39 "properties": { |
| 39 "lastError": { | 40 "lastError": { |
| 40 "type": "object", | 41 "type": "object", |
| 41 "optional": true, | 42 "optional": true, |
| 42 "description": "This will be defined during an API method callback if th
ere was an error", | 43 "description": "This will be defined during an API method callback if th
ere was an error", |
| 43 "unprivileged": true, | 44 "unprivileged": true, |
| 44 "properties": { | 45 "properties": { |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 "optional": "true", | 363 "optional": "true", |
| 363 "description": "Return true from the event listener if you wish to cal
l <code>sendResponse</code> after the event listener returns." | 364 "description": "Return true from the event listener if you wish to cal
l <code>sendResponse</code> after the event listener returns." |
| 364 } | 365 } |
| 365 } | 366 } |
| 366 | 367 |
| 367 | 368 |
| 368 | 369 |
| 369 ] | 370 ] |
| 370 } | 371 } |
| 371 ] | 372 ] |
| OLD | NEW |