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.html'>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" |
11 }, | 11 }, |
12 "properties": { | 12 "properties": { |
13 "lastError": { | 13 "lastError": { |
14 "type": "object", | 14 "type": "object", |
15 "optional": true, | 15 "optional": true, |
16 "description": "Set for the lifetime of a callback if an ansychronous ex
tension api has resulted in an error. If no error has occured lastError will be
<var>undefined</var>.", | 16 "description": "Set for the lifetime of a callback if an ansychronous ex
tension api has resulted in an error. If no error has occured lastError will be
<var>undefined</var>.", |
17 "properties": { | 17 "properties": { |
18 "message": { "type": "string", "description": "Description of the erro
r that has taken place." } | 18 "message": { "type": "string", "description": "Description of the erro
r that has taken place." } |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 "description": "Fired when a request is sent from another extension.", | 209 "description": "Fired when a request is sent from another extension.", |
210 "parameters": [ | 210 "parameters": [ |
211 {"name": "request", "type": "any", "optional": true, "description": "T
he request sent by the calling script."}, | 211 {"name": "request", "type": "any", "optional": true, "description": "T
he request sent by the calling script."}, |
212 {"name": "sender", "$ref": "runtime.MessageSender" }, | 212 {"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." } | 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." } |
214 ] | 214 ] |
215 } | 215 } |
216 ] | 216 ] |
217 } | 217 } |
218 ] | 218 ] |
OLD | NEW |