| 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": "extension", | 7 "namespace": "extension", |
| 8 "compiler_options": { | 8 "compiler_options": { |
| 9 "implemented_in": "chrome/browser/extensions/api/module/module.h" | 9 "implemented_in": "chrome/browser/extensions/api/module/module.h" |
| 10 }, | 10 }, |
| 11 "dependencies": [ "events", "tabs" ], | |
| 12 "types": [ | 11 "types": [ |
| 13 { | 12 { |
| 14 "id": "MessageSender", | 13 "id": "MessageSender", |
| 15 "type": "object", | 14 "type": "object", |
| 16 "description": "An object containing information about the script contex
t that sent a message or request.", | 15 "description": "An object containing information about the script contex
t that sent a message or request.", |
| 17 "properties": { | 16 "properties": { |
| 18 "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."}, | 17 "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."}, |
| 19 "id": {"type": "string", "description": "The extension ID of the exten
sion that opened the connection."} | 18 "id": {"type": "string", "description": "The extension ID of the exten
sion that opened the connection."} |
| 20 } | 19 } |
| 21 } | 20 } |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 "description": "Deprecated: please use onMessageExternal.", | 206 "description": "Deprecated: please use onMessageExternal.", |
| 208 "parameters": [ | 207 "parameters": [ |
| 209 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, | 208 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, |
| 210 {"name": "sender", "$ref": "MessageSender" }, | 209 {"name": "sender", "$ref": "MessageSender" }, |
| 211 {"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." } | 210 {"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." } |
| 212 ] | 211 ] |
| 213 } | 212 } |
| 214 ] | 213 ] |
| 215 } | 214 } |
| 216 ] | 215 ] |
| OLD | NEW |