https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 330c54de5826e56ea3dfd314574a29043518e7e8 authored by Marcos Cáceres on 08 August 2018, 10:39:23 UTC
Add edenchuang
Tip revision: 330c54d
gyroscope.idl
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the
// "Gyroscope" spec.
// See: https://w3c.github.io/gyroscope/

[Constructor(optional GyroscopeSensorOptions sensorOptions), SecureContext, Exposed=Window]
interface Gyroscope : Sensor {
  readonly attribute double? x;
  readonly attribute double? y;
  readonly attribute double? z;
};

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

dictionary GyroscopeSensorOptions : SensorOptions {
  GyroscopeLocalCoordinateSystem referenceFrame = "device";
};
back to top