ladybird/Libraries/LibWeb/WebXR/XRSystem.idl
Shannon Booth cc6e048bd6 LibWeb+LibIDL: Remove support for #import directives during parsing
These no longer serve any purpose now that we run the IDLGenerator
on all of these files at once.
2026-04-24 20:08:29 +02:00

19 lines
557 B
Text

[Experimental, SecureContext, Exposed=Window] interface XRSystem : EventTarget {
// Methods
Promise<boolean> isSessionSupported(XRSessionMode mode);
[NewObject] Promise<XRSession> requestSession(XRSessionMode mode, optional XRSessionInit options = {});
// Events
[FIXME] attribute EventHandler ondevicechange;
};
[Experimental] enum XRSessionMode {
"inline",
"immersive-vr",
"immersive-ar"
};
[Experimental] dictionary XRSessionInit {
sequence<DOMString> requiredFeatures;
sequence<DOMString> optionalFeatures;
};