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

Unified Diff: third_party/WebKit/Source/modules/vr/VRController.cpp

Issue 2041003003: Moved vr_service.mojom from blink to device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed missing mojo dependency in gyp builds 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
Index: third_party/WebKit/Source/modules/vr/VRController.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRController.cpp b/third_party/WebKit/Source/modules/vr/VRController.cpp
index 15e4c500d18cf7ad888d36710e94400c8d934f94..b3bce61997bc4105bd15648a9063121f75f0ef60 100644
--- a/third_party/WebKit/Source/modules/vr/VRController.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRController.cpp
@@ -47,15 +47,15 @@ void VRController::getDisplays(std::unique_ptr<VRGetDevicesCallback> callback)
}
m_pendingGetDevicesCallbacks.append(std::move(callback));
- m_service->GetDisplays(createBaseCallback(bind<mojo::WTFArray<mojom::blink::VRDisplayPtr>>(&VRController::onGetDisplays, this)));
+ m_service->GetDisplays(createBaseCallback(bind<mojo::WTFArray<device::blink::VRDisplayPtr>>(&VRController::onGetDisplays, this)));
}
-mojom::blink::VRPosePtr VRController::getPose(unsigned index)
+device::blink::VRPosePtr VRController::getPose(unsigned index)
{
if (!m_service)
return nullptr;
- mojom::blink::VRPosePtr pose;
+ device::blink::VRPosePtr pose;
m_service->GetPose(index, &pose);
return pose;
}
@@ -72,7 +72,7 @@ void VRController::willDetachFrameHost()
// TODO(kphanee): Detach from the mojo service connection.
}
-void VRController::onGetDisplays(mojo::WTFArray<mojom::blink::VRDisplayPtr> displays)
+void VRController::onGetDisplays(mojo::WTFArray<device::blink::VRDisplayPtr> displays)
{
std::unique_ptr<VRGetDevicesCallback> callback = m_pendingGetDevicesCallbacks.takeFirst();
if (!callback)
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRController.h ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698