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 "description": "The <code>chrome.extension</code> module has utilities that
can be used by any extension page. It includes support for exchanging messages b
etween an extension and its content scripts or between extensions.", |
8 "compiler_options": { | 9 "compiler_options": { |
9 "implemented_in": "chrome/browser/extensions/api/module/module.h" | 10 "implemented_in": "chrome/browser/extensions/api/module/module.h" |
10 }, | 11 }, |
11 "dependencies": [ "events", "tabs" ], | 12 "dependencies": [ "events", "tabs" ], |
12 "types": [ | 13 "types": [ |
13 { | 14 { |
14 "id": "MessageSender", | 15 "id": "MessageSender", |
15 "type": "object", | 16 "type": "object", |
16 "description": "An object containing information about the script contex
t that sent a message or request.", | 17 "description": "An object containing information about the script contex
t that sent a message or request.", |
17 "properties": { | 18 "properties": { |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 "description": "Deprecated: please use onMessageExternal.", | 208 "description": "Deprecated: please use onMessageExternal.", |
208 "parameters": [ | 209 "parameters": [ |
209 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, | 210 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, |
210 {"name": "sender", "$ref": "MessageSender" }, | 211 {"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." } | 212 {"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 ] | 213 ] |
213 } | 214 } |
214 ] | 215 ] |
215 } | 216 } |
216 ] | 217 ] |
OLD | NEW |