123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918 |
- // Copyright 2022 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- // This file was generated by:
- // tools/json_schema_compiler/compiler.py.
- // NOTE: The format of types has changed. 'FooType' is now
- // 'chrome.developerPrivate.FooType'.
- // Please run the closure compiler before committing changes.
- // See https://chromium.googlesource.com/chromium/src/+/main/docs/closure_compilation.md
- /** @fileoverview Externs generated from namespace: developerPrivate */
- /** @const */
- chrome.developerPrivate = {};
- /**
- * @enum {string}
- */
- chrome.developerPrivate.ItemType = {
- HOSTED_APP: 'hosted_app',
- PACKAGED_APP: 'packaged_app',
- LEGACY_PACKAGED_APP: 'legacy_packaged_app',
- EXTENSION: 'extension',
- THEME: 'theme',
- };
- /**
- * @typedef {{
- * path: string,
- * render_process_id: number,
- * render_view_id: number,
- * incognito: boolean,
- * generatedBackgroundPage: boolean
- * }}
- */
- chrome.developerPrivate.ItemInspectView;
- /**
- * @typedef {{
- * extension_id: string,
- * render_process_id: (string|number),
- * render_view_id: (string|number),
- * incognito: boolean
- * }}
- */
- chrome.developerPrivate.InspectOptions;
- /**
- * @typedef {{
- * message: string
- * }}
- */
- chrome.developerPrivate.InstallWarning;
- /**
- * @enum {string}
- */
- chrome.developerPrivate.ExtensionType = {
- HOSTED_APP: 'HOSTED_APP',
- PLATFORM_APP: 'PLATFORM_APP',
- LEGACY_PACKAGED_APP: 'LEGACY_PACKAGED_APP',
- EXTENSION: 'EXTENSION',
- THEME: 'THEME',
- SHARED_MODULE: 'SHARED_MODULE',
- };
- /**
- * @enum {string}
- */
- chrome.developerPrivate.Location = {
- FROM_STORE: 'FROM_STORE',
- UNPACKED: 'UNPACKED',
- THIRD_PARTY: 'THIRD_PARTY',
- INSTALLED_BY_DEFAULT: 'INSTALLED_BY_DEFAULT',
- UNKNOWN: 'UNKNOWN',
- };
- /**
- * @enum {string}
- */
- chrome.developerPrivate.ViewType = {
- APP_WINDOW: 'APP_WINDOW',
- BACKGROUND_CONTENTS: 'BACKGROUND_CONTENTS',
- COMPONENT: 'COMPONENT',
- EXTENSION_BACKGROUND_PAGE: 'EXTENSION_BACKGROUND_PAGE',
- EXTENSION_DIALOG: 'EXTENSION_DIALOG',
- EXTENSION_GUEST: 'EXTENSION_GUEST',
- EXTENSION_POPUP: 'EXTENSION_POPUP',
- EXTENSION_SERVICE_WORKER_BACKGROUND: 'EXTENSION_SERVICE_WORKER_BACKGROUND',
- TAB_CONTENTS: 'TAB_CONTENTS',
- OFFSCREEN_DOCUMENT: 'OFFSCREEN_DOCUMENT',
- };
- /**
- * @enum {string}
- */
- chrome.developerPrivate.ErrorType = {
- MANIFEST: 'MANIFEST',
- RUNTIME: 'RUNTIME',
- };
- /**
- * @enum {string}
- */
- chrome.developerPrivate.ErrorLevel = {
- LOG: 'LOG',
- WARN: 'WARN',
- ERROR: 'ERROR',
- };
- /**
- * @enum {string}
- */
- chrome.developerPrivate.ExtensionState = {
- ENABLED: 'ENABLED',
- DISABLED: 'DISABLED',
- TERMINATED: 'TERMINATED',
- BLACKLISTED: 'BLACKLISTED',
- };
- /**
- * @enum {string}
- */
- chrome.developerPrivate.CommandScope = {
- GLOBAL: 'GLOBAL',
- CHROME: 'CHROME',
- };
- /**
- * @typedef {{
- * isEnabled: boolean,
- * isActive: boolean
- * }}
- */
- chrome.developerPrivate.AccessModifier;
- /**
- * @typedef {{
- * lineNumber: number,
- * columnNumber: number,
- * url: string,
- * functionName: string
- * }}
- */
- chrome.developerPrivate.StackFrame;
- /**
- * @typedef {{
- * type: !chrome.developerPrivate.ErrorType,
- * extensionId: string,
- * fromIncognito: boolean,
- * source: string,
- * message: string,
- * id: number,
- * manifestKey: string,
- * manifestSpecific: (string|undefined)
- * }}
- */
- chrome.developerPrivate.ManifestError;
- /**
- * @typedef {{
- * type: !chrome.developerPrivate.ErrorType,
- * extensionId: string,
- * fromIncognito: boolean,
- * source: string,
- * message: string,
- * id: number,
- * severity: !chrome.developerPrivate.ErrorLevel,
- * contextUrl: string,
- * occurrences: number,
- * renderViewId: number,
- * renderProcessId: number,
- * canInspect: boolean,
- * stackTrace: !Array<!chrome.developerPrivate.StackFrame>
- * }}
- */
- chrome.developerPrivate.RuntimeError;
- /**
- * @typedef {{
- * suspiciousInstall: boolean,
- * corruptInstall: boolean,
- * updateRequired: boolean,
- * blockedByPolicy: boolean,
- * reloading: boolean,
- * custodianApprovalRequired: boolean,
- * parentDisabledPermissions: boolean
- * }}
- */
- chrome.developerPrivate.DisableReasons;
- /**
- * @typedef {{
- * openInTab: boolean,
- * url: string
- * }}
- */
- chrome.developerPrivate.OptionsPage;
- /**
- * @typedef {{
- * url: string,
- * specified: boolean
- * }}
- */
- chrome.developerPrivate.HomePage;
- /**
- * @typedef {{
- * url: string,
- * renderProcessId: number,
- * renderViewId: number,
- * incognito: boolean,
- * isIframe: boolean,
- * type: !chrome.developerPrivate.ViewType
- * }}
- */
- chrome.developerPrivate.ExtensionView;
- /**
- * @enum {string}
- */
- chrome.developerPrivate.HostAccess = {
- ON_CLICK: 'ON_CLICK',
- ON_SPECIFIC_SITES: 'ON_SPECIFIC_SITES',
- ON_ALL_SITES: 'ON_ALL_SITES',
- };
- /**
- * @typedef {{
- * text: string
- * }}
- */
- chrome.developerPrivate.ControlledInfo;
- /**
- * @typedef {{
- * description: string,
- * keybinding: string,
- * name: string,
- * isActive: boolean,
- * scope: !chrome.developerPrivate.CommandScope,
- * isExtensionAction: boolean
- * }}
- */
- chrome.developerPrivate.Command;
- /**
- * @typedef {{
- * id: string,
- * name: string
- * }}
- */
- chrome.developerPrivate.DependentExtension;
- /**
- * @typedef {{
- * message: string,
- * submessages: !Array<string>
- * }}
- */
- chrome.developerPrivate.Permission;
- /**
- * @typedef {{
- * host: string,
- * granted: boolean
- * }}
- */
- chrome.developerPrivate.SiteControl;
- /**
- * @typedef {{
- * hasAllHosts: boolean,
- * hostAccess: !chrome.developerPrivate.HostAccess,
- * hosts: !Array<!chrome.developerPrivate.SiteControl>
- * }}
- */
- chrome.developerPrivate.RuntimeHostPermissions;
- /**
- * @typedef {{
- * simplePermissions: !Array<!chrome.developerPrivate.Permission>,
- * runtimeHostPermissions: (!chrome.developerPrivate.RuntimeHostPermissions|undefined)
- * }}
- */
- chrome.developerPrivate.Permissions;
- /**
- * @typedef {{
- * blacklistText: (string|undefined),
- * commands: !Array<!chrome.developerPrivate.Command>,
- * controlledInfo: (!chrome.developerPrivate.ControlledInfo|undefined),
- * dependentExtensions: !Array<!chrome.developerPrivate.DependentExtension>,
- * description: string,
- * disableReasons: !chrome.developerPrivate.DisableReasons,
- * errorCollection: !chrome.developerPrivate.AccessModifier,
- * fileAccess: !chrome.developerPrivate.AccessModifier,
- * homePage: !chrome.developerPrivate.HomePage,
- * iconUrl: string,
- * id: string,
- * incognitoAccess: !chrome.developerPrivate.AccessModifier,
- * installWarnings: !Array<string>,
- * launchUrl: (string|undefined),
- * location: !chrome.developerPrivate.Location,
- * locationText: (string|undefined),
- * manifestErrors: !Array<!chrome.developerPrivate.ManifestError>,
- * manifestHomePageUrl: string,
- * mustRemainInstalled: boolean,
- * name: string,
- * offlineEnabled: boolean,
- * optionsPage: (!chrome.developerPrivate.OptionsPage|undefined),
- * path: (string|undefined),
- * permissions: !chrome.developerPrivate.Permissions,
- * prettifiedPath: (string|undefined),
- * runtimeErrors: !Array<!chrome.developerPrivate.RuntimeError>,
- * runtimeWarnings: !Array<string>,
- * state: !chrome.developerPrivate.ExtensionState,
- * type: !chrome.developerPrivate.ExtensionType,
- * updateUrl: string,
- * userMayModify: boolean,
- * version: string,
- * views: !Array<!chrome.developerPrivate.ExtensionView>,
- * webStoreUrl: string,
- * showSafeBrowsingAllowlistWarning: boolean
- * }}
- */
- chrome.developerPrivate.ExtensionInfo;
- /**
- * @typedef {{
- * canLoadUnpacked: boolean,
- * inDeveloperMode: boolean,
- * isDeveloperModeControlledByPolicy: boolean,
- * isIncognitoAvailable: boolean,
- * isChildAccount: boolean
- * }}
- */
- chrome.developerPrivate.ProfileInfo;
- /**
- * @typedef {{
- * id: string,
- * name: string,
- * version: string,
- * description: string,
- * may_disable: boolean,
- * enabled: boolean,
- * isApp: boolean,
- * type: !chrome.developerPrivate.ItemType,
- * allow_activity: boolean,
- * allow_file_access: boolean,
- * wants_file_access: boolean,
- * incognito_enabled: boolean,
- * is_unpacked: boolean,
- * allow_reload: boolean,
- * terminated: boolean,
- * allow_incognito: boolean,
- * icon_url: string,
- * path: (string|undefined),
- * options_url: (string|undefined),
- * app_launch_url: (string|undefined),
- * homepage_url: (string|undefined),
- * update_url: (string|undefined),
- * install_warnings: !Array<!chrome.developerPrivate.InstallWarning>,
- * manifest_errors: !Array<*>,
- * runtime_errors: !Array<*>,
- * offline_enabled: boolean,
- * views: !Array<!chrome.developerPrivate.ItemInspectView>
- * }}
- */
- chrome.developerPrivate.ItemInfo;
- /**
- * @typedef {{
- * includeDisabled: (boolean|undefined),
- * includeTerminated: (boolean|undefined)
- * }}
- */
- chrome.developerPrivate.GetExtensionsInfoOptions;
- /**
- * @typedef {{
- * extensionId: string,
- * fileAccess: (boolean|undefined),
- * incognitoAccess: (boolean|undefined),
- * errorCollection: (boolean|undefined),
- * hostAccess: (!chrome.developerPrivate.HostAccess|undefined)
- * }}
- */
- chrome.developerPrivate.ExtensionConfigurationUpdate;
- /**
- * @typedef {{
- * inDeveloperMode: (boolean|undefined)
- * }}
- */
- chrome.developerPrivate.ProfileConfigurationUpdate;
- /**
- * @typedef {{
- * extensionId: string,
- * commandName: string,
- * scope: (!chrome.developerPrivate.CommandScope|undefined),
- * keybinding: (string|undefined)
- * }}
- */
- chrome.developerPrivate.ExtensionCommandUpdate;
- /**
- * @typedef {{
- * failQuietly: (boolean|undefined),
- * populateErrorForUnpacked: (boolean|undefined)
- * }}
- */
- chrome.developerPrivate.ReloadOptions;
- /**
- * @typedef {{
- * failQuietly: (boolean|undefined),
- * populateError: (boolean|undefined),
- * retryGuid: (string|undefined),
- * useDraggedPath: (boolean|undefined)
- * }}
- */
- chrome.developerPrivate.LoadUnpackedOptions;
- /**
- * @enum {string}
- */
- chrome.developerPrivate.UserSiteSet = {
- PERMITTED: 'PERMITTED',
- RESTRICTED: 'RESTRICTED',
- };
- /**
- * @typedef {{
- * siteList: !chrome.developerPrivate.UserSiteSet,
- * hosts: !Array<string>
- * }}
- */
- chrome.developerPrivate.UserSiteSettingsOptions;
- /**
- * @typedef {{
- * permittedSites: !Array<string>,
- * restrictedSites: !Array<string>
- * }}
- */
- chrome.developerPrivate.UserSiteSettings;
- /**
- * @typedef {{
- * siteList: (!chrome.developerPrivate.UserSiteSet|undefined),
- * numExtensions: number,
- * site: string
- * }}
- */
- chrome.developerPrivate.SiteInfo;
- /**
- * @typedef {{
- * etldPlusOne: string,
- * numExtensions: number,
- * sites: !Array<!chrome.developerPrivate.SiteInfo>
- * }}
- */
- chrome.developerPrivate.SiteGroup;
- /**
- * @typedef {{
- * id: string,
- * siteAccess: !chrome.developerPrivate.HostAccess
- * }}
- */
- chrome.developerPrivate.MatchingExtensionInfo;
- /**
- * @enum {string}
- */
- chrome.developerPrivate.PackStatus = {
- SUCCESS: 'SUCCESS',
- ERROR: 'ERROR',
- WARNING: 'WARNING',
- };
- /**
- * @enum {string}
- */
- chrome.developerPrivate.FileType = {
- LOAD: 'LOAD',
- PEM: 'PEM',
- };
- /**
- * @enum {string}
- */
- chrome.developerPrivate.SelectType = {
- FILE: 'FILE',
- FOLDER: 'FOLDER',
- };
- /**
- * @enum {string}
- */
- chrome.developerPrivate.EventType = {
- INSTALLED: 'INSTALLED',
- UNINSTALLED: 'UNINSTALLED',
- LOADED: 'LOADED',
- UNLOADED: 'UNLOADED',
- VIEW_REGISTERED: 'VIEW_REGISTERED',
- VIEW_UNREGISTERED: 'VIEW_UNREGISTERED',
- ERROR_ADDED: 'ERROR_ADDED',
- ERRORS_REMOVED: 'ERRORS_REMOVED',
- PREFS_CHANGED: 'PREFS_CHANGED',
- WARNINGS_CHANGED: 'WARNINGS_CHANGED',
- COMMAND_ADDED: 'COMMAND_ADDED',
- COMMAND_REMOVED: 'COMMAND_REMOVED',
- PERMISSIONS_CHANGED: 'PERMISSIONS_CHANGED',
- SERVICE_WORKER_STARTED: 'SERVICE_WORKER_STARTED',
- SERVICE_WORKER_STOPPED: 'SERVICE_WORKER_STOPPED',
- };
- /**
- * @typedef {{
- * message: string,
- * item_path: string,
- * pem_path: string,
- * override_flags: number,
- * status: !chrome.developerPrivate.PackStatus
- * }}
- */
- chrome.developerPrivate.PackDirectoryResponse;
- /**
- * @typedef {{
- * name: string
- * }}
- */
- chrome.developerPrivate.ProjectInfo;
- /**
- * @typedef {{
- * event_type: !chrome.developerPrivate.EventType,
- * item_id: string,
- * extensionInfo: (!chrome.developerPrivate.ExtensionInfo|undefined)
- * }}
- */
- chrome.developerPrivate.EventData;
- /**
- * @typedef {{
- * beforeHighlight: string,
- * highlight: string,
- * afterHighlight: string
- * }}
- */
- chrome.developerPrivate.ErrorFileSource;
- /**
- * @typedef {{
- * error: string,
- * path: string,
- * source: (!chrome.developerPrivate.ErrorFileSource|undefined),
- * retryGuid: string
- * }}
- */
- chrome.developerPrivate.LoadError;
- /**
- * @typedef {{
- * extensionId: string,
- * pathSuffix: string,
- * message: string,
- * manifestKey: (string|undefined),
- * manifestSpecific: (string|undefined),
- * lineNumber: (number|undefined)
- * }}
- */
- chrome.developerPrivate.RequestFileSourceProperties;
- /**
- * @typedef {{
- * highlight: string,
- * beforeHighlight: string,
- * afterHighlight: string,
- * title: string,
- * message: string
- * }}
- */
- chrome.developerPrivate.RequestFileSourceResponse;
- /**
- * @typedef {{
- * extensionId: (string|undefined),
- * renderViewId: number,
- * renderProcessId: number,
- * isServiceWorker: (boolean|undefined),
- * incognito: (boolean|undefined),
- * url: (string|undefined),
- * lineNumber: (number|undefined),
- * columnNumber: (number|undefined)
- * }}
- */
- chrome.developerPrivate.OpenDevToolsProperties;
- /**
- * @typedef {{
- * extensionId: string,
- * errorIds: (!Array<number>|undefined),
- * type: (!chrome.developerPrivate.ErrorType|undefined)
- * }}
- */
- chrome.developerPrivate.DeleteExtensionErrorsProperties;
- /**
- * Runs auto update for extensions and apps immediately.
- * @param {function(): void=} callback Called after update check completes.
- */
- chrome.developerPrivate.autoUpdate = function(callback) {};
- /**
- * Returns information of all the extensions and apps installed.
- * @param {!chrome.developerPrivate.GetExtensionsInfoOptions=} options Options
- * to restrict the items returned.
- * @param {function(!Array<!chrome.developerPrivate.ExtensionInfo>): void=}
- * callback Called with extensions info.
- */
- chrome.developerPrivate.getExtensionsInfo = function(options, callback) {};
- /**
- * Returns information of a particular extension.
- * @param {string} id The id of the extension.
- * @param {function(!chrome.developerPrivate.ExtensionInfo): void=} callback
- * Called with the result.
- */
- chrome.developerPrivate.getExtensionInfo = function(id, callback) {};
- /**
- * Returns the size of a particular extension on disk (already formatted).
- * @param {string} id The id of the extension.
- * @param {function(string): void} callback Called with the result.
- */
- chrome.developerPrivate.getExtensionSize = function(id, callback) {};
- /**
- * Returns information of all the extensions and apps installed.
- * @param {boolean} includeDisabled include disabled items.
- * @param {boolean} includeTerminated include terminated items.
- * @param {function(!Array<!chrome.developerPrivate.ItemInfo>): void} callback
- * Called with items info.
- * @deprecated Use getExtensionsInfo
- */
- chrome.developerPrivate.getItemsInfo = function(includeDisabled, includeTerminated, callback) {};
- /**
- * Returns the current profile's configuration.
- * @param {function(!chrome.developerPrivate.ProfileInfo): void} callback
- */
- chrome.developerPrivate.getProfileConfiguration = function(callback) {};
- /**
- * Updates the active profile.
- * @param {!chrome.developerPrivate.ProfileConfigurationUpdate} update The
- * parameters for updating the profile's configuration. Any properties
- * omitted from |update| will not be changed.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.updateProfileConfiguration = function(update, callback) {};
- /**
- * Opens a permissions dialog.
- * @param {string} extensionId The id of the extension to show permissions for.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.showPermissionsDialog = function(extensionId, callback) {};
- /**
- * Reloads a given extension.
- * @param {string} extensionId The id of the extension to reload.
- * @param {!chrome.developerPrivate.ReloadOptions=} options Additional
- * configuration parameters.
- * @param {function((!chrome.developerPrivate.LoadError|undefined)): void=}
- * callback
- */
- chrome.developerPrivate.reload = function(extensionId, options, callback) {};
- /**
- * Modifies an extension's current configuration.
- * @param {!chrome.developerPrivate.ExtensionConfigurationUpdate} update The
- * parameters for updating the extension's configuration. Any properties
- * omitted from |update| will not be changed.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.updateExtensionConfiguration = function(update, callback) {};
- /**
- * Loads a user-selected unpacked item.
- * @param {!chrome.developerPrivate.LoadUnpackedOptions=} options Additional
- * configuration parameters.
- * @param {function((!chrome.developerPrivate.LoadError|undefined)): void=}
- * callback
- */
- chrome.developerPrivate.loadUnpacked = function(options, callback) {};
- /**
- * Installs the file that was dragged and dropped onto the associated page.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.installDroppedFile = function(callback) {};
- /**
- * Notifies the browser that a user began a drag in order to install an
- * extension.
- */
- chrome.developerPrivate.notifyDragInstallInProgress = function() {};
- /**
- * Loads an extension / app.
- * @param {DirectoryEntry} directory The directory to load the extension from.
- * @param {function(string): void} callback
- */
- chrome.developerPrivate.loadDirectory = function(directory, callback) {};
- /**
- * Open Dialog to browse to an entry.
- * @param {!chrome.developerPrivate.SelectType} selectType Select a file or a
- * folder.
- * @param {!chrome.developerPrivate.FileType} fileType Required file type. For
- * example, pem type is for private key and load type is for an unpacked
- * item.
- * @param {function(string): void} callback called with selected item's path.
- */
- chrome.developerPrivate.choosePath = function(selectType, fileType, callback) {};
- /**
- * Pack an extension.
- * @param {string} path
- * @param {string=} privateKeyPath The path of the private key, if one is given.
- * @param {number=} flags Special flags to apply to the loading process, if any.
- * @param {function(!chrome.developerPrivate.PackDirectoryResponse): void=}
- * callback called with the success result string.
- */
- chrome.developerPrivate.packDirectory = function(path, privateKeyPath, flags, callback) {};
- /**
- * Returns true if the profile is managed.
- * @param {function(boolean): void} callback
- */
- chrome.developerPrivate.isProfileManaged = function(callback) {};
- /**
- * Reads and returns the contents of a file related to an extension which caused
- * an error.
- * @param {!chrome.developerPrivate.RequestFileSourceProperties} properties
- * @param {function(!chrome.developerPrivate.RequestFileSourceResponse): void}
- * callback
- */
- chrome.developerPrivate.requestFileSource = function(properties, callback) {};
- /**
- * Open the developer tools to focus on a particular error.
- * @param {!chrome.developerPrivate.OpenDevToolsProperties} properties
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.openDevTools = function(properties, callback) {};
- /**
- * Delete reported extension errors.
- * @param {!chrome.developerPrivate.DeleteExtensionErrorsProperties} properties
- * The properties specifying the errors to remove.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.deleteExtensionErrors = function(properties, callback) {};
- /**
- * Repairs the extension specified.
- * @param {string} extensionId The id of the extension to repair.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.repairExtension = function(extensionId, callback) {};
- /**
- * Shows the options page for the extension specified.
- * @param {string} extensionId The id of the extension to show the options page
- * for.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.showOptions = function(extensionId, callback) {};
- /**
- * Shows the path of the extension specified.
- * @param {string} extensionId The id of the extension to show the path for.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.showPath = function(extensionId, callback) {};
- /**
- * (Un)suspends global shortcut handling.
- * @param {boolean} isSuspended Whether or not shortcut handling should be
- * suspended.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.setShortcutHandlingSuspended = function(isSuspended, callback) {};
- /**
- * Updates an extension command.
- * @param {!chrome.developerPrivate.ExtensionCommandUpdate} update The
- * parameters for updating the extension command.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.updateExtensionCommand = function(update, callback) {};
- /**
- * Adds a new host permission to the extension. The extension will only have
- * access to the host if it is within the requested permissions.
- * @param {string} extensionId The id of the extension to modify.
- * @param {string} host The host to add.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.addHostPermission = function(extensionId, host, callback) {};
- /**
- * Removes a host permission from the extension. This should only be called with
- * a host that the extension has access to.
- * @param {string} extensionId The id of the extension to modify.
- * @param {string} host The host to remove.
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.removeHostPermission = function(extensionId, host, callback) {};
- /**
- * Returns the user specified site settings (which origins can extensions
- * always/never run on) for the current profile.
- * @param {function(!chrome.developerPrivate.UserSiteSettings): void=} callback
- */
- chrome.developerPrivate.getUserSiteSettings = function(callback) {};
- /**
- * Adds hosts to the set of user permitted or restricted sites. If any hosts are
- * in the other set than what's specified in `options`, then they are removed
- * from that set.
- * @param {!chrome.developerPrivate.UserSiteSettingsOptions} options
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.addUserSpecifiedSites = function(options, callback) {};
- /**
- * Removes hosts from the specified set of user permitted or restricted sites.
- * @param {!chrome.developerPrivate.UserSiteSettingsOptions} options
- * @param {function(): void=} callback
- */
- chrome.developerPrivate.removeUserSpecifiedSites = function(options, callback) {};
- /**
- * Returns all hosts specified by user site settings, grouped by each host's
- * eTLD+1.
- * @param {function(!Array<!chrome.developerPrivate.SiteGroup>): void=} callback
- */
- chrome.developerPrivate.getUserAndExtensionSitesByEtld = function(callback) {};
- /**
- * @param {string} site
- * @param {function(!Array<!chrome.developerPrivate.MatchingExtensionInfo>): void=}
- * callback
- */
- chrome.developerPrivate.getMatchingExtensionsForSite = function(site, callback) {};
- /**
- * @param {string} id
- * @param {boolean} enabled
- * @param {function(): void=} callback
- * @deprecated Use management.setEnabled
- */
- chrome.developerPrivate.enable = function(id, enabled, callback) {};
- /**
- * @param {string} extensionId
- * @param {boolean} allow
- * @param {function(): void=} callback
- * @deprecated Use updateExtensionConfiguration
- */
- chrome.developerPrivate.allowIncognito = function(extensionId, allow, callback) {};
- /**
- * @param {string} extensionId
- * @param {boolean} allow
- * @param {function(): void=} callback
- * @deprecated Use updateExtensionConfiguration
- */
- chrome.developerPrivate.allowFileAccess = function(extensionId, allow, callback) {};
- /**
- * @param {!chrome.developerPrivate.InspectOptions} options
- * @param {function(): void=} callback
- * @deprecated Use openDevTools
- */
- chrome.developerPrivate.inspect = function(options, callback) {};
- /**
- * Fired when a item state is changed.
- * @type {!ChromeEvent}
- */
- chrome.developerPrivate.onItemStateChanged;
- /**
- * Fired when the profile's state has changed.
- * @type {!ChromeEvent}
- */
- chrome.developerPrivate.onProfileStateChanged;
- /**
- * Fired when the lists of sites in the user's site settings have changed.
- * @type {!ChromeEvent}
- */
- chrome.developerPrivate.onUserSiteSettingsChanged;
|