mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
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
35 lines
1.2 KiB
Text
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 {
|
|
};
|