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":"webstorePrivate", | 7 "namespace":"webstorePrivate", |
8 "description": "none", | 8 "description": "none", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ] | 178 ] |
179 }, | 179 }, |
180 { | 180 { |
| 181 "name": "showPermissionPromptForDelegatedInstall", |
| 182 "description": "Shows a permission prompt for the given extension, for i
nstalling to a different account.", |
| 183 "parameters": [ |
| 184 { |
| 185 "name": "details", |
| 186 "type": "object", |
| 187 "properties": { |
| 188 "id": { |
| 189 "type": "string", |
| 190 "description": "The id of the extension to be installled.", |
| 191 "minLength": 32, |
| 192 "maxLength": 32 |
| 193 }, |
| 194 "manifest": { |
| 195 "type": "string", |
| 196 "description": "A string with the contents of the extension's ma
nifest.json file. During the install process, the browser will check that the do
wnloaded extension's manifest matches what was passed in here.", |
| 197 "minLength": 1 |
| 198 }, |
| 199 "delegatedUser": { |
| 200 "type": "string", |
| 201 "description": "The display name of the user for whom the extens
ion should be installed." |
| 202 }, |
| 203 "iconUrl": { |
| 204 "type": "string", |
| 205 "optional": true, |
| 206 "desciption": "A URL for the image to display in the confirmatio
n dialog" |
| 207 }, |
| 208 "iconData": { |
| 209 "type": "string", |
| 210 "optional": true, |
| 211 "description": "An icon as a base64-encoded image, displayed in
a confirmation dialog." |
| 212 }, |
| 213 "localizedName": { |
| 214 "type": "string", |
| 215 "optional": true, |
| 216 "description": "A string to use instead of the raw value of the
'name' key from manifest.json." |
| 217 } |
| 218 } |
| 219 }, |
| 220 { |
| 221 "name": "callback", |
| 222 "type": "function", |
| 223 "description": "Called when the user has either accepted/rejected th
e dialog, or some error occurred (such as invalid manifest or icon image data)."
, |
| 224 "optional": true, |
| 225 "parameters": [ |
| 226 { |
| 227 "name": "result", |
| 228 "$ref": "Result", |
| 229 "description": "A string result code, which will be empty upon s
uccess. The possible values in the case of errors include 'unknown_error', 'user
_cancelled', 'manifest_error', 'icon_error', 'invalid_id', and 'invalid_icon_url
'." |
| 230 } |
| 231 ] |
| 232 } |
| 233 ] |
| 234 }, |
| 235 { |
181 "name": "enableAppLauncher", | 236 "name": "enableAppLauncher", |
182 "description": "", | 237 "description": "", |
183 "parameters": [ | 238 "parameters": [ |
184 { | 239 { |
185 "name": "callback", | 240 "name": "callback", |
186 "type": "function", | 241 "type": "function", |
187 "optional": true, | 242 "optional": true, |
188 "parameters": [] | 243 "parameters": [] |
189 } | 244 } |
190 ] | 245 ] |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 "$ref": "Result", | 370 "$ref": "Result", |
316 "description": "Whether an attempt to launch an app succeeded, o
r the reason for failure." | 371 "description": "Whether an attempt to launch an app succeeded, o
r the reason for failure." |
317 } | 372 } |
318 ] | 373 ] |
319 } | 374 } |
320 ] | 375 ] |
321 } | 376 } |
322 ] | 377 ] |
323 } | 378 } |
324 ] | 379 ] |
OLD | NEW |