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

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

Issue 2524423002: VR: Disable Overscroll Glow in VrShell (Closed)
Patch Set: Fix thread issue + 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
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 edd2604b52fc32c11a258ed2732dcc4726a76a16..8b77ae8da32a8c1af57f59902688e9b3b9330100 100644
--- a/chrome/browser/android/vr_shell/vr_web_contents_observer.cc
+++ b/chrome/browser/android/vr_shell/vr_web_contents_observer.cc
@@ -7,6 +7,9 @@
#include "chrome/browser/android/vr_shell/ui_interface.h"
#include "chrome/browser/android/vr_shell/vr_shell.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 {
@@ -59,4 +62,10 @@ void VrWebContentsObserver::WasHidden() {
vr_shell_->ContentWasHidden();
}
+void VrWebContentsObserver::RenderViewHostChanged(
+ content::RenderViewHost* old_host,
+ content::RenderViewHost* new_host) {
+ new_host->GetWidget()->GetView()->SetShowingOverscrollGlow(false);
mthiesse 2016/12/05 19:02:30 Should we check for NULL first? Or is that not pos
asimjour1 2016/12/05 19:37:30 We don't need to check. old_host could be null if
+}
+
} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698