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."
116 "additionalProperties": { "type": "any" }
121 "description": "Called when the user has either accepted/rejected the dialog, or some error occurred (such as invalid manifest or icon image data).",
127 "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', 'signin_failed', and 'already_installed'."
135 "name": "completeInstall",
139 "name": "expected_id",
141 "description": "The id of the extension to be installed. This should match a previous call to beginInstallWithManifest3."
152 "name": "enableAppLauncher",
164 "name": "getBrowserLogin",
165 "description": "Returns the logged-in sync user login if there is one, or the empty string otherwise.",
176 "login": { "type": "string" }
184 "name": "getStoreLogin",
185 "description": "Returns the previous value set by setStoreLogin, or the empty string if there is none.",
192 { "name": "login", "type": "string" }
198 "name": "setStoreLogin",
199 "description": "Sets a preference value with the store login.",
201 { "name": "login", "type": "string" },
211 "name": "getWebGLStatus",
212 "description": "Invokes a callback that returns whether WebGL is blacklisted or not.",
220 "name": "webgl_status",
222 "enum": ["webgl_allowed", "webgl_blocked"]
229 "name": "getIsLauncherEnabled",
230 "description": "Returns whether the apps launcher is enabled or not.",
237 { "name": "is_enabled", "type": "boolean" }
243 "name": "isInIncognitoMode",
244 "description": "Returns whether the browser is in incognito mode or not.",
251 { "name": "is_incognito", "type": "boolean" }
258 "description": "Signs the user into Chrome.",
261 "name": "continue_url",
263 "description": "The continue URL to navigate to once sign-in completes."
268 "description": "Called if the user is already signed in or if the sign-in method was invoked incorrectly (e.g. with an invalid continue URL), sign-in is unavailable (e.g. in Incognito), or the API was not called in response to a user gesture. Upon such a failure, chrome.runtime.lastError will be set to 'invalid_continue_url', 'signin_is_disallowed', 'signin_failed', 'merge_session_failed', or 'user_getsure_required'.",