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",
13 "description": "Installs the extension corresponding to the given id",
16 "name": "expected_id",
18 "description": "The id of the extension to install."
29 "name": "installBundle",
30 "description": "Initiates the install process for the given bundle of extensions.",
34 "description": "An array of extension details to be installed.",
41 "description": "The id of the extension to be installed.",
47 "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.",
52 "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
60 "description": "Called when the install process completes. Upon failures, chrome.runtime.lastError will be set to 'user_canceled' or 'unknown_error'.",
67 "name": "beginInstallWithManifest3",
68 "description": "Initiates the install process for the given extension.",
76 "description": "The id of the extension to be installled.",
82 "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.",
88 "desciption": "A URL for the image to display in the confirmation dialog"
93 "description": "An icon as a base64-encoded image, displayed in a confirmation dialog."
98 "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
103 "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."
105 "appInstallBubble": {
108 "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)."
113 "description": "A flag to cause the app launcher to be installed before installing the extension, if it isn't installed already."
118 "description": "The authuser index to be included with CRX download requests in multi-login sessions."
121 "additionalProperties": { "type": "any" }
126 "description": "Called when the user has either accepted/rejected the dialog, or some error occurred (such as invalid manifest or icon image data).",
132 "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'."
140 "name": "completeInstall",
144 "name": "expected_id",
146 "description": "The id of the extension to be installed. This should match a previous call to beginInstallWithManifest3."
157 "name": "enableAppLauncher",
169 "name": "getBrowserLogin",
170 "description": "Returns the logged-in sync user login if there is one, or the empty string otherwise.",
181 "login": { "type": "string" }
189 "name": "getStoreLogin",
190 "description": "Returns the previous value set by setStoreLogin, or the empty string if there is none.",
197 { "name": "login", "type": "string" }
203 "name": "setStoreLogin",
204 "description": "Sets a preference value with the store login.",
206 { "name": "login", "type": "string" },
216 "name": "getWebGLStatus",
217 "description": "Invokes a callback that returns whether WebGL is blacklisted or not.",
225 "name": "webgl_status",
227 "enum": ["webgl_allowed", "webgl_blocked"]
234 "name": "getIsLauncherEnabled",
235 "description": "Returns whether the apps launcher is enabled or not.",
242 { "name": "is_enabled", "type": "boolean" }
248 "name": "isInIncognitoMode",
249 "description": "Returns whether the browser is in incognito mode or not.",
256 { "name": "is_incognito", "type": "boolean" }
262 "name": "getEphemeralAppsEnabled",
263 "description": "Returns whether the ephemeral apps feature is enabled.",
270 { "name": "is_enabled", "type": "boolean" }
276 "name": "launchEphemeralApp",
277 "description": "Installs an app ephemerally in Chrome (if not already fully installed) and launches the app. A user gesture is required.",
282 "description": "The extension id of the app to launch."
292 "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"],
293 "description": "Whether an attempt to launch an app succeeded, or the reason for failure."