OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DEVICE_VR_VR_SERVICE_IMPL_H | 5 #ifndef DEVICE_VR_VR_SERVICE_IMPL_H |
6 #define DEVICE_VR_VR_SERVICE_IMPL_H | 6 #define DEVICE_VR_VR_SERVICE_IMPL_H |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 DEVICE_VR_EXPORT void Bind(mojo::InterfaceRequest<VRService> request); | 33 DEVICE_VR_EXPORT void Bind(mojo::InterfaceRequest<VRService> request); |
34 void RemoveFromDeviceManager(); | 34 void RemoveFromDeviceManager(); |
35 | 35 |
36 // mojom::VRService implementation | 36 // mojom::VRService implementation |
37 void SetClient(VRServiceClientPtr client) override; | 37 void SetClient(VRServiceClientPtr client) override; |
38 void GetDisplays(const GetDisplaysCallback& callback) override; | 38 void GetDisplays(const GetDisplaysCallback& callback) override; |
39 void GetPose(uint32_t index, const GetPoseCallback& callback) override; | 39 void GetPose(uint32_t index, const GetPoseCallback& callback) override; |
40 void ResetPose(uint32_t index) override; | 40 void ResetPose(uint32_t index) override; |
41 | 41 |
42 void RequestPresent(uint32_t index, | 42 void RequestPresent(uint32_t index, |
| 43 bool secureOrigin, |
43 const RequestPresentCallback& callback) override; | 44 const RequestPresentCallback& callback) override; |
44 void ExitPresent(uint32_t index) override; | 45 void ExitPresent(uint32_t index) override; |
45 void SubmitFrame(uint32_t index, VRPosePtr pose) override; | 46 void SubmitFrame(uint32_t index, VRPosePtr pose) override; |
46 void UpdateLayerBounds(uint32_t index, | 47 void UpdateLayerBounds(uint32_t index, |
47 VRLayerBoundsPtr leftBounds, | 48 VRLayerBoundsPtr leftBounds, |
48 VRLayerBoundsPtr rightBounds) override; | 49 VRLayerBoundsPtr rightBounds) override; |
49 | 50 |
50 std::unique_ptr<mojo::Binding<VRService>> binding_; | 51 std::unique_ptr<mojo::Binding<VRService>> binding_; |
51 VRServiceClientPtr client_; | 52 VRServiceClientPtr client_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(VRServiceImpl); | 54 DISALLOW_COPY_AND_ASSIGN(VRServiceImpl); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace device | 57 } // namespace device |
57 | 58 |
58 #endif // DEVICE_VR_VR_SERVICE_IMPL_H | 59 #endif // DEVICE_VR_VR_SERVICE_IMPL_H |
OLD | NEW |