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

Unified Diff: device/vr/android/gvr/gvr_delegate.h

Issue 2510873003: Clean up WebVR RequestPresent and make callback asynchronous. (Closed)
Patch Set: Fix FakeVRDevice Created 4 years, 1 month 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 | « chrome/browser/android/vr_shell/vr_shell_delegate.cc ('k') | device/vr/android/gvr/gvr_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_delegate.h
diff --git a/device/vr/android/gvr/gvr_delegate.h b/device/vr/android/gvr/gvr_delegate.h
index 556924720a1e573c23e308b36390e28c4694ba35..e6f672154e4191f9fa1f4d8009bffa1107f43490 100644
--- a/device/vr/android/gvr/gvr_delegate.h
+++ b/device/vr/android/gvr/gvr_delegate.h
@@ -37,8 +37,9 @@ class DEVICE_VR_EXPORT GvrDelegateProvider {
static void SetInstance(GvrDelegateProvider* delegate_provider);
static GvrDelegateProvider* GetInstance();
- virtual bool RequestWebVRPresent(
- base::WeakPtr<GvrDeviceProvider> device_provider) = 0;
+ virtual void RequestWebVRPresent(
+ base::WeakPtr<GvrDeviceProvider> device_provider,
+ const base::Callback<void(bool)>& callback) = 0;
virtual void ExitWebVRPresent() = 0;
virtual base::WeakPtr<GvrDelegate> GetNonPresentingDelegate() = 0;
virtual void DestroyNonPresentingDelegate() = 0;
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.cc ('k') | device/vr/android/gvr/gvr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698