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

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

Issue 1268853003: Move webstorePrivate DelegatedInstall functions into new dashboardPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 4 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
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":"webstorePrivate", 7 "namespace":"webstorePrivate",
8 "description": "none", 8 "description": "none",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 }, 176 },
177 { 177 {
178 "name": "callback", 178 "name": "callback",
179 "type": "function", 179 "type": "function",
180 "optional": true, 180 "optional": true,
181 "parameters": [] 181 "parameters": []
182 } 182 }
183 ] 183 ]
184 }, 184 },
185 { 185 {
186 "name": "showPermissionPromptForDelegatedInstall",
187 "description": "Shows a permission prompt for the given extension, for i nstalling to a different account.",
188 "parameters": [
189 {
190 "name": "details",
191 "type": "object",
192 "properties": {
193 "id": {
194 "type": "string",
195 "description": "The id of the extension to be installled.",
196 "minLength": 32,
197 "maxLength": 32
198 },
199 "manifest": {
200 "type": "string",
201 "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.",
202 "minLength": 1
203 },
204 "delegatedUser": {
205 "type": "string",
206 "description": "The display name of the user for whom the extens ion should be installed."
207 },
208 "iconUrl": {
209 "type": "string",
210 "optional": true,
211 "desciption": "A URL for the image to display in the confirmatio n dialog"
212 },
213 "iconData": {
214 "type": "string",
215 "optional": true,
216 "description": "An icon as a base64-encoded image, displayed in a confirmation dialog."
217 },
218 "localizedName": {
219 "type": "string",
220 "optional": true,
221 "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
222 }
223 }
224 },
225 {
226 "name": "callback",
227 "type": "function",
228 "description": "Called when the user has either accepted/rejected th e dialog, or some error occurred (such as invalid manifest or icon image data)." ,
229 "optional": true,
230 "parameters": [
231 {
232 "name": "result",
233 "$ref": "Result",
234 "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 '."
235 }
236 ]
237 }
238 ]
239 },
240 {
241 "name": "installBundle", 186 "name": "installBundle",
242 "description": "Initiates the install process for the given bundle of ex tensions.", 187 "description": "Initiates the install process for the given bundle of ex tensions.",
243 "parameters": [ 188 "parameters": [
244 { 189 {
245 "name": "details", 190 "name": "details",
246 "type": "object", 191 "type": "object",
247 "properties": { 192 "properties": {
248 "localizedName": { 193 "localizedName": {
249 "type": "string", 194 "type": "string",
250 "description": "A title to use for display in a confirmation dia log." 195 "description": "A title to use for display in a confirmation dia log."
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 { 240 {
296 "name": "callback", 241 "name": "callback",
297 "type": "function", 242 "type": "function",
298 "description": "Called when the install process completes. Upon fail ures, chrome.runtime.lastError will be set to 'Invalid bundle', 'Invalid icon ur l', 'This item is already installed', or 'User cancelled install'.", 243 "description": "Called when the install process completes. Upon fail ures, chrome.runtime.lastError will be set to 'Invalid bundle', 'Invalid icon ur l', 'This item is already installed', or 'User cancelled install'.",
299 "optional": true, 244 "optional": true,
300 "parameters": [] 245 "parameters": []
301 } 246 }
302 ] 247 ]
303 }, 248 },
304 { 249 {
305 "name": "showPermissionPromptForDelegatedBundleInstall",
306 "description": "Shows a permission prompt for the given bundle, for inst alling to a different account.",
307 "parameters": [
308 {
309 "name": "details",
310 "type": "object",
311 "properties": {
312 "localizedName": {
313 "type": "string",
314 "description": "A title to use for display in a confirmation dia log."
315 },
316 "delegatedUser": {
317 "type": "string",
318 "description": "The display name of the user for whom the extens ion should be installed."
319 },
320 "iconUrl": {
321 "type": "string",
322 "optional": true,
323 "desciption": "A URL for the image to display in the confirmatio n dialog"
324 }
325 },
326 "additionalProperties": { "type": "any" }
327 },
328 {
329 "name": "contents",
330 "description": "An array of extension details to be installed.",
331 "type": "array",
332 "items": {
333 "type": "object",
334 "properties": {
335 "id": {
336 "type": "string",
337 "description": "The id of the extension to be installed.",
338 "minLength": 32,
339 "maxLength": 32
340 },
341 "manifest": {
342 "type": "string",
343 "description": "A string with the contents of the extension's manifest.json file. During the install process, the browser will check that the downloaded extension's manifest matches what was passed in here.",
344 "minLength": 1
345 },
346 "iconUrl": {
347 "type": "string",
348 "optional": true,
349 "desciption": "A URL for the image to display in the confirmat ion dialog"
350 },
351 "localizedName": {
352 "type": "string",
353 "description": "A string to use instead of the raw value of th e 'name' key from manifest.json."
354 }
355 }
356 }
357 },
358 {
359 "name": "callback",
360 "type": "function",
361 "description": "Called when the install process completes. Upon fail ures, chrome.runtime.lastError will be set to 'Invalid bundle', 'Invalid icon ur l', or 'User cancelled install'.",
362 "optional": true,
363 "parameters": []
364 }
365 ]
366 },
367 {
368 "name": "enableAppLauncher", 250 "name": "enableAppLauncher",
369 "description": "", 251 "description": "",
370 "parameters": [ 252 "parameters": [
371 { 253 {
372 "name": "callback", 254 "name": "callback",
373 "type": "function", 255 "type": "function",
374 "optional": true, 256 "optional": true,
375 "parameters": [] 257 "parameters": []
376 } 258 }
377 ] 259 ]
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 "$ref": "Result", 383 "$ref": "Result",
502 "description": "Whether an attempt to launch an app succeeded, o r the reason for failure." 384 "description": "Whether an attempt to launch an app succeeded, o r the reason for failure."
503 } 385 }
504 ] 386 ]
505 } 387 }
506 ] 388 ]
507 } 389 }
508 ] 390 ]
509 } 391 }
510 ] 392 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698