| Index: device/vr/vr_device_client_impl.h
|
| diff --git a/device/vr/vr_device_client_impl.h b/device/vr/vr_device_client_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1d2418e2725da826dff2c4aa48dda1b2c8c83d7b
|
| --- /dev/null
|
| +++ b/device/vr/vr_device_client_impl.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef DEVICE_VR_VR_DEVICE_SERVICE_IMPL_H
|
| +#define DEVICE_VR_VR_DEVICE_SERVICE_IMPL_H
|
| +
|
| +#include <memory>
|
| +
|
| +#include "base/macros.h"
|
| +
|
| +#include "device/vr/vr_device.h"
|
| +#include "device/vr/vr_export.h"
|
| +#include "device/vr/vr_service.mojom.h"
|
| +#include "mojo/public/cpp/bindings/binding.h"
|
| +
|
| +namespace device {
|
| +
|
| +class VRDeviceClientImpl : public mojom::VRDevice {
|
| + public:
|
| + VRDeviceClientImpl(mojo::InterfaceRequest<mojom::VRDevice> request,
|
| + device::VRDevice* device,
|
| + VRServiceImpl* service);
|
| +
|
| + private:
|
| + friend class VRServiceImpl;
|
| +
|
| + void GetPose(const GetPoseCallback& callback) override;
|
| + void ResetPose() override;
|
| +
|
| + void RequestPresent(bool secureOrigin,
|
| + const RequestPresentCallback& callback) override;
|
| + void ExitPresent() override;
|
| + void SubmitFrame(mojom::VRPosePtr pose) override;
|
| + void UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds,
|
| + mojom::VRLayerBoundsPtr rightBounds) override;
|
| +
|
| + mojo::Binding<mojom::VRDevice> binding_;
|
| + std::unique_ptr<device::VRDevice> device_;
|
| + std::unique_ptr<VRServiceImpl> service_;
|
| +};
|
| +
|
| +} // namespace device
|
| +
|
| +#endif // DEVICE_VR_VR_DEVICE_SERVICE_IMPL_H
|
|
|