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

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

Issue 2542293002: Exit VR when our main content tab is hidden (Usually due to links opening in new tab) (Closed)
Patch Set: rebase Created 4 years 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 | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell.h
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h
index 72bf12d430092eaaad12d1a728ae08624082175d..a24e389ed01f18b2af60d57406f9ac8611dfe9d0 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -95,6 +95,9 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
bool enabled);
void ContentWebContentsDestroyed();
+ // Called when our WebContents have been hidden. Usually a sign that something
+ // like another tab placed in front of it.
+ void ContentWasHidden();
// html/js UI hooks.
static base::WeakPtr<VrShell> GetWeakPtr(
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698