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

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

Issue 2524423002: VR: Disable Overscroll Glow in VrShell (Closed)
Patch Set: VR: Disable Overscroll Glow in VrShell 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(
Charlie Reis 2016/12/06 22:51:42 Note that RenderViewHost is on its way out, in fav
asimjour1 2016/12/08 16:59:15 Overscroll only happens for the main frame navigat
+ 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