blob: b05495c8a6384893941b549cf16a26212e7ff9c3 [file] [log] [blame]
// 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" }
},
{
"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": [
{
"type": "function",
"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"
}
}
]
}
]