| 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> API to detect when the mach
ine's idle state changes.", | 8 "description": "Use the <code>chrome.idle</code> API to detect when the mach
ine's idle state changes.", |
| 9 "compiler_options": {"use_movable_types": true}, | |
| 10 "types": [ | 9 "types": [ |
| 11 { | 10 { |
| 12 "id": "IdleState", | 11 "id": "IdleState", |
| 13 "type": "string", | 12 "type": "string", |
| 14 "enum": ["active", "idle", "locked"] | 13 "enum": ["active", "idle", "locked"] |
| 15 } | 14 } |
| 16 ], | 15 ], |
| 17 "functions": [ | 16 "functions": [ |
| 18 { | 17 { |
| 19 "name": "queryState", | 18 "name": "queryState", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 "parameters": [ | 59 "parameters": [ |
| 61 { | 60 { |
| 62 "name": "newState", | 61 "name": "newState", |
| 63 "$ref": "IdleState" | 62 "$ref": "IdleState" |
| 64 } | 63 } |
| 65 ] | 64 ] |
| 66 } | 65 } |
| 67 ] | 66 ] |
| 68 } | 67 } |
| 69 ] | 68 ] |
| OLD | NEW |