mirror of
https://github.com/servo/servo.git
synced 2025-07-01 04:23:39 +01:00
28 lines
869 B
Text
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 {
|
|
};
|