gecko-dev/testing/web-platform/tests/interfaces/orientation-sensor.idl
autofoolip cace2e6c7e Bug 1583505 [wpt PR 19253] - Update interfaces/orientation-sensor.idl, a=testonly
Automatic update from web-platform-tests
Update interfaces/orientation-sensor.idl (#19253)

Source: https://github.com/tidoust/reffy-reports/blob/1c5a999/ed/idl/orientation-sensor.idl
Build: https://travis-ci.org/tidoust/reffy-reports/builds/588932563
--

wpt-commits: 6907c222afcebdc452f2660c91f51d71a7a35723
wpt-pr: 19253
2019-09-26 20:26:14 +00:00

35 lines
1.2 KiB
Text

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Orientation Sensor (https://w3c.github.io/orientation-sensor/)
typedef (Float32Array or Float64Array or DOMMatrix) RotationMatrixType;
[SecureContext, Exposed=Window]
interface OrientationSensor : Sensor {
readonly attribute FrozenArray<double>? quaternion;
void populateMatrix(RotationMatrixType targetMatrix);
};
enum OrientationSensorLocalCoordinateSystem { "device", "screen" };
dictionary OrientationSensorOptions : SensorOptions {
OrientationSensorLocalCoordinateSystem referenceFrame = "device";
};
[SecureContext, Exposed=Window]
interface AbsoluteOrientationSensor : OrientationSensor {
constructor(optional OrientationSensorOptions sensorOptions = {});
};
[SecureContext, Exposed=Window]
interface RelativeOrientationSensor : OrientationSensor {
constructor(optional OrientationSensorOptions sensorOptions = {});
};
dictionary AbsoluteOrientationReadingValues {
required FrozenArray<double>? quaternion;
};
dictionary RelativeOrientationReadingValues : AbsoluteOrientationReadingValues {
};