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
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 enum VRDisplayEventReason {
13 dictionary VRDisplayEventInit : EventInit {
14 required VRDisplay display;
15 VRDisplayEventReason reason;
18 [Pref="dom.vr.enabled",
21 interface VRDisplayEvent : Event {
22 constructor(DOMString type, VRDisplayEventInit eventInitDict);
24 readonly attribute VRDisplay display;
25 readonly attribute VRDisplayEventReason? reason;