| 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> 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.", | 8 "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.", |
| 9 "documentation_permissions_required": ["runtime"], | |
| 10 "types": [ | 9 "types": [ |
| 11 { | 10 { |
| 12 "id": "Port", | 11 "id": "Port", |
| 13 "type": "object", | 12 "type": "object", |
| 14 "nocompile": true, | 13 "nocompile": true, |
| 15 "description": "An object which allows two way communication with other
pages.", | 14 "description": "An object which allows two way communication with other
pages.", |
| 16 "properties": { | 15 "properties": { |
| 17 "name": {"type": "string"}, | 16 "name": {"type": "string"}, |
| 18 "disconnect": { "type": "function" }, | 17 "disconnect": { "type": "function" }, |
| 19 "onDisconnect": { "$ref": "events.Event" }, | 18 "onDisconnect": { "$ref": "events.Event" }, |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 "type": "string", | 455 "type": "string", |
| 457 "name": "reason", | 456 "name": "reason", |
| 458 "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.", | 457 "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.", |
| 459 "enum": ["app_update", "os_update", "periodic"] | 458 "enum": ["app_update", "os_update", "periodic"] |
| 460 } | 459 } |
| 461 ] | 460 ] |
| 462 } | 461 } |
| 463 ] | 462 ] |
| 464 } | 463 } |
| 465 ] | 464 ] |
| OLD | NEW |