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

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

Issue 2167643003: Refactored VRService interaction and added VRServiceClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Liberal sprinkling of 'u's Created 4 years, 5 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 3fd4469a20b79e3aa2e8e6f8495650d90e2d4bf3..e5171217b39e7d210321f63c509e3454328ed1d5 100644
--- a/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.cpp
@@ -5,13 +5,11 @@
#include "modules/vr/VRGetDevicesCallback.h"
#include "bindings/core/v8/ScriptPromiseResolver.h"
-#include "modules/vr/VRDisplayCollection.h"
namespace blink {
-VRGetDevicesCallback::VRGetDevicesCallback(ScriptPromiseResolver* resolver, VRDisplayCollection* displays)
+VRGetDevicesCallback::VRGetDevicesCallback(ScriptPromiseResolver* resolver)
: m_resolver(resolver)
- , m_displays(displays)
{
}
@@ -19,9 +17,9 @@ VRGetDevicesCallback::~VRGetDevicesCallback()
{
}
-void VRGetDevicesCallback::onSuccess(mojo::WTFArray<device::blink::VRDisplayPtr> displays)
+void VRGetDevicesCallback::onSuccess(VRDisplayVector displays)
{
- m_resolver->resolve(m_displays->updateDisplays(std::move(displays)));
+ m_resolver->resolve(displays);
}
void VRGetDevicesCallback::onError()
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.h ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698