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 "description": "The <code>chrome.management</code> API provides ways to mana
ge the list of extensions/apps that are installed and running. It is particularl
y useful for extensions that <a href='override.html'>override</a> the built-in N
ew Tab page.", | 8 "description": "The <code>chrome.management</code> API provides ways to mana
ge the list of extensions/apps that are installed and running. It is particularl
y useful for extensions that <a href='override'>override</a> the built-in New Ta
b page.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
11 "id": "IconInfo", | 11 "id": "IconInfo", |
12 "description": "Information about an icon belonging to an extension, app
, or theme.", | 12 "description": "Information about an icon belonging to an extension, app
, or theme.", |
13 "type": "object", | 13 "type": "object", |
14 "properties": { | 14 "properties": { |
15 "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 "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." }, |
16 "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 "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." } |
17 } | 17 } |
18 }, | 18 }, |
(...skipping 12 matching lines...) Expand all Loading... |
31 }, | 31 }, |
32 "shortName": { | 32 "shortName": { |
33 "description": "A short version of the name of this extension, app,
or theme.", | 33 "description": "A short version of the name of this extension, app,
or theme.", |
34 "type": "string" | 34 "type": "string" |
35 }, | 35 }, |
36 "description": { | 36 "description": { |
37 "description": "The description of this extension, app, or theme.", | 37 "description": "The description of this extension, app, or theme.", |
38 "type": "string" | 38 "type": "string" |
39 }, | 39 }, |
40 "version": { | 40 "version": { |
41 "description": "The <a href='manifest/version.html'>version</a> of t
his extension, app, or theme.", | 41 "description": "The <a href='manifest/version'>version</a> of this e
xtension, app, or theme.", |
42 "type": "string" | 42 "type": "string" |
43 }, | 43 }, |
44 "mayDisable": { | 44 "mayDisable": { |
45 "description": "Whether this extension can be disabled or uninstalle
d by the user.", | 45 "description": "Whether this extension can be disabled or uninstalle
d by the user.", |
46 "type": "boolean" | 46 "type": "boolean" |
47 }, | 47 }, |
48 "enabled": { | 48 "enabled": { |
49 "description": "Whether it is currently enabled or disabled.", | 49 "description": "Whether it is currently enabled or disabled.", |
50 "type": "boolean" | 50 "type": "boolean" |
51 }, | 51 }, |
(...skipping 30 matching lines...) Expand all Loading... |
82 }, | 82 }, |
83 "offlineEnabled": { | 83 "offlineEnabled": { |
84 "description": "Whether the extension, app, or theme declares that i
t supports offline.", | 84 "description": "Whether the extension, app, or theme declares that i
t supports offline.", |
85 "type": "boolean" | 85 "type": "boolean" |
86 }, | 86 }, |
87 "optionsUrl": { | 87 "optionsUrl": { |
88 "description": "The url for the item's options page, if it has one."
, | 88 "description": "The url for the item's options page, if it has one."
, |
89 "type": "string" | 89 "type": "string" |
90 }, | 90 }, |
91 "icons": { | 91 "icons": { |
92 "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/icons.html'>manifest documentation on icons</a> for more details.", | 92 "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/icons'>manifest documentation on icons</a> for more details.", |
93 "type": "array", | 93 "type": "array", |
94 "optional": true, | 94 "optional": true, |
95 "items": { | 95 "items": { |
96 "$ref": "IconInfo" | 96 "$ref": "IconInfo" |
97 } | 97 } |
98 }, | 98 }, |
99 "permissions": { | 99 "permissions": { |
100 "description": "Returns a list of API based permissions.", | 100 "description": "Returns a list of API based permissions.", |
101 "type": "array", | 101 "type": "array", |
102 "items" : { | 102 "items" : { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 { | 156 { |
157 "name": "result", | 157 "name": "result", |
158 "$ref": "ExtensionInfo" | 158 "$ref": "ExtensionInfo" |
159 } | 159 } |
160 ] | 160 ] |
161 } | 161 } |
162 ] | 162 ] |
163 }, | 163 }, |
164 { | 164 { |
165 "name": "getPermissionWarningsById", | 165 "name": "getPermissionWarningsById", |
166 "description": "Returns a list of <a href='permission_warnings.html'>per
mission warnings</a> for the given extension id.", | 166 "description": "Returns a list of <a href='permission_warnings'>permissi
on warnings</a> for the given extension id.", |
167 "parameters": [ | 167 "parameters": [ |
168 { "name": "id", | 168 { "name": "id", |
169 "type": "string", | 169 "type": "string", |
170 "description": "The ID of an already installed extension." | 170 "description": "The ID of an already installed extension." |
171 }, | 171 }, |
172 { | 172 { |
173 "name": "callback", | 173 "name": "callback", |
174 "type": "function", | 174 "type": "function", |
175 "optional": true, | 175 "optional": true, |
176 "parameters": [ | 176 "parameters": [ |
177 { | 177 { |
178 "name": "permissionWarnings", | 178 "name": "permissionWarnings", |
179 "type": "array", | 179 "type": "array", |
180 "items": { "type": "string" } | 180 "items": { "type": "string" } |
181 } | 181 } |
182 ] | 182 ] |
183 } | 183 } |
184 ] | 184 ] |
185 }, | 185 }, |
186 { | 186 { |
187 "name": "getPermissionWarningsByManifest", | 187 "name": "getPermissionWarningsByManifest", |
188 "description": "Returns a list of <a href='permission_warnings.html'>per
mission warnings</a> for the given extension manifest string. Note: This functio
n can be used without requesting the 'management' permission in the manifest.", | 188 "description": "Returns a list of <a href='permission_warnings'>permissi
on warnings</a> for the given extension manifest string. Note: This function can
be used without requesting the 'management' permission in the manifest.", |
189 "parameters": [ | 189 "parameters": [ |
190 { | 190 { |
191 "name": "manifestStr", | 191 "name": "manifestStr", |
192 "type": "string", | 192 "type": "string", |
193 "description": "Extension manifest JSON string." | 193 "description": "Extension manifest JSON string." |
194 }, | 194 }, |
195 { | 195 { |
196 "name": "callback", | 196 "name": "callback", |
197 "type": "function", | 197 "type": "function", |
198 "optional": true, | 198 "optional": true, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 }, | 343 }, |
344 { | 344 { |
345 "name": "onDisabled", | 345 "name": "onDisabled", |
346 "description": "Fired when an app or extension has been disabled.", | 346 "description": "Fired when an app or extension has been disabled.", |
347 "type": "function", | 347 "type": "function", |
348 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 348 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
349 } | 349 } |
350 ] | 350 ] |
351 } | 351 } |
352 ] | 352 ] |
OLD | NEW |