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

Unified Diff: chrome/browser/android/vr_shell/vr_web_contents_observer.cc

Issue 2524423002: VR: Disable Overscroll Glow in VrShell (Closed)
Patch Set: Rebase + Rename VrShell::SetShowingOverscrollGlow 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
Index: chrome/browser/android/vr_shell/vr_web_contents_observer.cc
diff --git a/chrome/browser/android/vr_shell/vr_web_contents_observer.cc b/chrome/browser/android/vr_shell/vr_web_contents_observer.cc
index 48cddbc3589634ce09e4c94f98e1bf7177da2cdd..da533a9f0be0f41361c031f8f5db988bb5bc72d8 100644
--- a/chrome/browser/android/vr_shell/vr_web_contents_observer.cc
+++ b/chrome/browser/android/vr_shell/vr_web_contents_observer.cc
@@ -9,6 +9,9 @@
#include "chrome/browser/ssl/security_state_tab_helper.h"
#include "components/security_state/core/security_state.h"
#include "content/public/browser/navigation_handle.h"
+#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/render_widget_host.h"
+#include "content/public/browser/render_widget_host_view.h"
namespace vr_shell {
@@ -81,4 +84,10 @@ void VrWebContentsObserver::WasHidden() {
vr_shell_->ContentWasHiddenOnUI();
}
+void VrWebContentsObserver::RenderViewHostChanged(
+ content::RenderViewHost* old_host,
+ content::RenderViewHost* new_host) {
+ new_host->GetWidget()->GetView()->SetShowingOverscrollGlow(false);
+}
+
} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698