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> API has utilities that can
be used by any extension page. It includes support for exchanging messages betw
een an extension and its content scripts or between extensions, as described in
detail in <a href='messaging'>Message Passing</a>.", | 8 "description": "The <code>chrome.extension</code> API has utilities that can
be used by any extension page. It includes support for exchanging messages betw
een an extension and its content scripts or between extensions, as described in
detail in <a href='messaging'>Message Passing</a>.", |
9 "compiler_options": { | 9 "compiler_options": { |
10 "implemented_in": "chrome/browser/extensions/api/module/module.h" | 10 "implemented_in": "chrome/browser/extensions/api/module/module.h" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 "parameters": [ | 196 "parameters": [ |
197 {"name": "request", "type": "any", "optional": true, "description": "T
he request sent by the calling script."}, | 197 {"name": "request", "type": "any", "optional": true, "description": "T
he request sent by the calling script."}, |
198 {"name": "sender", "$ref": "runtime.MessageSender" }, | 198 {"name": "sender", "$ref": "runtime.MessageSender" }, |
199 {"name": "sendResponse", "type": "function", "description": "Function
to call (at most once) when you have a response. The argument should be any JSON
-ifiable object, or undefined if there is no response. If you have more than one
<code>onRequest</code> listener in the same document, then only one may send a
response." } | 199 {"name": "sendResponse", "type": "function", "description": "Function
to call (at most once) when you have a response. The argument should be any JSON
-ifiable object, or undefined if there is no response. If you have more than one
<code>onRequest</code> listener in the same document, then only one may send a
response." } |
200 ] | 200 ] |
201 }, | 201 }, |
202 { | 202 { |
203 "name": "onRequestExternal", | 203 "name": "onRequestExternal", |
204 "deprecated": "Please use $(ref:runtime.onMessageExternal).", | 204 "deprecated": "Please use $(ref:runtime.onMessageExternal).", |
205 "type": "function", | 205 "type": "function", |
206 "options": { | |
207 "unmanaged": true | |
208 }, | |
209 "description": "Fired when a request is sent from another extension.", | 206 "description": "Fired when a request is sent from another extension.", |
210 "parameters": [ | 207 "parameters": [ |
211 {"name": "request", "type": "any", "optional": true, "description": "T
he request sent by the calling script."}, | 208 {"name": "request", "type": "any", "optional": true, "description": "T
he request sent by the calling script."}, |
212 {"name": "sender", "$ref": "runtime.MessageSender" }, | 209 {"name": "sender", "$ref": "runtime.MessageSender" }, |
213 {"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." } |
214 ] | 211 ] |
215 } | 212 } |
216 ] | 213 ] |
217 } | 214 } |
218 ] | 215 ] |
OLD | NEW |