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 "nocompile": true, | 8 "nocompile": true, |
9 "dependencies": [ "events", "tabs" ], | 9 "dependencies": [ "events", "tabs" ], |
10 "types": [ | 10 "types": [ |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 } | 230 } |
231 ] | 231 ] |
232 }, | 232 }, |
233 { | 233 { |
234 "name": "setUpdateUrlData", | 234 "name": "setUpdateUrlData", |
235 "type": "function", | 235 "type": "function", |
236 "description": "Sets the value of the ap CGI parameter used in the exten
sion's update URL. This value is ignored for extensions that are hosted in the
Chrome Extension Gallery.", | 236 "description": "Sets the value of the ap CGI parameter used in the exten
sion's update URL. This value is ignored for extensions that are hosted in the
Chrome Extension Gallery.", |
237 "parameters": [ | 237 "parameters": [ |
238 {"type": "string", "name": "data", "maxLength": 1024} | 238 {"type": "string", "name": "data", "maxLength": 1024} |
239 ] | 239 ] |
| 240 }, |
| 241 { |
| 242 "name": "sendNativeMessage", |
| 243 "type": "function", |
| 244 "description": "Send a single message to a registered native application
.", |
| 245 "parameters": [ |
| 246 { |
| 247 "name": "registeredNativeApp", |
| 248 "description": "The name of the registered native app.", |
| 249 "type": "string" |
| 250 }, |
| 251 { |
| 252 "name": "data", |
| 253 "description": "The object that will be passed to the registered nat
ive app.", |
| 254 "type": "object", |
| 255 "additionalProperties": { |
| 256 "type": "any" |
| 257 } |
| 258 }, |
| 259 { |
| 260 "type": "function", |
| 261 "name": "callback", |
| 262 "optional": true, |
| 263 "description": "Called with the response from the native app.", |
| 264 "parameters": [ |
| 265 { |
| 266 "name": "nativeResponse", |
| 267 "type": "object", |
| 268 "description": "Whatever the native app responds with.", |
| 269 "additionalProperties": { |
| 270 "type": "any" |
| 271 } |
| 272 } |
| 273 ] |
| 274 } |
| 275 ] |
240 } | 276 } |
241 ], | 277 ], |
242 "events": [ | 278 "events": [ |
243 { | 279 { |
244 "name": "onConnect", | 280 "name": "onConnect", |
245 "type": "function", | 281 "type": "function", |
246 "unprivileged": true, | 282 "unprivileged": true, |
247 "anonymous": true, | 283 "anonymous": true, |
248 "description": "Fired when a connection is made from either an extension
process or a content script.", | 284 "description": "Fired when a connection is made from either an extension
process or a content script.", |
249 "parameters": [ | 285 "parameters": [ |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 ], | 349 ], |
314 "returns": { | 350 "returns": { |
315 "type": "boolean", | 351 "type": "boolean", |
316 "optional": "true", | 352 "optional": "true", |
317 "description": "Return true from the event listener if you wish to cal
l <code>sendResponse</code> after the event listener returns." | 353 "description": "Return true from the event listener if you wish to cal
l <code>sendResponse</code> after the event listener returns." |
318 } | 354 } |
319 } | 355 } |
320 ] | 356 ] |
321 } | 357 } |
322 ] | 358 ] |
OLD | NEW |