// Copyright 2012 The Chromium Authors
// 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" }
},
{
"id": "InstallState",
"type": "string",
"enum": ["not_installed", "installed", "disabled"]
},
{
"id": "RunningState",
"type": "string",
"enum": ["running", "cannot_run", "ready_to_run"]
}
],
"functions": [
{
"name": "getIsInstalled",
"description": "TODO",
"type": "function",
"parameters": [],
"returns": {
"name": "isInstalled",
"description": "TODO",
"type": "boolean"
}
},
{
"name": "installState",
"description": "TODO",
"type": "function",
"parameters": [],
"returns_async": {
"name": "callback",
"parameters": [
{
"$ref": "InstallState",
"name": "state"
}
]
}
},
{
"name": "runningState",
"description": "TODO",
"type": "function",
"parameters": [],
"returns": {
"$ref": "RunningState"
}
},
{
"name": "getDetails",
"description": "TODO",
"type": "function",
"parameters": [],
"returns": {
"$ref": "Details",
"optional": true,
"description": "TODO"
}
}
]
}
]