Commit c0a3aa9f authored by Josiah K's avatar Josiah K Committed by Commit Bot

Regenerate latest chrome.js and chrome_extensions.js

Steps:
1. Run third_party/closure_compiler/roll_closure_compiler
2. Remove newly added chrome.fileSystemProvider lines (conflicts with definitions in third_party/closure_compiler/externs/file_system_provider.js)
2. Revert README.chromium

Change-Id: I3e7dab78b8694e25e53d20661528a093f13c9844
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2461053
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: default avatarcalamity <calamity@chromium.org>
Auto-Submit: Josiah Krutz <josiahk@google.com>
Cr-Commit-Position: refs/heads/master@{#816430}
parent 53cb0fcd
......@@ -486,6 +486,10 @@ Tab.prototype.mutedInfo;
Tab.prototype.url;
/** @type {string|undefined} */
Tab.prototype.pendingUrl;
// TODO: Make this field optional once dependent projects have been updated.
/** @type {string} */
Tab.prototype.title;
......
......@@ -268,6 +268,34 @@ chrome.accessibilityFeatures.autoclick;
chrome.accessibilityFeatures.virtualKeyboard;
/** @type {!ChromeSetting} */
chrome.accessibilityFeatures.caretHighlight;
/** @type {!ChromeSetting} */
chrome.accessibilityFeatures.cursorHighlight;
/** @type {!ChromeSetting} */
chrome.accessibilityFeatures.cursorColor;
/** @type {!ChromeSetting} */
chrome.accessibilityFeatures.dockedMagnifier;
/** @type {!ChromeSetting} */
chrome.accessibilityFeatures.focusHighlight;
/** @type {!ChromeSetting} */
chrome.accessibilityFeatures.selectToSpeak;
/** @type {!ChromeSetting} */
chrome.accessibilityFeatures.switchAccess;
/** @type {!ChromeSetting} */
chrome.accessibilityFeatures.animationPolicy;
......@@ -2349,7 +2377,7 @@ chrome.enterprise.reportingPrivate.getPersistentSecret = function(callback) {};
* Returns byte string associated with the data item stored in a platform
* specific storage.
* @param {!string} item Item name (can have containers separated by '/').
* @param {(function(!ArrayBuffer): void)=} callback Called back with the
* @param {(function((!ArrayBuffer|undefined)): void)=} callback Called back with the
* response.
*/
chrome.enterprise.reportingPrivate.getDeviceData = function(item, callback) {};
......@@ -2358,7 +2386,7 @@ chrome.enterprise.reportingPrivate.getDeviceData = function(item, callback) {};
* Stores byte string associated with the data item in a platform
* specific storage.
* @param {!string} item Item name (can have containers separated by '/').
* @param {!ArrayBuffer} data Byte string to associate with the data item.
* @param {!ArrayBuffer|undefined} data Byte string to associate with the data item.
* @param {(function(): void)=} callback Called back with the response.
*/
chrome.enterprise.reportingPrivate.setDeviceData = function(
......@@ -2384,6 +2412,7 @@ chrome.enterprise.reportingPrivate.SettingValue = {
* serialNumber: string,
* screenLockSecured: chrome.enterprise.reportingPrivate.SettingValue,
* diskEncrypted: chrome.enterprise.reportingPrivate.SettingValue,
* macAddresses: (!Array<string>|undefined),
* }}
*/
chrome.enterprise.reportingPrivate.DeviceInfo;
......@@ -2628,6 +2657,10 @@ chrome.runtime.Manifest.prototype.manifest_version;
chrome.runtime.Manifest.prototype.description;
/** @type {!Object<string, string>} */
chrome.runtime.Manifest.prototype.icons;
/** @type {!chrome.runtime.Manifest.Oauth2|undefined} */
chrome.runtime.Manifest.prototype.oauth2;
......@@ -2650,6 +2683,9 @@ chrome.runtime.Manifest.prototype.kiosk_only;
*/
chrome.runtime.Manifest.prototype.kiosk_enabled;
/** @type {string|undefined} */
chrome.runtime.Manifest.prototype.replacement_web_app;
/**
......@@ -2756,8 +2792,63 @@ chrome.runtime.sendNativeMessage = function(
/**
*
* @param {function(!Object)} callback
* The operating system chrome is running on.
* @see https://developer.chrome.com/apps/runtime#type-PlatformOs
* @enum {string}
*/
chrome.runtime.PlatformOs = {
ANDROID: '',
CROS: '',
LINUX: '',
MAC: '',
OPENBSD: '',
WIN: '',
};
/**
* The machine's processor architecture.
* @see https://developer.chrome.com/apps/runtime#type-PlatformArch
* @enum {string}
*/
chrome.runtime.PlatformArch = {
ARM: '',
ARM64: '',
MIPS: '',
MIPS64: '',
X86_32: '',
X86_64: '',
};
/**
* The native client architecture.
* @see https://developer.chrome.com/apps/runtime#type-PlatformNaclArch
* @enum {string}
*/
chrome.runtime.PlatformNaclArch = {
ARM: '',
MIPS: '',
MIPS64: '',
X86_32: '',
X86_64: '',
};
/**
* @see https://developer.chrome.com/apps/runtime#type-PlatformInfo
* @typedef {{
* os: !chrome.runtime.PlatformOs,
* arch: !chrome.runtime.PlatformArch,
* nacl_arch: !chrome.runtime.PlatformNaclArch,
* }}
*/
chrome.runtime.PlatformInfo;
/**
* @see https://developer.chrome.com/extensions/runtime#type-PlatformInfo
* @param {function(!chrome.runtime.PlatformInfo)} callback
* @return {undefined}
*/
chrome.runtime.getPlatformInfo = function(callback) {};
......@@ -2778,6 +2869,10 @@ chrome.runtime.onConnect;
chrome.runtime.onConnectExternal;
/** @type {!chrome.runtime.PortEvent} */
chrome.runtime.onConnectNative;
/** @type {!ChromeObjectEvent} */
chrome.runtime.onInstalled;
......@@ -2846,6 +2941,13 @@ chrome.tabs.TabStatus = {
};
/**
* @const {number}
* @see https://developer.chrome.com/extensions/tabs#property-TAB_ID_NONE
*/
chrome.tabs.TAB_ID_NONE = -1;
/**
* @typedef {?{
* code: (string|undefined),
......@@ -3032,8 +3134,8 @@ chrome.tabs.HighlightInfo;
/**
* @see https://developer.chrome.com/extensions/tabs#method-highlight
* @param {!chrome.tabs.HighlightInfo} highlightInfo
* @param {function(!ChromeWindow): void} callback Callback function invoked
* with each appropriate Window.
* @param {function(!ChromeWindow): void=} callback Callback function invoked
* for each window whose tabs were highlighted.
* @return {undefined}
*/
chrome.tabs.highlight = function(highlightInfo, callback) {};
......@@ -4252,6 +4354,20 @@ chrome.management.setLaunchType = function(id, launchType, opt_callback) {};
chrome.management.generateAppForLink = function(url, title, opt_callback) {};
/**
* @param {function():void=} callback
* @return {undefined}
*/
chrome.management.installReplacementWebApp = function(callback) {};
/**
* Event whose listeners take an ExtensionInfo parameter.
* @interface
* @extends {ChromeBaseEvent<function(!ExtensionInfo)>}
*/
function ChromeExtensionInfoEvent() {};
/** @type {!ChromeExtensionInfoEvent} */
chrome.management.onInstalled;
......@@ -4972,6 +5088,57 @@ chrome.input.ime.setComposition = function(parameters, opt_callback) {};
chrome.input.ime.setCursorPosition = function(parameters, opt_callback) {};
/**
* @enum {string}
* @see https://developer.chrome.com/extensions/input.ime#type-AssistiveWindowType
*/
chrome.input.ime.AssistiveWindowType = {
UNDO: '',
};
/**
* Properties of the assistive window.
* @typedef {{
* type: !chrome.input.ime.AssistiveWindowType,
* visible: boolean
* }}
* @see https://developer.chrome.com/extensions/input.ime#type-AssistiveWindowProperties
*/
chrome.input.ime.AssistiveWindowProperties;
/**
* Shows/Hides an assistive window with the given properties.
* @param {{
* contextID: number,
* properties: !chrome.input.ime.AssistiveWindowProperties
* }} parameters
* @param {function(boolean): void=} callback Called when the operation
* completes.
* @see https://developer.chrome.com/extensions/input.ime#method-setAssistiveWindowProperties
*/
chrome.input.ime.setAssistiveWindowProperties = function(
parameters, callback) {};
/**
* @enum {string}
* @see https://developer.chrome.com/extensions/input.ime#type-AssistiveWindowButton
*/
chrome.input.ime.AssistiveWindowButton = {
UNDO: '',
ADD_TO_DICTIONARY: '',
};
/**
* This event is sent when a button in an assistive window is clicked.
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/input.ime#event-onAssistiveWindowButtonClicked
*/
chrome.input.ime.onAssistiveWindowButtonClicked;
/**
* @param {!Object<string,(string|Array<Object<string,(string|boolean)>>)>}
* parameters An object with 'engineID' (string) and 'items'
......@@ -6969,6 +7136,60 @@ chrome.system.display.clearTouchCalibration = function(id) {};
*/
chrome.system.display.onDisplayChanged;
/**
* @const
* @see https://developer.chrome.com/extensions/system_memory
*/
chrome.system.memory = {};
/**
* Get physical memory information.
* @param {function(!chrome.system.memory.MemoryInfo)} callback
* @return {undefined}
*/
chrome.system.memory.getInfo = function(callback) {};
/**
* @constructor
*/
chrome.system.memory.MemoryInfo = function() {};
/** @type {number} */
chrome.system.memory.MemoryInfo.prototype.capacity;
/** @type {number} */
chrome.system.memory.MemoryInfo.prototype.availableCapacity;
/**
* @const
* @see http://developer.chrome.com/apps/system_network.html
*/
chrome.system.network = {};
/**
* @param {function(!Array<!chrome.system.network.NetworkInterface>)} callback
* @return {undefined}
*/
chrome.system.network.getNetworkInterfaces = function(callback) {};
/**
* @interface
*/
chrome.system.network.NetworkInterface = function() {};
/**
* @const {string} The underlying name of the adapter. On *nix, this will
* typically be "eth0", "wlan0", etc.
*/
chrome.system.network.NetworkInterface.prototype.name;
/** @const {string} The available IPv4/6 address. */
chrome.system.network.NetworkInterface.prototype.address;
/** @const {number} The prefix length */
chrome.system.network.NetworkInterface.prototype.prefixLength;
/**
* @const
......@@ -7445,15 +7666,6 @@ ChromeWindow.prototype.state;
ChromeWindow.prototype.alwaysOnTop;
/**
* Event whose listeners take an ExtensionInfo parameter.
* @interface
* @extends {ChromeBaseEvent<function(!ExtensionInfo)>}
*/
function ChromeExtensionInfoEvent() {}
/**
* @see http://developer.chrome.com/extensions/pushMessaging.html
* @const
......@@ -7983,13 +8195,25 @@ ProxyConfig.prototype.mode;
* Listener will receive an object that maps each key to its StorageChange,
* and the namespace ("sync" or "local") of the storage area the changes
* are for.
* @see https://developer.chrome.com/extensions/storage.html
* @see https://developer.chrome.com/extensions/storage#event-onChanged
* @interface
* @extends {ChromeBaseEvent<function(!Object<string, !StorageChange>, string)>}
*/
function StorageChangeEvent() {}
/**
* The event listener for StorageArea receives an Object mapping each
* key that changed to its corresponding StorageChange for that item.
*
* Listener will receive an object that maps each key to its StorageChange.
* @see https://developer.chrome.com/extensions/storage#type-StorageArea
* @interface
* @extends {ChromeBaseEvent<function(!Object<string, !StorageChange>)>}
*/
function StorageAreaChangeEvent() {}
/**
* @see https://developer.chrome.com/extensions/storage.html#type-StorageChange
* @constructor
......@@ -8065,6 +8289,12 @@ StorageArea.prototype.remove = function(keys, opt_callback) {};
StorageArea.prototype.clear = function(opt_callback) {};
/**
* Fired when one or more items change.
* @type {!StorageAreaChangeEvent}
*/
StorageArea.prototype.onChanged;
/**
* @see https://developer.chrome.com/extensions/types.html#type-ChromeSetting
......@@ -10594,6 +10824,20 @@ chrome.inlineInstallPrivate.install = function(id, opt_callback) {};
*/
chrome.inputMethodPrivate = {};
/**
* @enum {string}
*/
chrome.inputMethodPrivate.InputModeType = {
NO_KEYBOARD: '',
TEXT: '',
TEL: '',
URL: '',
EMAIL: '',
NUMERIC: '',
DECIMAL: '',
SEARCH: '',
};
/**
* @enum {string}
......@@ -10638,6 +10882,8 @@ chrome.inputMethodPrivate.InputContext = function() {};
/** @type {number} */
chrome.inputMethodPrivate.InputContext.prototype.contextID;
/** @type {chrome.inputMethodPrivate.InputModeType} */
chrome.inputMethodPrivate.InputContext.prototype.mode;
/** @type {chrome.inputMethodPrivate.InputContextType} */
chrome.inputMethodPrivate.InputContext.prototype.type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment