tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

screen-orientation.idl (863B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Screen Orientation (https://w3c.github.io/screen-orientation/)
      5 
      6 partial interface Screen {
      7  [SameObject] readonly attribute ScreenOrientation orientation;
      8 };
      9 
     10 [Exposed=Window]
     11 interface ScreenOrientation : EventTarget {
     12  Promise<undefined> lock(OrientationLockType orientation);
     13  undefined unlock();
     14  readonly attribute OrientationType type;
     15  readonly attribute unsigned short angle;
     16  attribute EventHandler onchange;
     17 };
     18 
     19 enum OrientationLockType {
     20  "any",
     21  "natural",
     22  "landscape",
     23  "portrait",
     24  "portrait-primary",
     25  "portrait-secondary",
     26  "landscape-primary",
     27  "landscape-secondary"
     28 };
     29 
     30 enum OrientationType {
     31  "portrait-primary",
     32  "portrait-secondary",
     33  "landscape-primary",
     34  "landscape-secondary"
     35 };