#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "content/services/isolated_xr_device/xr_test_hook_wrapper.h"
#include "base/task/single_thread_task_runner.h"
namespace device {
ControllerRole MojoToDeviceControllerRole(
device_test::mojom::ControllerRole role) { … }
PoseFrameData MojoToDevicePoseFrameData(
device_test::mojom::PoseFrameDataPtr& pose) { … }
device_test::mojom::Eye XrEyeToMojoEye(XrEye eye) { … }
XRTestHookWrapper::XRTestHookWrapper(
mojo::PendingRemote<device_test::mojom::XRTestHook> pending_hook)
: … { … }
void XRTestHookWrapper::OnFrameSubmitted(const std::vector<ViewData>& views) { … }
DeviceConfig XRTestHookWrapper::WaitGetDeviceConfig() { … }
PoseFrameData XRTestHookWrapper::WaitGetPresentingPose() { … }
PoseFrameData XRTestHookWrapper::WaitGetMagicWindowPose() { … }
ControllerRole XRTestHookWrapper::WaitGetControllerRoleForTrackedDeviceIndex(
unsigned int index) { … }
TrackedDeviceClass XRTestHookWrapper::WaitGetTrackedDeviceClass(
unsigned int index) { … }
ControllerFrameData XRTestHookWrapper::WaitGetControllerData(
unsigned int index) { … }
device_test::mojom::EventData XRTestHookWrapper::WaitGetEventData() { … }
bool XRTestHookWrapper::WaitGetCanCreateSession() { … }
void XRTestHookWrapper::AttachCurrentThread() { … }
void XRTestHookWrapper::DetachCurrentThread() { … }
scoped_refptr<base::SingleThreadTaskRunner>
XRTestHookWrapper::GetBoundTaskRunner() { … }
XRTestHookWrapper::~XRTestHookWrapper() = default;
}