pub(crate) trait FakeXRDeviceMethods<D: DomTypes> {
    // Required methods
    fn SetViews(
        &self,
        views: Vec<FakeXRViewInit>,
        secondaryViews: Option<Vec<FakeXRViewInit>>,
    ) -> Fallible<()>;
    fn Disconnect(&self, _can_gc: CanGc) -> Rc<D::Promise>;
    fn SetViewerOrigin(
        &self,
        origin: &FakeXRRigidTransformInit,
        emulatedPosition: bool,
    ) -> Fallible<()>;
    fn ClearViewerOrigin(&self);
    fn SetFloorOrigin(&self, origin: &FakeXRRigidTransformInit) -> Fallible<()>;
    fn ClearFloorOrigin(&self);
    fn SetBoundsGeometry(
        &self,
        boundsCoodinates: Vec<FakeXRBoundsPoint>,
    ) -> Fallible<()>;
    fn SimulateResetPose(&self);
    fn SimulateVisibilityChange(&self, state: XRVisibilityState);
    fn SimulateInputSourceConnection(
        &self,
        init: &FakeXRInputSourceInit,
    ) -> Fallible<DomRoot<D::FakeXRInputController>>;
    fn SetWorld(&self, world: &FakeXRWorldInit) -> Fallible<()>;
    fn ClearWorld(&self);
}

Required Methods§

Implementors§