Commit eaabf961 authored by Naoki Fukino's avatar Naoki Fukino Committed by Commit Bot

Update closure externs for Chrome API.

Updating closure externs for Chrome API.
(Required by http://crrev.com/c/1989728)
I got the latest externs by running roll_closure_compiler, but I keep
the compiler jar for now since I got multiple compile errors with the
latest compiler.

Bug: 1044378
Test: Ran compiler
Change-Id: I28d10815253ce67db1de7df4c3f839c8300488ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2009600
Commit-Queue: Naoki Fukino <fukino@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733877}
parent b7f5fcd5
...@@ -384,10 +384,18 @@ MessageSender.prototype.id; ...@@ -384,10 +384,18 @@ MessageSender.prototype.id;
MessageSender.prototype.url; MessageSender.prototype.url;
/** @type {string|undefined} */
MessageSender.prototype.nativeApplication;
/** @type {string|undefined} */ /** @type {string|undefined} */
MessageSender.prototype.tlsChannelId; MessageSender.prototype.tlsChannelId;
/** @type {string|undefined} */
MessageSender.prototype.origin;
/** /**
* @enum {string} * @enum {string}
* @see https://developer.chrome.com/extensions/tabs#type-MutedInfoReason * @see https://developer.chrome.com/extensions/tabs#type-MutedInfoReason
......
...@@ -2339,6 +2339,62 @@ chrome.enterprise.reportingPrivate.uploadChromeDesktopReport = function( ...@@ -2339,6 +2339,62 @@ chrome.enterprise.reportingPrivate.uploadChromeDesktopReport = function(
*/ */
chrome.enterprise.reportingPrivate.getDeviceId = function(callback) {}; chrome.enterprise.reportingPrivate.getDeviceId = function(callback) {};
/**
* Returns a random secret stored in a platform specific storage.
* @param {(function(!ArrayBuffer): void)=} callback Called with the result.
*/
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
* response.
*/
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 {(function(): void)=} callback Called back with the response.
*/
chrome.enterprise.reportingPrivate.setDeviceData = function(
item, data, callback) {};
/**
* Represents a device info property type.
* @enum {string}
*/
chrome.enterprise.reportingPrivate.SettingValue = {
UNKNOWN: '',
DISABLED: '',
ENABLED: '',
};
/**
* Type of the object returned by getDeviceInfo.
* @typedef {?{
* osName: string,
* osVersion: string,
* deviceHostName: string,
* deviceModel: string,
* serialNumber: string,
* screenLockSecured: chrome.enterprise.reportingPrivate.SettingValue,
* diskEncrypted: chrome.enterprise.reportingPrivate.SettingValue,
* }}
*/
chrome.enterprise.reportingPrivate.DeviceInfo;
/**
* Returns the device information object.
* @param {(function(!chrome.enterprise.reportingPrivate.DeviceInfo): void)=}
* callback Called back with the response.
*/
chrome.enterprise.reportingPrivate.getDeviceInfo = function(callback) {};
/** /**
* @see https://developer.chrome.com/extensions/extension.html * @see https://developer.chrome.com/extensions/extension.html
* @const * @const
...@@ -2517,6 +2573,10 @@ chrome.runtime.Manifest.prototype.name; ...@@ -2517,6 +2573,10 @@ chrome.runtime.Manifest.prototype.name;
chrome.runtime.Manifest.prototype.version; chrome.runtime.Manifest.prototype.version;
/** @type {string|undefined} */
chrome.runtime.Manifest.prototype.version_name;
/** @type {number|undefined} */ /** @type {number|undefined} */
chrome.runtime.Manifest.prototype.manifest_version; chrome.runtime.Manifest.prototype.manifest_version;
...@@ -4040,7 +4100,7 @@ chrome.management.InstallOptions; ...@@ -4040,7 +4100,7 @@ chrome.management.InstallOptions;
/** /**
* @param {function(!Array<!ExtensionInfo>): void=} opt_callback Optional * @param {function(!Array<!ExtensionInfo>): void=} opt_callback Optional
* callback function. * callback function.
* @return {!Array<!ExtensionInfo>} * @return {undefined}
*/ */
chrome.management.getAll = function(opt_callback) {}; chrome.management.getAll = function(opt_callback) {};
...@@ -7729,6 +7789,10 @@ ChromeKeyboardEvent.prototype.keyCode; ...@@ -7729,6 +7789,10 @@ ChromeKeyboardEvent.prototype.keyCode;
ChromeKeyboardEvent.prototype.altKey; ChromeKeyboardEvent.prototype.altKey;
/** @type {boolean|undefined} */
ChromeKeyboardEvent.prototype.altgrKey;
/** @type {boolean|undefined} */ /** @type {boolean|undefined} */
ChromeKeyboardEvent.prototype.ctrlKey; ChromeKeyboardEvent.prototype.ctrlKey;
...@@ -10564,6 +10628,24 @@ chrome.inputMethodPrivate.InputContext.prototype.focusReason; ...@@ -10564,6 +10628,24 @@ chrome.inputMethodPrivate.InputContext.prototype.focusReason;
chrome.inputMethodPrivate.InputContext.prototype.hasBeenPassword; chrome.inputMethodPrivate.InputContext.prototype.hasBeenPassword;
/**
* Commits the text currently being composed without moving the selected text
* range. This is a no-op if the context is incorrect.
* @param {{
* contextID: number
* }} parameters Parameters for the finishComposingText API call.
* @param {function(): void=} callback Called when the operation completes.
*/
chrome.inputMethodPrivate.finishComposingText = function(
parameters, callback) {};
/**
* Resets the current engine to its initial state. Fires an OnReset event.
*/
chrome.inputMethodPrivate.reset = function() {};
/** /**
* @const * @const
* @see https://goo.gl/7dvJFW * @see https://goo.gl/7dvJFW
......
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