OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Note: Many of these functions and events are implemented by hand and should | 5 // Note: Many of these functions and events are implemented by hand and should |
6 // not elicit any code generation from the schema compiler. These items are | 6 // not elicit any code generation from the schema compiler. These items are |
7 // marked "nocompile." | 7 // marked "nocompile." |
8 [ | 8 [ |
9 { | 9 { |
10 "namespace": "runtime", | 10 "namespace": "runtime", |
11 "description": "Use the <code>chrome.runtime</code> API to retrieve the back
ground page, return details about the manifest, and listen for and respond to ev
ents in the app or extension lifecycle. You can also use this API to convert the
relative path of URLs to fully-qualified URLs.", | 11 "description": "Use the <code>chrome.runtime</code> API to retrieve the back
ground page, return details about the manifest, and listen for and respond to ev
ents in the app or extension lifecycle. You can also use this API to convert the
relative path of URLs to fully-qualified URLs.", |
| 12 "compiler_options": {"use_movable_types": true}, |
12 "types": [ | 13 "types": [ |
13 { | 14 { |
14 "id": "Port", | 15 "id": "Port", |
15 "type": "object", | 16 "type": "object", |
16 "nocompile": true, | 17 "nocompile": true, |
17 "description": "An object which allows two way communication with other
pages.", | 18 "description": "An object which allows two way communication with other
pages.", |
18 "properties": { | 19 "properties": { |
19 "name": {"type": "string"}, | 20 "name": {"type": "string"}, |
20 "disconnect": { "type": "function" }, | 21 "disconnect": { "type": "function" }, |
21 "onDisconnect": { "$ref": "events.Event" }, | 22 "onDisconnect": { "$ref": "events.Event" }, |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 { | 525 { |
525 "$ref": "OnRestartRequiredReason", | 526 "$ref": "OnRestartRequiredReason", |
526 "name": "reason", | 527 "name": "reason", |
527 "description": "The reason that the event is being dispatched." | 528 "description": "The reason that the event is being dispatched." |
528 } | 529 } |
529 ] | 530 ] |
530 } | 531 } |
531 ] | 532 ] |
532 } | 533 } |
533 ] | 534 ] |
OLD | NEW |