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
3 // found in the LICENSE file.
7 "namespace":"webstorePrivate",
15 "description": "Empty string, used to indicate success by beginInstallWithManifest3"
18 "description": "Installation was successful"
20 "name": "user_gesture_required",
21 "description": "Function was called without a user gesture"
23 "name": "unknown_error",
24 "description": "An unknown error occured"
26 "name": "feature_disabled",
27 "description": "The requested feature is not available"
29 "name": "unsupported_extension_type",
30 "description": "The requested feature is not availabe for this type of extension"
32 "name": "missing_dependencies",
33 "description": "There were unsatisfied dependencies, such as shared modules"
35 "name": "install_error",
36 "description": "An error occured during installation"
38 "name": "user_cancelled",
39 "description": "The user canceled the operation"
42 "description": "An invalid Chrome Web Store item ID was provided"
44 "name": "blacklisted",
45 "description": "The given extension is blacklisted"
47 "name": "blocked_by_policy",
48 "description": "The given extension is blocked by management policy"
50 "name": "install_in_progress",
51 "description": "An installation of the same extension is already in progress"
53 "name": "launch_in_progress",
54 "description": "A launch of the same extension is already in progress"
56 "name": "manifest_error",
57 "description": "Parsing of the extension manifest failed"
60 "description": "Failed to retrieve the extension's icon from the Web Store, or the icon was invalid"
62 "name": "invalid_icon_url",
63 "description": "An invalid icon URL was provided"
65 "name": "already_installed",
66 "description": "The extension is already installed"
68 "description": "Whether the API call succeeded, or the reason for failure."
73 "enum": ["webgl_allowed", "webgl_blocked"]
80 "description": "Installs the extension corresponding to the given id",
83 "name": "expected_id",
85 "description": "The id of the extension to install."
96 "name": "beginInstallWithManifest3",
97 "description": "Initiates the install process for the given extension.",
105 "description": "The id of the extension to be installed.",
111 "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.",
117 "desciption": "A URL for the image to display in the confirmation dialog"
122 "description": "An icon as a base64-encoded image, displayed in a confirmation dialog."
127 "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
132 "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."
134 "appInstallBubble": {
137 "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)."
142 "description": "A flag to cause the app launcher to be installed before installing the extension, if it isn't installed already."
147 "description": "The authuser index to be included with CRX download requests in multi-login sessions."
150 "additionalProperties": { "type": "any" }
155 "description": "Called when the user has either accepted/rejected the dialog, or some error occurred (such as invalid manifest or icon image data).",
161 "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'."
169 "name": "completeInstall",
173 "name": "expected_id",
175 "description": "The id of the extension to be installed. This should match a previous call to beginInstallWithManifest3."
186 "name": "installBundle",
187 "description": "Initiates the install process for the given bundle of extensions.",
195 "description": "A title to use for display in a confirmation dialog."
200 "desciption": "A URL for the image to display in the confirmation dialog"
205 "description": "The authuser index to be included with CRX download requests in multi-login sessions."
208 "additionalProperties": { "type": "any" }
212 "description": "An array of extension details to be installed.",
219 "description": "The id of the extension to be installed.",
225 "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.",
231 "desciption": "A URL for the image to display in the confirmation dialog"
235 "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
243 "description": "Called when the install process completes. Upon failures, chrome.runtime.lastError will be set to 'Invalid bundle', 'Invalid icon url', 'This item is already installed', or 'User cancelled install'.",
250 "name": "enableAppLauncher",
262 "name": "getBrowserLogin",
263 "description": "Returns the logged-in sync user login if there is one, or the empty string otherwise.",
274 "login": { "type": "string" }
282 "name": "getStoreLogin",
283 "description": "Returns the previous value set by setStoreLogin, or the empty string if there is none.",
290 { "name": "login", "type": "string" }
296 "name": "setStoreLogin",
297 "description": "Sets a preference value with the store login.",
299 { "name": "login", "type": "string" },
309 "name": "getWebGLStatus",
310 "description": "Invokes a callback that returns whether WebGL is blacklisted or not.",
318 "name": "webgl_status",
319 "$ref": "WebGlStatus"
326 "name": "getIsLauncherEnabled",
327 "description": "Returns whether the apps launcher is enabled or not.",
334 { "name": "is_enabled", "type": "boolean" }
340 "name": "isInIncognitoMode",
341 "description": "Returns whether the browser is in incognito mode or not.",
348 { "name": "is_incognito", "type": "boolean" }
354 "name": "getEphemeralAppsEnabled",
355 "description": "Returns whether the ephemeral apps feature is enabled.",
362 { "name": "is_enabled", "type": "boolean" }
368 "name": "launchEphemeralApp",
369 "description": "Installs an app ephemerally in Chrome (if not already fully installed) and launches the app. A user gesture is required.",
374 "description": "The extension id of the app to launch."
384 "description": "Whether an attempt to launch an app succeeded, or the reason for failure."