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
24 lines
702 B
Plaintext
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 {
|
|
};
|