| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "device/vr/test/fake_vr_device.h" | 5 #include "device/vr/test/fake_vr_device.h" |
| 6 | 6 |
| 7 namespace device { | 7 namespace device { |
| 8 | 8 |
| 9 FakeVRDevice::FakeVRDevice() { | 9 FakeVRDevice::FakeVRDevice() { |
| 10 device_ = mojom::VRDisplayInfo::New(); | 10 device_ = mojom::VRDisplayInfo::New(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 mojom::VRDisplayInfoPtr display = device_.Clone(); | 63 mojom::VRDisplayInfoPtr display = device_.Clone(); |
| 64 return display.Clone(); | 64 return display.Clone(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 mojom::VRPosePtr FakeVRDevice::GetPose() { | 67 mojom::VRPosePtr FakeVRDevice::GetPose() { |
| 68 return pose_.Clone(); | 68 return pose_.Clone(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void FakeVRDevice::ResetPose() {} | 71 void FakeVRDevice::ResetPose() {} |
| 72 | 72 |
| 73 // TODO(shaobo.yan@intel.com): Will implemenate for VRDeviceServiceImpl tests. | |
| 74 void FakeVRDevice::RequestPresent(const base::Callback<void(bool)>& callback) { | 73 void FakeVRDevice::RequestPresent(const base::Callback<void(bool)>& callback) { |
| 75 callback.Run(true); | 74 callback.Run(true); |
| 76 } | 75 } |
| 77 | 76 |
| 78 void FakeVRDevice::SetSecureOrigin(bool secure_origin) {} | 77 void FakeVRDevice::SetSecureOrigin(bool secure_origin) {} |
| 79 | 78 |
| 80 void FakeVRDevice::ExitPresent() { | 79 void FakeVRDevice::ExitPresent() { |
| 81 OnExitPresent(); | 80 OnExitPresent(); |
| 82 } | 81 } |
| 83 | 82 |
| 84 void FakeVRDevice::SubmitFrame(mojom::VRPosePtr pose) {} | 83 void FakeVRDevice::SubmitFrame(mojom::VRPosePtr pose) {} |
| 85 | 84 |
| 86 void FakeVRDevice::UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds, | 85 void FakeVRDevice::UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds, |
| 87 mojom::VRLayerBoundsPtr rightBounds) {} | 86 mojom::VRLayerBoundsPtr rightBounds) {} |
| 88 | 87 |
| 89 } // namespace device | 88 } // namespace device |
| OLD | NEW |