diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2020-01-08 18:14:10 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2020-01-09 08:16:25 +0530 |
commit | a90a42012bfcd4393ac447938efadfd5b4583be0 (patch) | |
tree | 59bfa4f121c67402dd1725f8758b6ddd471f3697 /components/script/dom/webidls/XRInputSourcesChangeEvent.webidl | |
parent | 82002765beebed60b737d64b538bc0c33912f0e0 (diff) | |
download | servo-a90a42012bfcd4393ac447938efadfd5b4583be0.tar.gz servo-a90a42012bfcd4393ac447938efadfd5b4583be0.zip |
Add XRInputSourcesChangeEvent
Diffstat (limited to 'components/script/dom/webidls/XRInputSourcesChangeEvent.webidl')
-rw-r--r-- | components/script/dom/webidls/XRInputSourcesChangeEvent.webidl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/components/script/dom/webidls/XRInputSourcesChangeEvent.webidl b/components/script/dom/webidls/XRInputSourcesChangeEvent.webidl new file mode 100644 index 00000000000..aba56f8b0a6 --- /dev/null +++ b/components/script/dom/webidls/XRInputSourcesChangeEvent.webidl @@ -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; +}; |