https://github.com/web-platform-tests/wpt
Raw File
Tip revision: a967a92aba4c779546abfb51de01e29972f9a82a authored by Anne van Kesteren on 05 February 2018, 09:22:44 UTC
add some tests (don't address all lint nits just yet)
Tip revision: a967a92
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);
};

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

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