| 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 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 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."}, | 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 "id": {"type": "string", "optional": true, "description": "The ID of t
he extension or app that opened the connection, if any."}, | 39 "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 any. This property will <stron
g>only</strong> be present when the connection was opened from a tab or content
script."}, | 40 "url": {"type": "string", "optional": true, "description": "The URL of
the page or frame that opened the connection, if any. This property will <stron
g>only</strong> be present when the connection was opened from a tab or content
script."}, |
| 41 "tlsChannelId": {"type": "string", "optional": true, "description": "T
he TLS channel ID of the web page that opened the connection, if requested by th
e extension or app, and if available."} | 41 "tlsChannelId": {"type": "string", "optional": true, "description": "T
he TLS channel ID of the web page that opened the connection, if requested by th
e extension or app, and if available."} |
| 42 } | 42 } |
| 43 }, | 43 }, |
| 44 { | 44 { |
| 45 "id": "PlatformInfo", | 45 "id": "PlatformInfo", |
| 46 "type": "object", | 46 "type": "object", |
| 47 "description": "An object containing information about the current platf
orm.", | 47 "description": "An object containing information about the current platf
orm.", |
| 48 "properties": { | 48 "properties": { |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 "type": "string", | 478 "type": "string", |
| 479 "name": "reason", | 479 "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.", | 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 "enum": ["app_update", "os_update", "periodic"] | 481 "enum": ["app_update", "os_update", "periodic"] |
| 482 } | 482 } |
| 483 ] | 483 ] |
| 484 } | 484 } |
| 485 ] | 485 ] |
| 486 } | 486 } |
| 487 ] | 487 ] |
| OLD | NEW |