From af8d7c2de7dc5d2f844a021b97babfe4e4f839d4 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 24 Jan 2025 15:47:43 -0500 Subject: script: Move code generation and webidl files to new script_bindings crate. (#35157) Signed-off-by: Josh Matthews --- .../script_bindings/webidls/XRInputSourceArray.webidl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 components/script_bindings/webidls/XRInputSourceArray.webidl (limited to 'components/script_bindings/webidls/XRInputSourceArray.webidl') diff --git a/components/script_bindings/webidls/XRInputSourceArray.webidl b/components/script_bindings/webidls/XRInputSourceArray.webidl new file mode 100644 index 00000000000..093eab67ed9 --- /dev/null +++ b/components/script_bindings/webidls/XRInputSourceArray.webidl @@ -0,0 +1,14 @@ +/* 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/#xrinputsourcearray-interface + +[SecureContext, Exposed=Window, Pref="dom_webxr_enabled"] +interface XRInputSourceArray { + iterable; + readonly attribute unsigned long length; + getter XRInputSource(unsigned long index); +}; -- cgit v1.2.3