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

14 lines
468 B
Text

[Constructor(optional SensorOptions options), SecureContext, Exposed=Window]
interface Accelerometer : Sensor {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};
[Constructor(optional SensorOptions options), SecureContext, Exposed=Window]
interface LinearAccelerationSensor : Accelerometer {
};
[Constructor(optional SensorOptions options), SecureContext, Exposed=Window]
interface GravitySensor : Accelerometer {
};