| Index: extensions/common/api/runtime.json
|
| diff --git a/extensions/common/api/runtime.json b/extensions/common/api/runtime.json
|
| index c36c6c74879cf842697679a63fe10fed255c36a1..21289be1833e1767cf7f70ff1ad00f0c4f55451c 100644
|
| --- a/extensions/common/api/runtime.json
|
| +++ b/extensions/common/api/runtime.json
|
| @@ -264,6 +264,35 @@
|
| "parameters": []
|
| },
|
| {
|
| + "name": "restartOnWatchdog",
|
| + "description": "Restart the ChromeOS device when the app runs in kiosk mode after the given seconds. If called again before the time ends, the reboot will be delayed. If called with a value of -1, the reboot will be cancelled. It's a no-op in non-kiosk mode",
|
| + "type": "function",
|
| + "parameters": [
|
| + {
|
| + "type": "integer",
|
| + "name": "seconds",
|
| + "description": "Time to wait in seconds before rebooting the device, or -1 to cancel a scheduled reboot."
|
| + },
|
| + {
|
| + "type": "function",
|
| + "name": "onWatchdogTimeoutCallback",
|
| + "optional": true,
|
| + "parameters": [
|
| + {
|
| + "name": "success",
|
| + "type": "boolean",
|
| + "description": "Status of the restart request."
|
| + },
|
| + {
|
| + "name": "errorMessage",
|
| + "type": "string",
|
| + "description": "Error message if restart request failed."
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + },
|
| + {
|
| "name": "connect",
|
| "type": "function",
|
| "nocompile": true,
|
|
|