mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add XRInputSourcesChangeEvent
This commit is contained in:
parent
82002765be
commit
a90a42012b
3 changed files with 136 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://immersive-web.github.io/webxr/#xrinputsourceschangedevent-interface
|
||||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.test"]
|
||||
interface XRInputSourcesChangeEvent : Event {
|
||||
constructor(DOMString type, XRInputSourcesChangeEventInit eventInitDict);
|
||||
[SameObject] readonly attribute XRSession session;
|
||||
/* [SameObject] */ readonly attribute /* FrozenArray<XRInputSource> */ any added;
|
||||
/* [SameObject] */ readonly attribute /* FrozenArray<XRInputSource> */ any removed;
|
||||
};
|
||||
|
||||
dictionary XRInputSourcesChangeEventInit : EventInit {
|
||||
required XRSession session;
|
||||
required sequence<XRInputSource> added;
|
||||
required sequence<XRInputSource> removed;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue