gecko-dev/testing/web-platform/tests/interfaces/accelerometer.idl
autofoolip c37af2efb0 Bug 1523562 [wpt PR 15124] - Update interfaces/accelerometer.idl, a=testonly
Automatic update from web-platform-tests
Update interfaces/accelerometer.idl (#15124)

Source: https://github.com/tidoust/reffy-reports/blob/2cf7db1/whatwg/idl/accelerometer.idl
Build: https://travis-ci.org/tidoust/reffy-reports/builds/485766725
--

wpt-commits: 0ffc719ae14c963e8ef1bf68879b9763984492dd
wpt-pr: 15124
2019-02-07 21:51:23 +00:00

40 lines
1.1 KiB
Text

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Accelerometer (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 {
};
dictionary AccelerometerReadingValues {
required double? x;
required double? y;
required double? z;
};
dictionary LinearAccelerationReadingValues : AccelerometerReadingValues {
};
dictionary GravityReadingValues : AccelerometerReadingValues {
};