| 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": "app", | 7 "namespace": "app", |
| 8 "description": "none", | 8 "description": "none", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| 11 "id": "Details", | 11 "id": "Details", |
| 12 "description": "TODO (it's a manifest)", | 12 "description": "TODO (it's a manifest)", |
| 13 "type": "object", | 13 "type": "object", |
| 14 "properties": {}, | 14 "properties": {}, |
| 15 "additionalProperties": { "type": "any" } | 15 "additionalProperties": { "type": "any" } |
| 16 }, | 16 }, |
| 17 { | 17 { |
| 18 "id": "DOMWindow", | 18 "id": "DOMWindow", |
| 19 "type": "object", | 19 "type": "object", |
| 20 "properties": {}, | 20 "properties": {}, |
| 21 "additionalProperties": { "type": "any" } | 21 "additionalProperties": { "type": "any" } |
| 22 }, |
| 23 { |
| 24 "id": "InstallState", |
| 25 "type": "string", |
| 26 "enum": ["not_installed", "installed", "disabled"] |
| 27 }, |
| 28 { |
| 29 "id": "RunningState", |
| 30 "type": "string", |
| 31 "enum": ["running", "cannot_run", "ready_to_run"] |
| 22 } | 32 } |
| 23 ], | 33 ], |
| 24 "functions": [ | 34 "functions": [ |
| 25 { | 35 { |
| 26 "name": "getIsInstalled", | 36 "name": "getIsInstalled", |
| 27 "description": "TODO", | 37 "description": "TODO", |
| 28 "type": "function", | 38 "type": "function", |
| 29 "parameters": [], | 39 "parameters": [], |
| 30 "returns": { | 40 "returns": { |
| 31 "name": "isInstalled", | 41 "name": "isInstalled", |
| 32 "description": "TODO", | 42 "description": "TODO", |
| 33 "type": "boolean" | 43 "type": "boolean" |
| 34 } | 44 } |
| 35 }, | 45 }, |
| 36 { | 46 { |
| 37 "name": "installState", | 47 "name": "installState", |
| 38 "description": "TODO", | 48 "description": "TODO", |
| 39 "type": "function", | 49 "type": "function", |
| 40 "parameters": [ | 50 "parameters": [ |
| 41 { | 51 { |
| 42 "type": "function", | 52 "type": "function", |
| 43 "name": "callback", | 53 "name": "callback", |
| 44 "parameters": [ | 54 "parameters": [ |
| 45 { | 55 { |
| 46 "type": "string", | 56 "$ref": "InstallState", |
| 47 "name": "state", | 57 "name": "state" |
| 48 "enum": [ "not_installed", "installed", "disabled" ] | |
| 49 } | 58 } |
| 50 ] | 59 ] |
| 51 } | 60 } |
| 52 ] | 61 ] |
| 53 }, | 62 }, |
| 54 { | 63 { |
| 55 "name": "runningState", | 64 "name": "runningState", |
| 56 "description": "TODO", | 65 "description": "TODO", |
| 57 "type": "function", | 66 "type": "function", |
| 58 "parameters": [], | 67 "parameters": [], |
| 59 "returns": { | 68 "returns": { |
| 60 "type": "string", | 69 "$ref": "RunningState" |
| 61 "enum": [ "running", "cannot_run", "ready_to_run" ] | |
| 62 } | 70 } |
| 63 }, | 71 }, |
| 64 { | 72 { |
| 65 "name": "getDetails", | 73 "name": "getDetails", |
| 66 "description": "TODO", | 74 "description": "TODO", |
| 67 "type": "function", | 75 "type": "function", |
| 68 "parameters": [], | 76 "parameters": [], |
| 69 "returns": { | 77 "returns": { |
| 70 "$ref": "Details", | 78 "$ref": "Details", |
| 71 "optional": true, | 79 "optional": true, |
| 72 "description": "TODO" | 80 "description": "TODO" |
| 73 } | 81 } |
| 74 } | 82 } |
| 75 ] | 83 ] |
| 76 } | 84 } |
| 77 ] | 85 ] |
| OLD | NEW |