summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/app.json
blob: c4ad21fbcfb8a0854786f67c2ac00306afc0529b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

[
  {
    "namespace": "app",
    "description": "none",
    "types": [
      {
        "id": "Details",
        "description": "TODO (it's a manifest)",
        "type": "object",
        "properties": {},
        "additionalProperties": { "type": "any" }
      },
      {
        "id": "DOMWindow",
        "type": "object",
        "properties": {},
        "additionalProperties": { "type": "any" }
      }
    ],
    "functions": [
      {
        "name": "getIsInstalled",
        "description": "TODO",
        "type": "function",
        "parameters": [],
        "returns": {
          "name": "isInstalled",
          "description": "TODO",
          "type": "boolean"
        }
      },
      {
        "name": "installState",
        "description": "TODO",
        "type": "function",
        "parameters": [
          {
            "type": "function",
            "name": "callback",
            "parameters": [
              {
                "type": "string",
                "name": "state",
                "enum": [ "not_installed", "installed", "disabled" ]
              }
            ]
          }
        ]
      },
      {
        "name": "runningState",
        "description": "TODO",
        "type": "function",
        "parameters": [],
        "returns": {
          "type": "string",
          "enum": [ "running", "cannot_run", "ready_to_run" ]
        }
      },
      {
        "name": "getDetails",
        "description": "TODO",
        "type": "function",
        "parameters": [],
        "returns": {
          "$ref": "Details",
          "optional": true,
          "description": "TODO"
        }
      }
    ]
  }
]