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/.
6 * The origin of this IDL file is
7 * https://immersive-web.github.io/webxr/#xrreferencespaceevent-interface
10 [Pref="dom.vr.webxr.enabled", SecureContext, Exposed=Window]
11 interface XRReferenceSpaceEvent : Event {
12 constructor(DOMString type, XRReferenceSpaceEventInit eventInitDict);
13 [SameObject] readonly attribute XRReferenceSpace referenceSpace;
14 [SameObject] readonly attribute XRRigidTransform? transform;
17 dictionary XRReferenceSpaceEventInit : EventInit {
18 required XRReferenceSpace referenceSpace;
20 * Changed from "XRRigidTransform transform;" in order to work with the
21 * event code generation.
23 XRRigidTransform? transform = null;