Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update interfaces/generic-sensor.idl #15867

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
64 changes: 2 additions & 62 deletions interfaces/generic-sensor.idl
Expand Up @@ -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;
Expand All @@ -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;
};
Expand Down Expand Up @@ -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;
};