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
3// found in the LICENSE file.
4
5[
6  {
7    "namespace": "app",
8    "description": "none",
9    "types": [
10      {
11        "id": "Details",
12        "description": "TODO (it's a manifest)",
13        "type": "object",
14        "properties": {},
15        "additionalProperties": { "type": "any" }
16      },
17      {
18        "id": "DOMWindow",
19        "type": "object",
20        "properties": {},
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"]
32      }
33    ],
34    "functions": [
35      {
36        "name": "getIsInstalled",
37        "description": "TODO",
38        "type": "function",
39        "parameters": [],
40        "returns": {
41          "name": "isInstalled",
42          "description": "TODO",
43          "type": "boolean"
44        }
45      },
46      {
47        "name": "installState",
48        "description": "TODO",
49        "type": "function",
50        "parameters": [
51          {
52            "type": "function",
53            "name": "callback",
54            "parameters": [
55              {
56                "$ref": "InstallState",
57                "name": "state"
58              }
59            ]
60          }
61        ]
62      },
63      {
64        "name": "runningState",
65        "description": "TODO",
66        "type": "function",
67        "parameters": [],
68        "returns": {
69          "$ref": "RunningState"
70        }
71      },
72      {
73        "name": "getDetails",
74        "description": "TODO",
75        "type": "function",
76        "parameters": [],
77        "returns": {
78          "$ref": "Details",
79          "optional": true,
80          "description": "TODO"
81        }
82      }
83    ]
84  }
85]
86