Skip to content

Commit

Permalink
Merge pull request #9449 from kaixinjxq/Sensor_gyroscope
Browse files Browse the repository at this point in the history
Adapt Gyroscope IDL tests to latest spec
  • Loading branch information
Honry committed Feb 15, 2018
2 parents 38fe6c6 + 02ddc69 commit b16e840
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion interfaces/gyroscope.idl
@@ -1,6 +1,12 @@
[Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window]
[Constructor(optional GyroscopeSensorOptions sensorOptions), SecureContext, Exposed=Window]
interface Gyroscope : Sensor {
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};

enum LocalCoordinateSystem { "device", "screen" };

dictionary GyroscopeSensorOptions : SensorOptions {
LocalCoordinateSystem referenceFrame = "device";
};

0 comments on commit b16e840

Please sign in to comment.