Screen.idl 798 B

123456789101112131415161718192021
  1. #import <CSS/ScreenOrientation.idl>
  2. #import <DOM/EventHandler.idl>
  3. #import <DOM/EventTarget.idl>
  4. // https://w3c.github.io/csswg-drafts/cssom-view-1/#screen
  5. [Exposed=Window]
  6. interface Screen : EventTarget {
  7. readonly attribute long availWidth;
  8. readonly attribute long availHeight;
  9. readonly attribute long width;
  10. readonly attribute long height;
  11. readonly attribute unsigned long colorDepth;
  12. readonly attribute unsigned long pixelDepth;
  13. // https://w3c.github.io/screen-orientation/#extensions-to-the-screen-interface
  14. [SameObject] readonly attribute ScreenOrientation orientation;
  15. // https://w3c.github.io/window-management/#api-extensions-to-screen
  16. [SecureContext] readonly attribute boolean isExtended;
  17. [SecureContext] attribute EventHandler onchange;
  18. };