mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
23 lines
702 B
Text
23 lines
702 B
Text
[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 {
|
|
};
|