VRDisplayEvent.webidl (738B)
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/. */ 5 6 enum VRDisplayEventReason { 7 "mounted", 8 "navigation", 9 "requested", 10 "unmounted", 11 }; 12 13 dictionary VRDisplayEventInit : EventInit { 14 required VRDisplay display; 15 VRDisplayEventReason reason; 16 }; 17 18 [Pref="dom.vr.enabled", 19 SecureContext, 20 Exposed=Window] 21 interface VRDisplayEvent : Event { 22 constructor(DOMString type, VRDisplayEventInit eventInitDict); 23 24 readonly attribute VRDisplay display; 25 readonly attribute VRDisplayEventReason? reason; 26 };