servo/tests/wpt/web-platform-tests/interfaces/accelerometer.idl

28 lines
869 B
Text

// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the
// "Accelerometer" spec.
// See: https://w3c.github.io/accelerometer/
[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 {
};