Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/common/extensions/api/app.json

Issue 10174001: Add an API for hosted apps to check their install and running states. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "nodoc": true, 8 "nodoc": true,
9 "unprivileged": true, 9 "unprivileged": true,
10 "matches": [ "<all_urls>" ], 10 "matches": [ "<all_urls>" ],
(...skipping 18 matching lines...) Expand all
29 "description": "TODO", 29 "description": "TODO",
30 "type": "function", 30 "type": "function",
31 "parameters": [], 31 "parameters": [],
32 "returns": { 32 "returns": {
33 "name": "isInstalled", 33 "name": "isInstalled",
34 "description": "TODO", 34 "description": "TODO",
35 "type": "boolean" 35 "type": "boolean"
36 } 36 }
37 }, 37 },
38 { 38 {
39 "name": "installState",
40 "description": "TODO",
41 "type": "function",
42 "parameters": [
43 {
44 "type": "function",
45 "name": "callback",
46 "parameters": [
47 {
48 "type": "string",
49 "enum": [ "not_installed", "installed", "disabled" ]
50 }
51 ]
52 }
53 ]
54 },
55 {
56 "name": "runningState",
57 "description": "TODO",
58 "type": "function",
59 "parameters": [],
60 "returns": {
61 "type": "string",
62 "enum": [ "running", "cannot_run", "ready_to_run" ]
63 }
64 },
65 {
39 "name": "install", 66 "name": "install",
40 "description": "TODO", 67 "description": "TODO",
41 "type": "function", 68 "type": "function",
42 "parameters": [] 69 "parameters": []
43 }, 70 },
44 { 71 {
45 "name": "getDetails", 72 "name": "getDetails",
46 "description": "TODO", 73 "description": "TODO",
47 "type": "function", 74 "type": "function",
48 "parameters": [], 75 "parameters": [],
(...skipping 16 matching lines...) Expand all
65 ], 92 ],
66 "returns": { 93 "returns": {
67 "$ref": "Details", 94 "$ref": "Details",
68 "optional": true, 95 "optional": true,
69 "description": "TODO" 96 "description": "TODO"
70 } 97 }
71 } 98 }
72 ] 99 ]
73 } 100 }
74 ] 101 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tab_helper.cc ('k') | chrome/common/extensions/extension_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698