Backed out 2 changesets (bug 1908320) for causing wr failures on align-items-baseline...
[gecko.git] / dom / webidl / GamepadPose.webidl
blob055df15930af8339e90e2c1b8e6487b8617e2dba
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origin of this IDL file is
7  * https://w3c.github.io/gamepad/extensions.html#gamepadpose-interface
8  */
10 [Pref="dom.gamepad.extensions.enabled",
11  Exposed=Window]
12 interface GamepadPose
14   readonly attribute boolean hasOrientation;
15   readonly attribute boolean hasPosition;
17   /**
18    * position, linearVelocity, and linearAcceleration are 3-component vectors.
19    * position is relative to a sitting space. Transforming this point with
20    * VRStageParameters.sittingToStandingTransform converts this to standing space.
21    */
22   [Constant, Throws] readonly attribute Float32Array? position;
23   [Constant, Throws] readonly attribute Float32Array? linearVelocity;
24   [Constant, Throws] readonly attribute Float32Array? linearAcceleration;
26   /* orientation is a 4-entry array representing the components of a quaternion. */
27   [Constant, Throws] readonly attribute Float32Array? orientation;
28   /* angularVelocity and angularAcceleration are the components of 3-dimensional vectors. */
29   [Constant, Throws] readonly attribute Float32Array? angularVelocity;
30   [Constant, Throws] readonly attribute Float32Array? angularAcceleration;