tor-browser

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

accelerometer.idl (912B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Accelerometer (https://w3c.github.io/accelerometer/)
      5 
      6 [SecureContext, Exposed=Window]
      7 interface Accelerometer : Sensor {
      8  constructor(optional AccelerometerSensorOptions options = {});
      9  readonly attribute double? x;
     10  readonly attribute double? y;
     11  readonly attribute double? z;
     12 };
     13 
     14 enum AccelerometerLocalCoordinateSystem { "device", "screen" };
     15 
     16 dictionary AccelerometerSensorOptions : SensorOptions {
     17  AccelerometerLocalCoordinateSystem referenceFrame = "device";
     18 };
     19 
     20 [SecureContext, Exposed=Window]
     21 interface LinearAccelerationSensor : Accelerometer {
     22  constructor(optional AccelerometerSensorOptions options = {});
     23 };
     24 
     25 [SecureContext, Exposed=Window]
     26 interface GravitySensor : Accelerometer {
     27  constructor(optional AccelerometerSensorOptions options = {});
     28 };