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

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

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.h
diff --git a/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.h b/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.h
index 158e665d2a60d50808869174cdb3d1b0d95d793d..37f3338e9261d5a2d35db911298efb796be965ef 100644
--- a/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.h
+++ b/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.h
@@ -6,29 +6,27 @@
#define VRGetDevicesCallback_h
#include "device/vr/vr_service.mojom-blink.h"
+#include "modules/vr/VRDisplay.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebCallbacks.h"
-#include "public/platform/WebVector.h"
namespace blink {
-class VRDisplayCollection;
class ScriptPromiseResolver;
// Success and failure callbacks for getDisplays.
-using WebVRGetDisplaysCallback = WebCallbacks<mojo::WTFArray<device::blink::VRDisplayPtr>, void>;
+using WebVRGetDisplaysCallback = WebCallbacks<VRDisplayVector, void>;
class VRGetDevicesCallback final : public WebVRGetDisplaysCallback {
USING_FAST_MALLOC(VRGetDevicesCallback);
public:
- VRGetDevicesCallback(ScriptPromiseResolver*, VRDisplayCollection*);
+ VRGetDevicesCallback(ScriptPromiseResolver*);
~VRGetDevicesCallback() override;
- void onSuccess(mojo::WTFArray<device::blink::VRDisplayPtr>) override;
+ void onSuccess(VRDisplayVector) override;
void onError() override;
private:
Persistent<ScriptPromiseResolver> m_resolver;
- Persistent<VRDisplayCollection> m_displays;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698