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

Unified Diff: public/platform/modules/vr/WebVRClient.h

Issue 1317243002: [VR, Permission] Use appopriate type parameters for WebCallbacks (1/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « public/platform/modules/permissions/WebPermissionClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/vr/WebVRClient.h
diff --git a/public/platform/modules/vr/WebVRClient.h b/public/platform/modules/vr/WebVRClient.h
index 8f120629e8f9cad369c32dc05fcfd805074c1c52..65aaa8d71076506b3194ecd838c3cd7d7194f173 100644
--- a/public/platform/modules/vr/WebVRClient.h
+++ b/public/platform/modules/vr/WebVRClient.h
@@ -12,7 +12,11 @@
namespace blink {
// Success and failure callbacks for getDevices.
-typedef WebCallbacks<WebVector<blink::WebVRDevice>*, void> WebVRGetDevicesCallback;
+class WebVRGetDevicesCallback : public WebCallbacks<const WebVector<WebVRDevice>&, void> {
+public:
+ virtual void onSuccess(const WebVector<WebVRDevice>&) = 0;
+ void onSuccess(WebVector<WebVRDevice>* r) { onSuccess(*r); }
+};
// Client handling VR device communication for a given WebFrame.
class WebVRClient {
« no previous file with comments | « public/platform/modules/permissions/WebPermissionClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698