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

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

Issue 1918143007: Updated Blink WebVR interfaces to WebVR v1 spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webvr_mojo
Patch Set: Fixed layout test 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
Index: third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.cpp b/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.cpp
index abfe797a23af8a6703ede28435e69e6407cbb587..83d7e929dc55889b3f36d4d6d3bcb383ecb2c4f9 100644
--- a/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.cpp
@@ -5,13 +5,13 @@
#include "modules/vr/VRGetDevicesCallback.h"
#include "bindings/core/v8/ScriptPromiseResolver.h"
-#include "modules/vr/VRHardwareUnitCollection.h"
+#include "modules/vr/VRDisplayCollection.h"
namespace blink {
-VRGetDevicesCallback::VRGetDevicesCallback(ScriptPromiseResolver* resolver, VRHardwareUnitCollection* hardwareUnits)
+VRGetDevicesCallback::VRGetDevicesCallback(ScriptPromiseResolver* resolver, VRDisplayCollection* displays)
: m_resolver(resolver)
- , m_hardwareUnits(hardwareUnits)
+ , m_displays(displays)
{
}
@@ -21,7 +21,7 @@ VRGetDevicesCallback::~VRGetDevicesCallback()
void VRGetDevicesCallback::onSuccess(const WebVector<WebVRDevice>& devices)
{
- m_resolver->resolve(m_hardwareUnits->updateVRHardwareUnits(devices));
+ m_resolver->resolve(m_displays->updateDisplays(devices));
}
void VRGetDevicesCallback::onError()
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.h ('k') | third_party/WebKit/Source/modules/vr/VRHardwareUnit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698