| Index: third_party/closure_compiler/externs/system_display.js
|
| diff --git a/third_party/closure_compiler/externs/system_display.js b/third_party/closure_compiler/externs/system_display.js
|
| index a37c094e174c75f9e972d40a6992a080ec6a0c97..f59d976472d20ca14bb871ad820e17dd1c3e3215 100644
|
| --- a/third_party/closure_compiler/externs/system_display.js
|
| +++ b/third_party/closure_compiler/externs/system_display.js
|
| @@ -117,6 +117,7 @@ chrome.system.display.DisplayLayout;
|
| * isPrimary: boolean,
|
| * isInternal: boolean,
|
| * isEnabled: boolean,
|
| + * isUnified: boolean,
|
| * dpiX: number,
|
| * dpiY: number,
|
| * rotation: number,
|
| @@ -132,6 +133,7 @@ chrome.system.display.DisplayUnitInfo;
|
|
|
| /**
|
| * @typedef {{
|
| + * isUnified: (boolean|undefined),
|
| * mirroringSourceId: (string|undefined),
|
| * isPrimary: (boolean|undefined),
|
| * overscan: (!chrome.system.display.Insets|undefined),
|
| @@ -145,17 +147,28 @@ chrome.system.display.DisplayUnitInfo;
|
| chrome.system.display.DisplayProperties;
|
|
|
| /**
|
| - * Get the information of all attached display devices.
|
| + * @typedef {{
|
| + * singleUnified: (boolean|undefined)
|
| + * }}
|
| + * @see https://developer.chrome.com/extensions/system.display#type-GetInfoFlags
|
| + */
|
| +chrome.system.display.GetInfoFlags;
|
| +
|
| +/**
|
| + * Requests the information for all attached display devices.
|
| + * @param {!chrome.system.display.GetInfoFlags} flags Options affecting how the
|
| + * information is returned.
|
| * @param {function(!Array<!chrome.system.display.DisplayUnitInfo>):void}
|
| - * callback
|
| + * callback The callback to invoke with the results.
|
| * @see https://developer.chrome.com/extensions/system.display#method-getInfo
|
| */
|
| -chrome.system.display.getInfo = function(callback) {};
|
| +chrome.system.display.getInfo = function(flags, callback) {};
|
|
|
| /**
|
| - * Get the layout info for all displays. NOTE: This is only available to Chrome
|
| - * OS Kiosk apps and Web UI.
|
| + * Requests the layout info for all displays. NOTE: This is only available to
|
| + * Chrome OS Kiosk apps and Web UI.
|
| * @param {function(!Array<!chrome.system.display.DisplayLayout>):void} callback
|
| + * The callback to invoke with the results.
|
| * @see https://developer.chrome.com/extensions/system.display#method-getDisplayLayout
|
| */
|
| chrome.system.display.getDisplayLayout = function(callback) {};
|
| @@ -238,13 +251,17 @@ chrome.system.display.overscanCalibrationReset = function(id) {};
|
| chrome.system.display.overscanCalibrationComplete = function(id) {};
|
|
|
| /**
|
| - * Starts native touch calibration for a display. This will show an overlay on
|
| - * the screen and initialize the UX for touch calibration. If another native
|
| - * touch calibration is already in progress this will throw an error.
|
| + * Displays the native touch calibration UX for the display with |id| as display
|
| + * id. This will show an overlay on the screen with required instructions on how
|
| + * to proceed. The callback will be invoked in case of successful calibraion
|
| + * only. If the calibration fails, this will throw an error.
|
| * @param {string} id The display's unique identifier.
|
| + * @param {function(boolean):void=} callback Optional callback to inform the
|
| + * caller that the touch calibration has ended. The argument of the
|
| + * callback informs if the calibration was a success or not.
|
| * @see https://developer.chrome.com/extensions/system.display#method-showNativeTouchCalibration
|
| */
|
| -chrome.system.display.showNativeTouchCalibration = function(id) {};
|
| +chrome.system.display.showNativeTouchCalibration = function(id, callback) {};
|
|
|
| /**
|
| * Starts custom touch calibration for a display. This should be called when
|
| @@ -264,15 +281,16 @@ chrome.system.display.startCustomTouchCalibration = function(id) {};
|
| * @param {!chrome.system.display.TouchCalibrationPairQuad} pairs The pairs of
|
| * point used to calibrate the display.
|
| * @param {!chrome.system.display.Bounds} bounds Bounds of the display when the
|
| - * touch calibration was performed. |bounds.left| and |bounds.top|
|
| + * touch calibration was performed. |bounds.left| and |bounds.top|
|
| * values are ignored.
|
| * @see https://developer.chrome.com/extensions/system.display#method-completeCustomTouchCalibration
|
| */
|
| chrome.system.display.completeCustomTouchCalibration = function(pairs, bounds) {};
|
|
|
| /**
|
| - * Resets the touch calibration for the display and removes the saved
|
| - * calibration data.
|
| + * Resets the touch calibration for the display and brings it back to its
|
| + * default state by clearing any touch calibration data associated with the
|
| + * display.
|
| * @param {string} id The display's unique identifier.
|
| * @see https://developer.chrome.com/extensions/system.display#method-clearTouchCalibration
|
| */
|
|
|