https://github.com/web-platform-tests/wpt
Raw File
Tip revision: bff298ef3a29f1fb94968766714aa360da61b00f authored by domfarolino on 25 March 2018, 02:14:31 UTC
Add tests for https://github.com/whatwg/html/pull/3084
Tip revision: bff298e
orientation-sensor.idl
typedef (Float32Array or Float64Array or DOMMatrix) RotationMatrixType;

[SecureContext, Exposed=Window]
interface OrientationSensor : Sensor {
  readonly attribute FrozenArray<double>? quaternion;
  void populateMatrix(RotationMatrixType targetMatrix);
};

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

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

[Constructor(optional OrientationSensorOptions sensorOptions), SecureContext, Exposed=Window]
interface AbsoluteOrientationSensor : OrientationSensor {
};

[Constructor(optional OrientationSensorOptions sensorOptions), SecureContext, Exposed=Window]
interface RelativeOrientationSensor : OrientationSensor {
};
back to top