mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update to latest xrtest api
This commit is contained in:
parent
faea7716cf
commit
c19240a454
17 changed files with 269 additions and 190 deletions
|
@ -8,18 +8,28 @@
|
|||
interface XRTest {
|
||||
// Simulates connecting a device to the system.
|
||||
// Used to instantiate a fake device for use in tests.
|
||||
Promise<FakeXRDeviceController> simulateDeviceConnection(FakeXRDeviceInit init);
|
||||
|
||||
// // Simulates a device being disconnected from the system.
|
||||
// Promise<void> simulateDeviceDisconnection(XRDevice);
|
||||
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.
|
||||
// void simulateUserActivation(Function);
|
||||
|
||||
// // Disconnect all fake devices
|
||||
// Promise<void> disconnectAllDevices();
|
||||
};
|
||||
|
||||
dictionary FakeXRDeviceInit {
|
||||
// TODO: Subject to change to match spec changes.
|
||||
required boolean supportsImmersive;
|
||||
required sequence<FakeXRViewInit> views;
|
||||
|
||||
boolean supportsUnbounded = false;
|
||||
// Whether the space supports tracking in inline sessions
|
||||
boolean supportsTrackingInInline = true;
|
||||
// The bounds coordinates. If null, bounded reference spaces are not supported.
|
||||
sequence<FakeXRBoundsPoint> boundsCoodinates;
|
||||
// Eye level used for calculating floor-level spaces
|
||||
float eyeLevel = 1.5;
|
||||
FakeXRRigidTransformInit viewerOrigin;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue