2024-04-02 17:44:05 -03:00
|
|
|
#import <CSS/ScreenOrientation.idl>
|
2024-04-05 13:15:43 -03:00
|
|
|
#import <DOM/EventHandler.idl>
|
|
|
|
|
#import <DOM/EventTarget.idl>
|
2024-04-02 17:44:05 -03:00
|
|
|
|
2022-10-07 19:45:09 -03:00
|
|
|
// https://w3c.github.io/csswg-drafts/cssom-view-1/#screen
|
|
|
|
|
[Exposed=Window]
|
2024-11-26 09:48:53 -03:00
|
|
|
interface Screen {
|
2021-04-03 19:14:39 -03:00
|
|
|
readonly attribute long availWidth;
|
|
|
|
|
readonly attribute long availHeight;
|
|
|
|
|
readonly attribute long width;
|
|
|
|
|
readonly attribute long height;
|
|
|
|
|
readonly attribute unsigned long colorDepth;
|
|
|
|
|
readonly attribute unsigned long pixelDepth;
|
2024-04-02 17:44:05 -03:00
|
|
|
|
|
|
|
|
// https://w3c.github.io/screen-orientation/#extensions-to-the-screen-interface
|
|
|
|
|
[SameObject] readonly attribute ScreenOrientation orientation;
|
2024-04-05 13:15:43 -03:00
|
|
|
|
|
|
|
|
// https://w3c.github.io/window-management/#api-extensions-to-screen
|
|
|
|
|
[SecureContext] readonly attribute boolean isExtended;
|
|
|
|
|
[SecureContext] attribute EventHandler onchange;
|
2021-04-03 19:14:39 -03:00
|
|
|
};
|