Files
ladybird/Libraries/LibWeb/Internals/XRTest.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

21 lines
740 B
Plaintext

// https://github.com/immersive-web/webxr-test-api/blob/main/explainer.md
[Exposed=Nobody]
partial interface XRSystem {
[SameObject] readonly attribute XRTest test;
};
[Exposed=Nobody]
interface XRTest {
// Simulates connecting a device to the system.
// Used to instantiate a fake device for use in tests.
Promise<FakeXRDevice> simulateDeviceConnection(FakeXRDeviceInit init);
// Simulates a user activation (aka user gesture) for the current scope.
// The activation is only guaranteed to be valid in the provided function and only applies to WebXR
// Device API methods.
undefined simulateUserActivation(Function f);
// Disconnect all fake devices
Promise<undefined> disconnectAllDevices();
};