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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_delegate.h

Issue 2844833005: Tentatively goes into WebVR presentation mode if page listens to vrdisplayactivate. (Closed)
Patch Set: Fixed device unit tests Created 3 years, 8 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: 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 fc09693f960fd89cedc7ef6e2a119f674d88a5d0..ba1937b649caba70e5ffd6314e0728683f9a3fec 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.h
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.h
@@ -68,6 +68,8 @@ class VrShellDelegate : public device::GvrDelegateProvider {
void CreateNonPresentingDelegate();
+ void OnActivateDisplayHandled(bool present_requested);
+
std::unique_ptr<NonPresentingGvrDelegate> non_presenting_delegate_;
base::android::ScopedJavaGlobalRef<jobject> j_vr_shell_delegate_;
device::GvrDeviceProvider* device_provider_ = nullptr;
@@ -78,6 +80,8 @@ class VrShellDelegate : public device::GvrDelegateProvider {
device::mojom::VRSubmitFrameClientPtr submit_client_;
bool pending_successful_present_request_ = false;
+ base::WeakPtrFactory<VrShellDelegate> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(VrShellDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698