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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/test/fake_vr_device.cc
diff --git a/content/browser/vr/test/fake_vr_device.cc b/device/vr/test/fake_vr_device.cc
similarity index 58%
rename from content/browser/vr/test/fake_vr_device.cc
rename to device/vr/test/fake_vr_device.cc
index 50bcd32e334d008ab9f35df9799c326451c1cb1c..41ddec4c51a6c868d5d4b48f019f06fc1ee390de 100644
--- a/content/browser/vr/test/fake_vr_device.cc
+++ b/device/vr/test/fake_vr_device.cc
@@ -2,32 +2,33 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/vr/test/fake_vr_device.h"
+#include "device/vr/test/fake_vr_device.h"
-namespace content {
+namespace device {
FakeVRDevice::FakeVRDevice(VRDeviceProvider* provider) : VRDevice(provider) {
device_ = blink::mojom::VRDisplay::New();
- state_ = blink::mojom::VRPose::New();
+ pose_ = blink::mojom::VRPose::New();
}
-FakeVRDevice::~FakeVRDevice() {
-}
+FakeVRDevice::~FakeVRDevice() {}
void FakeVRDevice::SetVRDevice(const blink::mojom::VRDisplayPtr& device) {
device_ = device.Clone();
}
-void FakeVRDevice::SetSensorState(const blink::mojom::VRPosePtr& state) {
- state_ = state.Clone();
+void FakeVRDevice::SetPose(const blink::mojom::VRPosePtr& pose) {
+ pose_ = pose.Clone();
}
blink::mojom::VRDisplayPtr FakeVRDevice::GetVRDevice() {
return device_.Clone();
}
-blink::mojom::VRPosePtr FakeVRDevice::GetSensorState() {
- return state_.Clone();
+blink::mojom::VRPosePtr FakeVRDevice::GetPose() {
+ return pose_.Clone();
}
-} // namespace content
+void FakeVRDevice::ResetPose() {}
+
+} // namespace device
« 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