https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1e7d904d39eeb95877e4ae60011ca2ab874d5f7f authored by Anne van Kesteren on 11 May 2018, 06:10:04 UTC
add variants where .close() is called
Tip revision: 1e7d904
accelerometer.idl
[Constructor(optional AccelerometerSensorOptions options), SecureContext,
  Exposed=Window]
interface Accelerometer : Sensor {
  readonly attribute double? x;
  readonly attribute double? y;
  readonly attribute double? z;
};

enum AccelerometerLocalCoordinateSystem { "device", "screen" };

dictionary AccelerometerSensorOptions : SensorOptions {
  AccelerometerLocalCoordinateSystem referenceFrame = "device";
};

[Constructor(optional AccelerometerSensorOptions options), SecureContext,
  Exposed=Window]
interface LinearAccelerationSensor : Accelerometer {
};

[Constructor(optional AccelerometerSensorOptions options), SecureContext,
  Exposed=Window]
interface GravitySensor : Accelerometer {
};
back to top