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

Side by Side Diff: device/vr/test/fake_vr_device.cc

Issue 2029703002: Moving VR service from /content/browser to /device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added nogncheck to failing include Created 4 years, 6 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
« no previous file with comments | « device/vr/test/fake_vr_device.h ('k') | device/vr/test/fake_vr_device_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/browser/vr/test/fake_vr_device.h" 5 #include "device/vr/test/fake_vr_device.h"
6 6
7 namespace content { 7 namespace device {
8 8
9 FakeVRDevice::FakeVRDevice(VRDeviceProvider* provider) : VRDevice(provider) { 9 FakeVRDevice::FakeVRDevice(VRDeviceProvider* provider) : VRDevice(provider) {
10 device_ = blink::mojom::VRDisplay::New(); 10 device_ = blink::mojom::VRDisplay::New();
11 state_ = blink::mojom::VRPose::New(); 11 pose_ = blink::mojom::VRPose::New();
12 } 12 }
13 13
14 FakeVRDevice::~FakeVRDevice() { 14 FakeVRDevice::~FakeVRDevice() {}
15 }
16 15
17 void FakeVRDevice::SetVRDevice(const blink::mojom::VRDisplayPtr& device) { 16 void FakeVRDevice::SetVRDevice(const blink::mojom::VRDisplayPtr& device) {
18 device_ = device.Clone(); 17 device_ = device.Clone();
19 } 18 }
20 19
21 void FakeVRDevice::SetSensorState(const blink::mojom::VRPosePtr& state) { 20 void FakeVRDevice::SetPose(const blink::mojom::VRPosePtr& pose) {
22 state_ = state.Clone(); 21 pose_ = pose.Clone();
23 } 22 }
24 23
25 blink::mojom::VRDisplayPtr FakeVRDevice::GetVRDevice() { 24 blink::mojom::VRDisplayPtr FakeVRDevice::GetVRDevice() {
26 return device_.Clone(); 25 return device_.Clone();
27 } 26 }
28 27
29 blink::mojom::VRPosePtr FakeVRDevice::GetSensorState() { 28 blink::mojom::VRPosePtr FakeVRDevice::GetPose() {
30 return state_.Clone(); 29 return pose_.Clone();
31 } 30 }
32 31
33 } // namespace content 32 void FakeVRDevice::ResetPose() {}
33
34 } // namespace device
OLDNEW
« no previous file with comments | « device/vr/test/fake_vr_device.h ('k') | device/vr/test/fake_vr_device_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698