aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/XRInputSourcesChangeEvent.webidl
blob: 25a4885cca390630be46f10dae8d19cc00c5a95c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 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/. */

// skip-unless CARGO_FEATURE_WEBXR

// 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;
};