Chrome: Interface DisplayMode was added

This commit is contained in:
Nikolai Ommundsen
2017-11-21 10:41:31 +01:00
parent bf536af792
commit a8b3331bdc
+31
View File
@@ -959,6 +959,37 @@ declare namespace chrome.system.display {
/** The offset of the display along the connected edge. 0 indicates that the topmost or leftmost corners are aligned. */
offset: number;
}
/**
* @description DisplayMode - Since Chrome 52.
* @export
* @interface DisplayMode
*/
export interface DisplayMode {
/** The display mode width in device independent (user visible) pixels. */
width: number;
/** The display mode height in device independent (user visible) pixels. */
height: number;
/** The display mode width in native pixels. */
widthInNativePixels: number;
/** The display mode height in native pixels. */
heightInNativePixels: number;
/** The display mode UI scale factor. */
uiScale: number;
/** The display mode device scale factor. */
deviceScaleFactor: number;
/** True if the mode is the display's native mode. */
isNative: boolean;
/** True if the display mode is currently selected. */
isSelected: boolean;
}
/**
* @description TouchCalibrationPair - Since Chrome 57.
* @export