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

Unified Diff: content/browser/vr/test/fake_vr_device.cc

Issue 1967633002: Updated VRService to match the latest Blink WebVR interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And we're back to removing all the array size checks Created 4 years, 7 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 | « content/browser/vr/test/fake_vr_device.h ('k') | content/browser/vr/vr_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/vr/test/fake_vr_device.cc
diff --git a/content/browser/vr/test/fake_vr_device.cc b/content/browser/vr/test/fake_vr_device.cc
index 30d5a117e3e16847d724d11e4d4a0cdb96d9867f..50bcd32e334d008ab9f35df9799c326451c1cb1c 100644
--- a/content/browser/vr/test/fake_vr_device.cc
+++ b/content/browser/vr/test/fake_vr_device.cc
@@ -7,26 +7,26 @@
namespace content {
FakeVRDevice::FakeVRDevice(VRDeviceProvider* provider) : VRDevice(provider) {
- device_ = mojom::VRDeviceInfo::New();
- state_ = mojom::VRSensorState::New();
+ device_ = blink::mojom::VRDisplay::New();
+ state_ = blink::mojom::VRPose::New();
}
FakeVRDevice::~FakeVRDevice() {
}
-void FakeVRDevice::SetVRDevice(const mojom::VRDeviceInfoPtr& device) {
+void FakeVRDevice::SetVRDevice(const blink::mojom::VRDisplayPtr& device) {
device_ = device.Clone();
}
-void FakeVRDevice::SetSensorState(const mojom::VRSensorStatePtr& state) {
+void FakeVRDevice::SetSensorState(const blink::mojom::VRPosePtr& state) {
state_ = state.Clone();
}
-VRDeviceInfoPtr FakeVRDevice::GetVRDevice() {
+blink::mojom::VRDisplayPtr FakeVRDevice::GetVRDevice() {
return device_.Clone();
}
-VRSensorStatePtr FakeVRDevice::GetSensorState() {
+blink::mojom::VRPosePtr FakeVRDevice::GetSensorState() {
return state_.Clone();
}
« no previous file with comments | « content/browser/vr/test/fake_vr_device.h ('k') | content/browser/vr/vr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698