mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
Automatic update from web-platform-tests Update interfaces/accelerometer.idl (#19388) Source: https://github.com/tidoust/reffy-reports/blob/9fb7b4a/ed/idl/accelerometer.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/591019009 -- wpt-commits: 370aa82342355b99fff0b45448ac95636ec11861 wpt-pr: 19388
40 lines
1.2 KiB
Text
40 lines
1.2 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/)
|
|
|
|
[SecureContext, Exposed=Window]
|
|
interface Accelerometer : Sensor {
|
|
constructor(optional AccelerometerSensorOptions options = {});
|
|
readonly attribute double? x;
|
|
readonly attribute double? y;
|
|
readonly attribute double? z;
|
|
};
|
|
|
|
enum AccelerometerLocalCoordinateSystem { "device", "screen" };
|
|
|
|
dictionary AccelerometerSensorOptions : SensorOptions {
|
|
AccelerometerLocalCoordinateSystem referenceFrame = "device";
|
|
};
|
|
|
|
[SecureContext, Exposed=Window]
|
|
interface LinearAccelerationSensor : Accelerometer {
|
|
constructor(optional AccelerometerSensorOptions options = {});
|
|
};
|
|
|
|
[SecureContext, Exposed=Window]
|
|
interface GravitySensor : Accelerometer {
|
|
constructor(optional AccelerometerSensorOptions options = {});
|
|
};
|
|
|
|
dictionary AccelerometerReadingValues {
|
|
required double? x;
|
|
required double? y;
|
|
required double? z;
|
|
};
|
|
|
|
dictionary LinearAccelerationReadingValues : AccelerometerReadingValues {
|
|
};
|
|
|
|
dictionary GravityReadingValues : AccelerometerReadingValues {
|
|
};
|