window-management.idl (1176B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Window Management (https://w3c.github.io/window-management/) 5 6 partial interface Screen /* : EventTarget */ { 7 [SecureContext] 8 readonly attribute boolean isExtended; 9 10 [SecureContext] 11 attribute EventHandler onchange; 12 }; 13 14 partial interface Window { 15 [SecureContext] 16 Promise<ScreenDetails> getScreenDetails(); 17 }; 18 19 [Exposed=Window, SecureContext] 20 interface ScreenDetails : EventTarget { 21 readonly attribute FrozenArray<ScreenDetailed> screens; 22 readonly attribute ScreenDetailed currentScreen; 23 24 attribute EventHandler onscreenschange; 25 attribute EventHandler oncurrentscreenchange; 26 }; 27 28 [Exposed=Window, SecureContext] 29 interface ScreenDetailed : Screen { 30 readonly attribute long availLeft; 31 readonly attribute long availTop; 32 readonly attribute long left; 33 readonly attribute long top; 34 readonly attribute boolean isPrimary; 35 readonly attribute boolean isInternal; 36 readonly attribute float devicePixelRatio; 37 readonly attribute DOMString label; 38 }; 39 40 partial dictionary FullscreenOptions { 41 ScreenDetailed screen; 42 };