Index: chrome/browser/android/vr_shell/vr_shell_delegate.h |
diff --git a/chrome/browser/android/vr_shell/vr_shell_delegate.h b/chrome/browser/android/vr_shell/vr_shell_delegate.h |
index ff8b228b928fb8f4447771b82ad3fad3b5b452b6..1fd73bd2e1ff203fdd24c48aa0e2797f631351e7 100644 |
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.h |
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.h |
@@ -28,13 +28,15 @@ class VrShellDelegate : public device::GvrDelegateProvider { |
base::WeakPtr<device::GvrDeviceProvider> GetDeviceProvider(); |
- // Called by the Java VrShellDelegate. Returns true if the GvrDeviceProvider |
- // needs to handle shutdown first. |
+ // Called by the Java VrShellDelegate. |
void ExitWebVRIfNecessary(JNIEnv* env, jobject obj); |
+ void SetPresentResult(JNIEnv* env, jobject obj, jboolean result); |
+ |
// device::GvrDelegateProvider implementation |
- bool RequestWebVRPresent( |
- base::WeakPtr<device::GvrDeviceProvider> device_provider) override; |
+ void RequestWebVRPresent( |
+ base::WeakPtr<device::GvrDeviceProvider> device_provider, |
+ const base::Callback<void(bool)>& callback) override; |
void ExitWebVRPresent() override; |
base::WeakPtr<device::GvrDelegate> GetNonPresentingDelegate() override; |
void DestroyNonPresentingDelegate() override; |
@@ -43,6 +45,7 @@ class VrShellDelegate : public device::GvrDelegateProvider { |
std::unique_ptr<device::GvrDelegate> non_presenting_delegate_; |
base::android::ScopedJavaGlobalRef<jobject> j_vr_shell_delegate_; |
base::WeakPtr<device::GvrDeviceProvider> device_provider_; |
+ base::Callback<void(bool)> present_callback_; |
DISALLOW_COPY_AND_ASSIGN(VrShellDelegate); |
}; |