Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: device/vr/vr_device_service_impl.h

Issue 2420743003: mojo VR interface simplified (Closed)
Patch Set: Address bajones@ comments and some clean up Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_VR_VR_DEVICE_SERVICE_IMPL_H
6 #define DEVICE_VR_VR_DEVICE_SERVICE_IMPL_H
7
8 #include <memory>
9
10 #include "base/macros.h"
11
12 #include "device/vr/vr_device.h"
13 #include "device/vr/vr_export.h"
14 #include "device/vr/vr_service.mojom.h"
15 #include "mojo/public/cpp/bindings/binding.h"
16
17 namespace device {
18
19 class VRDeviceServiceImpl : public VRDeviceService {
20 public:
21 VRDeviceServiceImpl(mojo::InterfaceRequest<VRDeviceService> request,
22 VRDevice* device,
23 VRServiceImpl* service);
24
25 private:
26 friend class VRServiceImpl;
27
28 void RegisterDisplayService(VRDisplayServicePtr display_service) override;
29
30 void GetPose(const GetPoseCallback& callback) override;
31 void ResetPose() override;
32
33 void RequestPresent(bool secureOrigin,
34 const RequestPresentCallback& callback) override;
35 void ExitPresent() override;
36 void SubmitFrame(VRPosePtr pose) override;
37 void UpdateLayerBounds(VRLayerBoundsPtr leftBounds,
38 VRLayerBoundsPtr rightBounds) override;
39
40 mojo::Binding<VRDeviceService> binding_;
41 std::unique_ptr<VRDevice> device_;
42 std::unique_ptr<VRServiceImpl> service_;
43 };
44
45 } // namespace device
46
47 #endif // DEVICE_VR_VR_DEVICE_SERVICE_IMPL_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698