https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e263d32f5b42013fe3e9872c6ced147912b10443 authored by Greg Whitworth on 28 June 2017, 01:37:45 UTC
Made more changes based on analysis of tests that were <= 5 tests to a given url hash in flex
Tip revision: e263d32
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