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": "runtime", | 7 "namespace": "runtime", |
| 8 "description": "Use the <code>chrome.runtime</code> module to retrieve the b
ackground page, return details about the manifest, and listen for and respond to
events in the app or extension lifecycle. You can also use this API to convert
the relative path of URLs to fully-qualified URLs.", |
| 9 "documentation_permissions_required": ["runtime"], |
8 "types": [ | 10 "types": [ |
9 { | 11 { |
10 "id": "Port", | 12 "id": "Port", |
11 "type": "object", | 13 "type": "object", |
12 "nocompile": true, | 14 "nocompile": true, |
13 "description": "An object which allows two way communication with other
pages.", | 15 "description": "An object which allows two way communication with other
pages.", |
14 "properties": { | 16 "properties": { |
15 "name": {"type": "string"}, | 17 "name": {"type": "string"}, |
16 "disconnect": { "type": "function" }, | 18 "disconnect": { "type": "function" }, |
17 "onDisconnect": { "$ref": "events.Event" }, | 19 "onDisconnect": { "$ref": "events.Event" }, |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 "optional": "true", | 428 "optional": "true", |
427 "description": "Return true from the event listener if you wish to cal
l <code>sendResponse</code> after the event listener returns." | 429 "description": "Return true from the event listener if you wish to cal
l <code>sendResponse</code> after the event listener returns." |
428 } | 430 } |
429 } | 431 } |
430 | 432 |
431 | 433 |
432 | 434 |
433 ] | 435 ] |
434 } | 436 } |
435 ] | 437 ] |
OLD | NEW |