Files
tubestation/testing/web-platform/tests/interfaces/accelerometer.idl
Raphael Kubo da Costa 569c5c0734 Bug 1444940 [wpt PR 9949] - accelerometer: Rename LocalCoordinateSystem to AccelerometerLocalCoordinateSystem, a=testonly
Automatic update from web-platform-testsaccelerometer: Rename LocalCoordinateSystem to AccelerometerLocalCoordinateSystem (#9949)

Adapt to w3c/accelerometer#42.

wpt-commits: e4899e9e89673fe9b213ec71bbe3f249a5a817bd
wpt-pr: 9949
wpt-commits: e4899e9e89673fe9b213ec71bbe3f249a5a817bd
wpt-pr: 9949
2018-03-31 22:34:02 +01:00

24 lines
702 B
Plaintext

[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 {
};