From 02ddc69d296850bd8480fb08b836475ef55725a3 Mon Sep 17 00:00:00 2001 From: kaixinjxq Date: Fri, 9 Feb 2018 10:39:34 +0800 Subject: [PATCH] Adapt Gyroscope IDL tests to latest spec --- interfaces/gyroscope.idl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/interfaces/gyroscope.idl b/interfaces/gyroscope.idl index 227a3b96a299e6..86e70a814f844e 100644 --- a/interfaces/gyroscope.idl +++ b/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"; +};