mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Chrome: Interface DisplayMode was added
This commit is contained in:
Vendored
+31
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user