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 "nodoc": "true", | 8 "nodoc": "true", |
9 "functions": [ | 9 "functions": [ |
10 { | 10 { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 }, | 136 }, |
137 { | 137 { |
138 "name": "callback", | 138 "name": "callback", |
139 "type": "function", | 139 "type": "function", |
140 "optional": "true", | 140 "optional": "true", |
141 "parameters": [] | 141 "parameters": [] |
142 } | 142 } |
143 ] | 143 ] |
144 }, | 144 }, |
145 { | 145 { |
146 "name": "silentlyInstall", | |
147 "description": "Silently installs the specified extension, which must al
ready be whitelisted in Chrome.", | |
148 "parameters": [ | |
149 { | |
150 "name": "details", | |
151 "type": "object", | |
152 "properties": { | |
153 "id": { | |
154 "type": "string", | |
155 "description": "The id of the extension to be installled.", | |
156 "minLength": 32, | |
157 "maxLength": 32 | |
158 }, | |
159 "manifest": { | |
160 "type": "string", | |
161 "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.", | |
162 "minLength": 1 | |
163 } | |
164 } | |
165 }, | |
166 { | |
167 "name": "callback", | |
168 "type": "function", | |
169 "description": "Called when the extension installation has completed
. chrome.extension.lastError may be set if the extension install failed.", | |
170 "optional": "true", | |
171 "parameters": [] | |
172 } | |
173 ] | |
174 }, | |
175 { | |
176 "name": "getBrowserLogin", | 146 "name": "getBrowserLogin", |
177 "description": "Returns the logged-in sync user login if there is one, o
r the empty string otherwise.", | 147 "description": "Returns the logged-in sync user login if there is one, o
r the empty string otherwise.", |
178 "parameters": [ | 148 "parameters": [ |
179 { | 149 { |
180 "name": "callback", | 150 "name": "callback", |
181 "type": "function", | 151 "type": "function", |
182 "optional": "false", | 152 "optional": "false", |
183 "parameters": [ | 153 "parameters": [ |
184 { | 154 { |
185 "name": "info", | 155 "name": "info", |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 "type": "string", | 230 "type": "string", |
261 "enum": ["webgl_allowed", "webgl_blocked"] | 231 "enum": ["webgl_allowed", "webgl_blocked"] |
262 } | 232 } |
263 ] | 233 ] |
264 } | 234 } |
265 ] | 235 ] |
266 } | 236 } |
267 ] | 237 ] |
268 } | 238 } |
269 ] | 239 ] |
OLD | NEW |