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", |
(...skipping 18 matching lines...) Expand all Loading... |
29 }, | 29 }, |
30 "additionalProperties": { "type": "any"} | 30 "additionalProperties": { "type": "any"} |
31 }, | 31 }, |
32 { | 32 { |
33 "id": "MessageSender", | 33 "id": "MessageSender", |
34 "type": "object", | 34 "type": "object", |
35 "nocompile": true, | 35 "nocompile": true, |
36 "description": "An object containing information about the script contex
t that sent a message or request.", | 36 "description": "An object containing information about the script contex
t that sent a message or request.", |
37 "properties": { | 37 "properties": { |
38 "tab": {"$ref": "tabs.Tab", "optional": true, "description": "The $(re
f:tabs.Tab) which opened the connection, if any. This property will <strong>only
</strong> be present when the connection was opened from a tab (including conten
t scripts), and <strong>only</strong> if the receiver is an extension, not an ap
p.", "extension_types": ["extension", "legacy_packaged_app"]}, | 38 "tab": {"$ref": "tabs.Tab", "optional": true, "description": "The $(re
f:tabs.Tab) which opened the connection, if any. This property will <strong>only
</strong> be present when the connection was opened from a tab (including conten
t scripts), and <strong>only</strong> if the receiver is an extension, not an ap
p.", "extension_types": ["extension", "legacy_packaged_app"]}, |
| 39 "frameId": {"type": "integer", "optional": true, "description": "The <
a href='webNavigation#frame_ids'>frame</a> that opened the connection. 0 for top
-level frames, positive for child frames. This will only be set when <code>tab</
code> is set.", "extension_types": ["extension", "legacy_packaged_app"]}, |
39 "id": {"type": "string", "optional": true, "description": "The ID of t
he extension or app that opened the connection, if any."}, | 40 "id": {"type": "string", "optional": true, "description": "The ID of t
he extension or app that opened the connection, if any."}, |
40 "url": {"type": "string", "optional": true, "description": "The URL of
the page or frame that opened the connection. If the sender is in an iframe, it
will be iframe's URL not the URL of the page which hosts it."}, | 41 "url": {"type": "string", "optional": true, "description": "The URL of
the page or frame that opened the connection. If the sender is in an iframe, it
will be iframe's URL not the URL of the page which hosts it."}, |
41 "tlsChannelId": {"type": "string", "optional": true, "description": "T
he TLS channel ID of the page or frame that opened the connection, if requested
by the extension or app, and if available."} | 42 "tlsChannelId": {"type": "string", "optional": true, "description": "T
he TLS channel ID of the page or frame that opened the connection, if requested
by the extension or app, and if available."} |
42 } | 43 } |
43 }, | 44 }, |
44 { | 45 { |
45 "id": "PlatformInfo", | 46 "id": "PlatformInfo", |
46 "type": "object", | 47 "type": "object", |
47 "description": "An object containing information about the current platf
orm.", | 48 "description": "An object containing information about the current platf
orm.", |
48 "properties": { | 49 "properties": { |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 "type": "string", | 479 "type": "string", |
479 "name": "reason", | 480 "name": "reason", |
480 "description": "The reason that the event is being dispatched. 'app_
update' is used when the restart is needed because the application is updated to
a newer version. 'os_update' is used when the restart is needed because the bro
wser/OS is updated to a newer version. 'periodic' is used when the system runs f
or more than the permitted uptime set in the enterprise policy.", | 481 "description": "The reason that the event is being dispatched. 'app_
update' is used when the restart is needed because the application is updated to
a newer version. 'os_update' is used when the restart is needed because the bro
wser/OS is updated to a newer version. 'periodic' is used when the system runs f
or more than the permitted uptime set in the enterprise policy.", |
481 "enum": ["app_update", "os_update", "periodic"] | 482 "enum": ["app_update", "os_update", "periodic"] |
482 } | 483 } |
483 ] | 484 ] |
484 } | 485 } |
485 ] | 486 ] |
486 } | 487 } |
487 ] | 488 ] |
OLD | NEW |