ladybird/Libraries/LibWeb/WebXR/XRSession.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

39 lines
1.6 KiB
Text

[Experimental] enum XRVisibilityState {
"visible",
"visible-blurred",
"hidden",
};
[Experimental, SecureContext, Exposed=Window] interface XRSession : EventTarget {
// Attributes
[FIXME] readonly attribute XRVisibilityState visibilityState;
[FIXME] readonly attribute float? frameRate;
[FIXME] readonly attribute Float32Array? supportedFrameRates;
[FIXME, SameObject] readonly attribute XRRenderState renderState;
[FIXME, SameObject] readonly attribute XRInputSourceArray inputSources;
[FIXME, SameObject] readonly attribute XRInputSourceArray trackedSources;
[FIXME] readonly attribute FrozenArray<DOMString> enabledFeatures;
[FIXME] readonly attribute boolean isSystemKeyboardSupported;
// Methods
undefined updateRenderState(optional XRRenderStateInit state = {});
[FIXME] Promise<undefined> updateTargetFrameRate(float rate);
[FIXME, NewObject] Promise<XRReferenceSpace> requestReferenceSpace(XRReferenceSpaceType type);
[FIXME] unsigned long requestAnimationFrame(XRFrameRequestCallback callback);
[FIXME] undefined cancelAnimationFrame(unsigned long handle);
Promise<undefined> end();
// Events
attribute EventHandler onend;
[FIXME] attribute EventHandler oninputsourceschange;
[FIXME] attribute EventHandler onselect;
[FIXME] attribute EventHandler onselectstart;
[FIXME] attribute EventHandler onselectend;
[FIXME] attribute EventHandler onsqueeze;
[FIXME] attribute EventHandler onsqueezestart;
[FIXME] attribute EventHandler onsqueezeend;
[FIXME] attribute EventHandler onvisibilitychange;
[FIXME] attribute EventHandler onframeratechange;
};