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": "showPermissionPromptForDelegatedInstall",
187 "description": "Shows a permission prompt for the given extension, for installing to a different account.",
195 "description": "The id of the extension to be installled.",
201 "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.",
206 "description": "The display name of the user for whom the extension should be installed."
211 "desciption": "A URL for the image to display in the confirmation dialog"
216 "description": "An icon as a base64-encoded image, displayed in a confirmation dialog."
221 "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
228 "description": "Called when the user has either accepted/rejected the dialog, or some error occurred (such as invalid manifest or icon image data).",
234 "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', and 'invalid_icon_url'."
241 "name": "installBundle",
242 "description": "Initiates the install process for the given bundle of extensions.",
250 "description": "A title to use for display in a confirmation dialog."
255 "desciption": "A URL for the image to display in the confirmation dialog"
260 "description": "The authuser index to be included with CRX download requests in multi-login sessions."
263 "additionalProperties": { "type": "any" }
267 "description": "An array of extension details to be installed.",
274 "description": "The id of the extension to be installed.",
280 "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.",
286 "desciption": "A URL for the image to display in the confirmation dialog"
290 "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
298 "description": "Called when the install process completes. Upon failures, chrome.runtime.lastError will be set to 'Invalid id', 'User cancelled install', or 'Unknown error'.",
305 "name": "enableAppLauncher",
317 "name": "getBrowserLogin",
318 "description": "Returns the logged-in sync user login if there is one, or the empty string otherwise.",
329 "login": { "type": "string" }
337 "name": "getStoreLogin",
338 "description": "Returns the previous value set by setStoreLogin, or the empty string if there is none.",
345 { "name": "login", "type": "string" }
351 "name": "setStoreLogin",
352 "description": "Sets a preference value with the store login.",
354 { "name": "login", "type": "string" },
364 "name": "getWebGLStatus",
365 "description": "Invokes a callback that returns whether WebGL is blacklisted or not.",
373 "name": "webgl_status",
374 "$ref": "WebGlStatus"
381 "name": "getIsLauncherEnabled",
382 "description": "Returns whether the apps launcher is enabled or not.",
389 { "name": "is_enabled", "type": "boolean" }
395 "name": "isInIncognitoMode",
396 "description": "Returns whether the browser is in incognito mode or not.",
403 { "name": "is_incognito", "type": "boolean" }
409 "name": "getEphemeralAppsEnabled",
410 "description": "Returns whether the ephemeral apps feature is enabled.",
417 { "name": "is_enabled", "type": "boolean" }
423 "name": "launchEphemeralApp",
424 "description": "Installs an app ephemerally in Chrome (if not already fully installed) and launches the app. A user gesture is required.",
429 "description": "The extension id of the app to launch."
439 "description": "Whether an attempt to launch an app succeeded, or the reason for failure."