Bug 1536265 [wpt PR 15867] - Update interfaces/generic-sensor.idl, a=testonly

Automatic update from web-platform-tests
Update interfaces/generic-sensor.idl (#15867)

Source: https://github.com/tidoust/reffy-reports/blob/e0218fe/whatwg/idl/generic-sensor.idl
Build: https://travis-ci.org/tidoust/reffy-reports/builds/506822321
--

wpt-commits: c96dccf9a11965a17104d87c06f9f7a1641cdfc9
wpt-pr: 15867
This commit is contained in:
autofoolip 2019-03-26 14:45:22 +00:00 коммит произвёл James Graham
Родитель b4b77de256
Коммит b460015001
1 изменённых файлов: 2 добавлений и 62 удалений

Просмотреть файл

@ -3,7 +3,7 @@
// (https://github.com/tidoust/reffy-reports)
// Source: Generic Sensor API (https://w3c.github.io/sensors/)
[SecureContext, Exposed=Window]
[SecureContext, Exposed=(DedicatedWorker, Window)]
interface Sensor : EventTarget {
readonly attribute boolean activated;
readonly attribute boolean hasReading;
@ -20,7 +20,7 @@ dictionary SensorOptions {
};
[Constructor(DOMString type, SensorErrorEventInit errorEventInitDict),
SecureContext, Exposed=Window]
SecureContext, Exposed=(DedicatedWorker, Window)]
interface SensorErrorEvent : Event {
readonly attribute DOMException error;
};
@ -58,63 +58,3 @@ enum MockSensorType {
dictionary MockSensorReadingValues {
};
dictionary AmbientLightReadingValues {
required double? illuminance;
};
dictionary AccelerometerReadingValues {
required double? x;
required double? y;
required double? z;
};
dictionary LinearAccelerationReadingValues : AccelerometerReadingValues {
};
dictionary GravityReadingValues : AccelerometerReadingValues {
};
dictionary GyroscopeReadingValues {
required double? x;
required double? y;
required double? z;
};
dictionary MagnetometerReadingValues {
required double? x;
required double? y;
required double? z;
};
dictionary UncalibratedMagnetometerReadingValues {
required double? x;
required double? y;
required double? z;
required double? xBias;
required double? yBias;
required double? zBias;
};
dictionary AbsoluteOrientationReadingValues {
required FrozenArray<double>? quaternion;
};
dictionary RelativeOrientationReadingValues : AbsoluteOrientationReadingValues {
};
dictionary GeolocationReadingValues {
required double? latitude;
required double? longitude;
required double? altitude;
required double? accuracy;
required double? altitudeAccuracy;
required double? heading;
required double? speed;
};
dictionary ProximityReadingValues {
required double? distance;
required double? max;
required boolean? near;
};