Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / dom / webidl / GamepadPose.webidl
blob4de822e7a738698df4bcecb6c84d5562e4136c23
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  SecureContext]
13 interface GamepadPose
15   readonly attribute boolean hasOrientation;
16   readonly attribute boolean hasPosition;
18   /**
19    * position, linearVelocity, and linearAcceleration are 3-component vectors.
20    * position is relative to a sitting space. Transforming this point with
21    * VRStageParameters.sittingToStandingTransform converts this to standing space.
22    */
23   [Constant, Throws] readonly attribute Float32Array? position;
24   [Constant, Throws] readonly attribute Float32Array? linearVelocity;
25   [Constant, Throws] readonly attribute Float32Array? linearAcceleration;
27   /* orientation is a 4-entry array representing the components of a quaternion. */
28   [Constant, Throws] readonly attribute Float32Array? orientation;
29   /* angularVelocity and angularAcceleration are the components of 3-dimensional vectors. */
30   [Constant, Throws] readonly attribute Float32Array? angularVelocity;
31   [Constant, Throws] readonly attribute Float32Array? angularAcceleration;