dom/webidl/XRInputSourcesChangeEvent.webidl
author Butkovits Atila <abutkovits@mozilla.com>
Tue, 27 Sep 2022 12:37:10 +0300
changeset 636455 170f356185eb469b153bc62d1a203e66a25a8035
parent 522463 a3426e213b24c1da02ec131ae2fff6f29d04b2a4
permissions -rw-r--r--
Backed out 2 changesets (bug 1655598) for causing Bug 1792435. a=backout Backed out changeset 9eb3b3e7295b (bug 1655598) Backed out changeset 052c6f05c623 (bug 1655598)

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 http://mozilla.org/MPL/2.0/.
 *
 * The origin of this IDL file is
 * https://immersive-web.github.io/webxr/#xrinputsourceschangeevent-interface
 */

[Pref="dom.vr.webxr.enabled", SecureContext, Exposed=Window]
interface XRInputSourcesChangeEvent : Event {
  constructor(DOMString type, XRInputSourcesChangeEventInit eventInitDict);
  [SameObject] readonly attribute XRSession session;
  // TODO: Use FrozenArray once available. (Bug 1236777)
  [Constant, Cached, Frozen]
  readonly attribute sequence<XRInputSource> added;
  // TODO: Use FrozenArray once available. (Bug 1236777)
  [Constant, Cached, Frozen]
  readonly attribute sequence<XRInputSource> removed;
};

dictionary XRInputSourcesChangeEventInit : EventInit {
  required XRSession session;
  // TODO: Use FrozenArray once available. (Bug 1236777)
  required sequence<XRInputSource> added;
  // TODO: Use FrozenArray once available. (Bug 1236777)
  required sequence<XRInputSource> removed;
};