| 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": "idle", | 7 "namespace": "idle", |
| 8 "description": "Use the <code>chrome.idle</code> module to detect when the m
achine's idle state changes.", |
| 8 "types": [], | 9 "types": [], |
| 9 "functions": [ | 10 "functions": [ |
| 10 { | 11 { |
| 11 "name": "queryState", | 12 "name": "queryState", |
| 12 "type": "function", | 13 "type": "function", |
| 13 "description": "Returns \"locked\" if the system is locked, \"idle\" if
the user has not generated any input for a specified number of seconds, or \"act
ive\" otherwise.", | 14 "description": "Returns \"locked\" if the system is locked, \"idle\" if
the user has not generated any input for a specified number of seconds, or \"act
ive\" otherwise.", |
| 14 "parameters": [ | 15 "parameters": [ |
| 15 { | 16 { |
| 16 "name": "detectionIntervalInSeconds", | 17 "name": "detectionIntervalInSeconds", |
| 17 "type": "integer", | 18 "type": "integer", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 { | 55 { |
| 55 "name": "newState", | 56 "name": "newState", |
| 56 "type": "string", | 57 "type": "string", |
| 57 "enum": ["active", "idle", "locked"] | 58 "enum": ["active", "idle", "locked"] |
| 58 } | 59 } |
| 59 ] | 60 ] |
| 60 } | 61 } |
| 61 ] | 62 ] |
| 62 } | 63 } |
| 63 ] | 64 ] |
| OLD | NEW |