OLD | NEW |
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":"management", | 7 "namespace":"management", |
8 "types": [ | 8 "types": [ |
9 { | 9 { |
10 "id": "IconInfo", | 10 "id": "IconInfo", |
11 "description": "Information about an icon belonging to an extension or a
pp.", | 11 "description": "Information about an icon belonging to an extension, app
, or theme.", |
12 "type": "object", | 12 "type": "object", |
13 "properties": { | 13 "properties": { |
14 "size": { "type": "integer", "description": "A number representing the
width and height of the icon. Likely values include (but are not limited to) 12
8, 48, 24, and 16." }, | 14 "size": { "type": "integer", "description": "A number representing the
width and height of the icon. Likely values include (but are not limited to) 12
8, 48, 24, and 16." }, |
15 "url": { "type": "string", "description": "The URL for this icon image
. To display a grayscale version of the icon (to indicate that an extension is d
isabled, for example), append <code>?grayscale=true</code> to the URL." } | 15 "url": { "type": "string", "description": "The URL for this icon image
. To display a grayscale version of the icon (to indicate that an extension is d
isabled, for example), append <code>?grayscale=true</code> to the URL." } |
16 } | 16 } |
17 }, | 17 }, |
18 { | 18 { |
19 "id": "ExtensionInfo", | 19 "id": "ExtensionInfo", |
20 "description": "Information about an installed extension or app.", | 20 "description": "Information about an installed extension, app, or theme.
", |
21 "type": "object", | 21 "type": "object", |
22 "properties": { | 22 "properties": { |
23 "id": { | 23 "id": { |
24 "description": "The extension's unique identifier.", | 24 "description": "The extension's unique identifier.", |
25 "type": "string" | 25 "type": "string" |
26 }, | 26 }, |
27 "name": { | 27 "name": { |
28 "description": "The name of this extension or app.", | 28 "description": "The name of this extension, app, or theme.", |
29 "type": "string" | 29 "type": "string" |
30 }, | 30 }, |
31 "description": { | 31 "description": { |
32 "description": "The description of this extension or app.", | 32 "description": "The description of this extension, app, or theme.", |
33 "type": "string" | 33 "type": "string" |
34 }, | 34 }, |
35 "version": { | 35 "version": { |
36 "description": "The <a href='manifest.html#version'>version</a> of t
his extension or app.", | 36 "description": "The <a href='manifest.html#version'>version</a> of t
his extension, app, or theme.", |
37 "type": "string" | 37 "type": "string" |
38 }, | 38 }, |
39 "mayDisable": { | 39 "mayDisable": { |
40 "description": "Whether this extension can be disabled or uninstalle
d by the user.", | 40 "description": "Whether this extension can be disabled or uninstalle
d by the user.", |
41 "type": "boolean" | 41 "type": "boolean" |
42 }, | 42 }, |
43 "enabled": { | 43 "enabled": { |
44 "description": "Whether it is currently enabled or disabled.", | 44 "description": "Whether it is currently enabled or disabled.", |
45 "type": "boolean" | 45 "type": "boolean" |
46 }, | 46 }, |
47 "disabledReason": { | 47 "disabledReason": { |
48 "description": "A reason the item is disabled.", | 48 "description": "A reason the item is disabled.", |
49 "type": "string", | 49 "type": "string", |
50 "enum": ["unknown", "permissions_increase"], | 50 "enum": ["unknown", "permissions_increase"], |
51 "optional": true | 51 "optional": true |
52 }, | 52 }, |
53 "isApp": { | 53 "isApp": { |
54 "description": "True if this is an app.", | 54 "description": "True if this is an app.", |
55 "type": "boolean" | 55 "type": "boolean", |
| 56 "nodoc": true |
| 57 }, |
| 58 "type": { |
| 59 "description": "The type of this extension, app, or theme.", |
| 60 "type": "string", |
| 61 "enum": ["extension", "hosted_app", "packaged_app", "legacy_packaged
_app", "theme"] |
56 }, | 62 }, |
57 "appLaunchUrl": { | 63 "appLaunchUrl": { |
58 "description": "The launch url (only present for apps).", | 64 "description": "The launch url (only present for apps).", |
59 "type": "string", | 65 "type": "string", |
60 "optional": true | 66 "optional": true |
61 }, | 67 }, |
62 "homepageUrl": { | 68 "homepageUrl": { |
63 "description": "The URL of the homepage of this extension or app.", | 69 "description": "The URL of the homepage of this extension, app, or t
heme.", |
64 "type": "string", | 70 "type": "string", |
65 "optional": true | 71 "optional": true |
66 }, | 72 }, |
67 "updateUrl": { | 73 "updateUrl": { |
68 "description": "The update URL of this extension or app.", | 74 "description": "The update URL of this extension, app, or theme.", |
69 "type": "string", | 75 "type": "string", |
70 "optional": true | 76 "optional": true |
71 }, | 77 }, |
72 "offlineEnabled": { | 78 "offlineEnabled": { |
73 "description": "Whether the extension or app declares that it suppor
ts offline.", | 79 "description": "Whether the extension, app, or theme declares that i
t supports offline.", |
74 "type": "boolean" | 80 "type": "boolean" |
75 }, | 81 }, |
76 "optionsUrl": { | 82 "optionsUrl": { |
77 "description": "The url for the item's options page, if it has one."
, | 83 "description": "The url for the item's options page, if it has one."
, |
78 "type": "string" | 84 "type": "string" |
79 }, | 85 }, |
80 "icons": { | 86 "icons": { |
81 "description": "A list of icon information. Note that this just refl
ects what was declared in the manifest, and the actual image at that url may be
larger or smaller than what was declared, so you might consider using explicit w
idth and height attributes on img tags referencing these images. See the <a href
='manifest.html#icons'>manifest documentation on icons</a> for more details.", | 87 "description": "A list of icon information. Note that this just refl
ects what was declared in the manifest, and the actual image at that url may be
larger or smaller than what was declared, so you might consider using explicit w
idth and height attributes on img tags referencing these images. See the <a href
='manifest.html#icons'>manifest documentation on icons</a> for more details.", |
82 "type": "array", | 88 "type": "array", |
83 "optional": true, | 89 "optional": true, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 "items": { | 129 "items": { |
124 "$ref": "ExtensionInfo" | 130 "$ref": "ExtensionInfo" |
125 } | 131 } |
126 } | 132 } |
127 ] | 133 ] |
128 } | 134 } |
129 ] | 135 ] |
130 }, | 136 }, |
131 { | 137 { |
132 "name": "get", | 138 "name": "get", |
133 "description": "Returns information about the installed extension or app
that has the given ID.", | 139 "description": "Returns information about the installed extension, app,
or theme that has the given ID.", |
134 "parameters": [ | 140 "parameters": [ |
135 { | 141 { |
136 "name": "id", | 142 "name": "id", |
137 "type": "string", | 143 "type": "string", |
138 "description": "The ID from an item of $ref:ExtensionInfo." | 144 "description": "The ID from an item of $ref:ExtensionInfo." |
139 }, | 145 }, |
140 { | 146 { |
141 "type": "function", | 147 "type": "function", |
142 "name": "callback", | 148 "name": "callback", |
143 "optional": "true", | 149 "optional": "true", |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 278 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
273 }, | 279 }, |
274 { | 280 { |
275 "name": "onUninstalled", | 281 "name": "onUninstalled", |
276 "description": "Fired when an app or extension has been uninstalled.", | 282 "description": "Fired when an app or extension has been uninstalled.", |
277 "type": "function", | 283 "type": "function", |
278 "parameters": [ | 284 "parameters": [ |
279 { | 285 { |
280 "name": "id", | 286 "name": "id", |
281 "type": "string", | 287 "type": "string", |
282 "description": "The id of the extension or app that was uninstalled." | 288 "description": "The id of the extension, app, or theme that was unins
talled." |
283 } | 289 } |
284 ] | 290 ] |
285 }, | 291 }, |
286 { | 292 { |
287 "name": "onEnabled", | 293 "name": "onEnabled", |
288 "description": "Fired when an app or extension has been enabled.", | 294 "description": "Fired when an app or extension has been enabled.", |
289 "type": "function", | 295 "type": "function", |
290 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 296 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
291 }, | 297 }, |
292 { | 298 { |
293 "name": "onDisabled", | 299 "name": "onDisabled", |
294 "description": "Fired when an app or extension has been disabled", | 300 "description": "Fired when an app or extension has been disabled", |
295 "type": "function", | 301 "type": "function", |
296 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 302 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
297 } | 303 } |
298 ] | 304 ] |
299 } | 305 } |
300 ] | 306 ] |
OLD | NEW |