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 "functions": [ | 9 "functions": [ |
10 { | 10 { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 }, | 109 }, |
110 { | 110 { |
111 "name": "callback", | 111 "name": "callback", |
112 "type": "function", | 112 "type": "function", |
113 "optional": true, | 113 "optional": true, |
114 "parameters": [] | 114 "parameters": [] |
115 } | 115 } |
116 ] | 116 ] |
117 }, | 117 }, |
118 { | 118 { |
| 119 "name": "showPermissionPromptForDelegatedInstall", |
| 120 "description": "Shows a permission prompt for the given extension, for i
nstalling to a different account.", |
| 121 "parameters": [ |
| 122 { |
| 123 "name": "details", |
| 124 "type": "object", |
| 125 "properties": { |
| 126 "id": { |
| 127 "type": "string", |
| 128 "description": "The id of the extension to be installled.", |
| 129 "minLength": 32, |
| 130 "maxLength": 32 |
| 131 }, |
| 132 "manifest": { |
| 133 "type": "string", |
| 134 "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.", |
| 135 "minLength": 1 |
| 136 }, |
| 137 "delegatedUser": { |
| 138 "type": "string", |
| 139 "description": "The display name of the user for whom the extens
ion should be installed." |
| 140 }, |
| 141 "iconUrl": { |
| 142 "type": "string", |
| 143 "optional": true, |
| 144 "desciption": "A URL for the image to display in the confirmatio
n dialog" |
| 145 }, |
| 146 "iconData": { |
| 147 "type": "string", |
| 148 "optional": true, |
| 149 "description": "An icon as a base64-encoded image, displayed in
a confirmation dialog." |
| 150 }, |
| 151 "localizedName": { |
| 152 "type": "string", |
| 153 "optional": true, |
| 154 "description": "A string to use instead of the raw value of the
'name' key from manifest.json." |
| 155 } |
| 156 } |
| 157 }, |
| 158 { |
| 159 "name": "callback", |
| 160 "type": "function", |
| 161 "description": "Called when the user has either accepted/rejected th
e dialog, or some error occurred (such as invalid manifest or icon image data)."
, |
| 162 "optional": true, |
| 163 "parameters": [ |
| 164 { |
| 165 "name": "result", |
| 166 "type": "string", |
| 167 "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
'." |
| 168 } |
| 169 ] |
| 170 } |
| 171 ] |
| 172 }, |
| 173 { |
119 "name": "enableAppLauncher", | 174 "name": "enableAppLauncher", |
120 "description": "", | 175 "description": "", |
121 "parameters": [ | 176 "parameters": [ |
122 { | 177 { |
123 "name": "callback", | 178 "name": "callback", |
124 "type": "function", | 179 "type": "function", |
125 "optional": true, | 180 "optional": true, |
126 "parameters": [] | 181 "parameters": [] |
127 } | 182 } |
128 ] | 183 ] |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 "enum": ["success", "user_gesture_required", "unknown_error", "f
eature_disabled", "unsupported_extension_type", "missing_dependencies", "install
_error", "user_cancelled", "invalid_id", "blacklisted", "blocked_by_policy", "in
stall_in_progress", "launch_in_progress"], | 309 "enum": ["success", "user_gesture_required", "unknown_error", "f
eature_disabled", "unsupported_extension_type", "missing_dependencies", "install
_error", "user_cancelled", "invalid_id", "blacklisted", "blocked_by_policy", "in
stall_in_progress", "launch_in_progress"], |
255 "description": "Whether an attempt to launch an app succeeded, o
r the reason for failure." | 310 "description": "Whether an attempt to launch an app succeeded, o
r the reason for failure." |
256 } | 311 } |
257 ] | 312 ] |
258 } | 313 } |
259 ] | 314 ] |
260 } | 315 } |
261 ] | 316 ] |
262 } | 317 } |
263 ] | 318 ] |
OLD | NEW |