1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
{
"namespace":"webstorePrivate",
"description": "none",
"functions": [
{
"name": "install",
"nocompile": true,
"description": "Installs the extension corresponding to the given id",
"parameters": [
{
"name": "expected_id",
"type": "string",
"description": "The id of the extension to install."
},
{
"name": "callback",
"type": "function",
"optional": true,
"parameters": []
}
]
},
{
"name": "installBundle",
"description": "Initiates the install process for the given bundle of extensions.",
"parameters": [
{
"name": "details",
"description": "An array of extension details to be installed.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The id of the extension to be installed.",
"minLength": 32,
"maxLength": 32
},
"manifest": {
"type": "string",
"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.",
"minLength": 1
},
"localizedName": {
"type": "string",
"description": "A string to use instead of the raw value of the 'name' key from manifest.json."
}
}
}
},
{
"name": "callback",
"type": "function",
"description": "Called when the install process completes. Upon failures, chrome.runtime.lastError will be set to 'user_canceled' or 'unknown_error'.",
"optional": true,
"parameters": []
}
]
},
{
"name": "beginInstallWithManifest3",
"description": "Initiates the install process for the given extension.",
"parameters": [
{
"name": "details",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The id of the extension to be installled.",
"minLength": 32,
"maxLength": 32
},
"manifest": {
"type": "string",
"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.",
"minLength": 1
},
"iconUrl": {
"type": "string",
"optional": true,
"desciption": "A URL for the image to display in the confirmation dialog"
},
"iconData": {
"type": "string",
"optional": true,
"description": "An icon as a base64-encoded image, displayed in a confirmation dialog."
},
"localizedName": {
"type": "string",
"optional": true,
"description": "A string to use instead of the raw value of the 'name' key from manifest.json."
},
"locale": {
"type": "string",
"optional": true,
"description": "The name of the locale used for generating localizedName. This should be the name of one of the directories in the _locales folder of the extension, or the default_locale setting from the manifest."
},
"appInstallBubble": {
"type": "boolean",
"optional": true,
"description": "A flag to change the UI we show when an app is installed - a value of true means to show a bubble pointing at the new tab button (instead of the default behavior of opening the new tab page and animating the app icon)."
},
"enableLauncher": {
"type": "boolean",
"optional": true,
"description": "A flag to cause the app launcher to be installed before installing the extension, if it isn't installed already."
},
"authuser": {
"type": "string",
"optional": true,
"description": "The authuser index to be included with CRX download requests in multi-login sessions."
}
},
"additionalProperties": { "type": "any" }
},
{
"name": "callback",
"type": "function",
"description": "Called when the user has either accepted/rejected the dialog, or some error occurred (such as invalid manifest or icon image data).",
"optional": true,
"parameters": [
{
"name": "result",
"type": "string",
"description": "A string result code, which will be empty upon success. The possible values in the case of errors include 'unknown_error', 'user_cancelled', 'manifest_error', 'icon_error', 'invalid_id', 'permission_denied', 'invalid_icon_url' and 'already_installed'."
}
]
}
]
},
{
"name": "completeInstall",
"description": "",
"parameters": [
{
"name": "expected_id",
"type": "string",
"description": "The id of the extension to be installed. This should match a previous call to beginInstallWithManifest3."
},
{
"name": "callback",
"type": "function",
"optional": true,
"parameters": []
}
]
},
{
"name": "enableAppLauncher",
"description": "",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": true,
"parameters": []
}
]
},
{
"name": "getBrowserLogin",
"description": "Returns the logged-in sync user login if there is one, or the empty string otherwise.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": false,
"parameters": [
{
"name": "info",
"type": "object",
"properties": {
"login": { "type": "string" }
}
}
]
}
]
},
{
"name": "getStoreLogin",
"description": "Returns the previous value set by setStoreLogin, or the empty string if there is none.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": false,
"parameters": [
{ "name": "login", "type": "string" }
]
}
]
},
{
"name": "setStoreLogin",
"description": "Sets a preference value with the store login.",
"parameters": [
{ "name": "login", "type": "string" },
{
"name": "callback",
"type": "function",
"optional": true,
"parameters": []
}
]
},
{
"name": "getWebGLStatus",
"description": "Invokes a callback that returns whether WebGL is blacklisted or not.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": false,
"parameters": [
{
"name": "webgl_status",
"type": "string",
"enum": ["webgl_allowed", "webgl_blocked"]
}
]
}
]
},
{
"name": "getIsLauncherEnabled",
"description": "Returns whether the apps launcher is enabled or not.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": false,
"parameters": [
{ "name": "is_enabled", "type": "boolean" }
]
}
]
},
{
"name": "isInIncognitoMode",
"description": "Returns whether the browser is in incognito mode or not.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": false,
"parameters": [
{ "name": "is_incognito", "type": "boolean" }
]
}
]
},
{
"name": "getEphemeralAppsEnabled",
"description": "Returns whether the ephemeral apps feature is enabled.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": false,
"parameters": [
{ "name": "is_enabled", "type": "boolean" }
]
}
]
},
{
"name": "launchEphemeralApp",
"description": "Installs an app ephemerally in Chrome (if not already fully installed) and launches the app. A user gesture is required.",
"parameters": [
{
"name": "id",
"type": "string",
"description": "The extension id of the app to launch."
},
{
"name": "callback",
"type": "function",
"optional": true,
"parameters": [
{
"name": "result",
"type": "string",
"enum": ["success", "user_gesture_required", "unknown_error", "feature_disabled", "unsupported_extension_type", "missing_dependencies", "install_error", "user_cancelled", "invalid_id", "blacklisted", "blocked_by_policy", "install_in_progress", "launch_in_progress"],
"description": "Whether an attempt to launch an app succeeded, or the reason for failure."
}
]
}
]
}
]
}
]
|