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": "beginInstallWithManifest3",
30 "description": "Initiates the install process for the given extension.",
38 "description": "The id of the extension to be installled.",
44 "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.",
50 "desciption": "A URL for the image to display in the confirmation dialog"
55 "description": "An icon as a base64-encoded image, displayed in a confirmation dialog."
60 "description": "A string to use instead of the raw value of the 'name' key from manifest.json."
65 "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."
70 "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)."
75 "description": "A flag to cause the app launcher to be installed before installing the extension, if it isn't installed already."
80 "description": "The authuser index to be included with CRX download requests in multi-login sessions."
83 "additionalProperties": { "type": "any" }
88 "description": "Called when the user has either accepted/rejected the dialog, or some error occurred (such as invalid manifest or icon image data).",
94 "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'."
102 "name": "completeInstall",
106 "name": "expected_id",
108 "description": "The id of the extension to be installed. This should match a previous call to beginInstallWithManifest3."
119 "name": "enableAppLauncher",
131 "name": "getBrowserLogin",
132 "description": "Returns the logged-in sync user login if there is one, or the empty string otherwise.",
143 "login": { "type": "string" }
151 "name": "getStoreLogin",
152 "description": "Returns the previous value set by setStoreLogin, or the empty string if there is none.",
159 { "name": "login", "type": "string" }
165 "name": "setStoreLogin",
166 "description": "Sets a preference value with the store login.",
168 { "name": "login", "type": "string" },
178 "name": "getWebGLStatus",
179 "description": "Invokes a callback that returns whether WebGL is blacklisted or not.",
187 "name": "webgl_status",
189 "enum": ["webgl_allowed", "webgl_blocked"]
196 "name": "getIsLauncherEnabled",
197 "description": "Returns whether the apps launcher is enabled or not.",
204 { "name": "is_enabled", "type": "boolean" }
210 "name": "isInIncognitoMode",
211 "description": "Returns whether the browser is in incognito mode or not.",
218 { "name": "is_incognito", "type": "boolean" }
224 "name": "getEphemeralAppsEnabled",
225 "description": "Returns whether the ephemeral apps feature is enabled.",
232 { "name": "is_enabled", "type": "boolean" }
238 "name": "launchEphemeralApp",
239 "description": "Installs an app ephemerally in Chrome (if not already fully installed) and launches the app. A user gesture is required.",
244 "description": "The extension id of the app to launch."
254 "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"],
255 "description": "Whether an attempt to launch an app succeeded, or the reason for failure."