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

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

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
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 e7192b46baab3c4f4e7569c02029c75f4898ffb8..9cbe5575ece6c571cebf9071e9244ca02bc0e761 100644
--- a/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.h
+++ b/third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.h
@@ -15,15 +15,15 @@ namespace blink {
class VRDisplayCollection;
class ScriptPromiseResolver;
-// Success and failure callbacks for getDevices.
-using WebVRGetDevicesCallback = WebCallbacks<mojo::WTFArray<mojom::blink::VRDeviceInfoPtr>, void>;
-class VRGetDevicesCallback final : public WebVRGetDevicesCallback {
+// Success and failure callbacks for getDisplays.
+using WebVRGetDisplaysCallback = WebCallbacks<mojo::WTFArray<mojom::blink::VRDisplayPtr>, void>;
+class VRGetDevicesCallback final : public WebVRGetDisplaysCallback {
USING_FAST_MALLOC(VRGetDevicesCallback);
public:
VRGetDevicesCallback(ScriptPromiseResolver*, VRDisplayCollection*);
~VRGetDevicesCallback() override;
- void onSuccess(mojo::WTFArray<mojom::blink::VRDeviceInfoPtr>) override;
+ void onSuccess(mojo::WTFArray<mojom::blink::VRDisplayPtr>) override;
void onError() override;
private:

Powered by Google App Engine
This is Rietveld 408576698