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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/vr_shell/vr_web_contents_observer.h" 5 #include "chrome/browser/android/vr_shell/vr_web_contents_observer.h"
6 6
7 #include "chrome/browser/android/vr_shell/ui_interface.h" 7 #include "chrome/browser/android/vr_shell/ui_interface.h"
8 #include "chrome/browser/android/vr_shell/vr_shell.h" 8 #include "chrome/browser/android/vr_shell/vr_shell.h"
9 #include "content/public/browser/navigation_handle.h" 9 #include "content/public/browser/navigation_handle.h"
10 #include "content/public/browser/render_view_host.h"
11 #include "content/public/browser/render_widget_host.h"
12 #include "content/public/browser/render_widget_host_view.h"
10 13
11 namespace vr_shell { 14 namespace vr_shell {
12 15
13 VrWebContentsObserver::VrWebContentsObserver(content::WebContents* web_contents, 16 VrWebContentsObserver::VrWebContentsObserver(content::WebContents* web_contents,
14 UiInterface* ui_interface, 17 UiInterface* ui_interface,
15 VrShell* vr_shell) 18 VrShell* vr_shell)
16 : WebContentsObserver(web_contents), 19 : WebContentsObserver(web_contents),
17 ui_interface_(ui_interface), 20 ui_interface_(ui_interface),
18 vr_shell_(vr_shell) {} 21 vr_shell_(vr_shell) {}
19 22
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 55 }
53 56
54 void VrWebContentsObserver::WebContentsDestroyed() { 57 void VrWebContentsObserver::WebContentsDestroyed() {
55 vr_shell_->ContentWebContentsDestroyed(); 58 vr_shell_->ContentWebContentsDestroyed();
56 } 59 }
57 60
58 void VrWebContentsObserver::WasHidden() { 61 void VrWebContentsObserver::WasHidden() {
59 vr_shell_->ContentWasHidden(); 62 vr_shell_->ContentWasHidden();
60 } 63 }
61 64
65 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
66 content::RenderViewHost* old_host,
67 content::RenderViewHost* new_host) {
68 new_host->GetWidget()->GetView()->SetShowingOverscrollGlow(false);
69 }
70
62 } // namespace vr_shell 71 } // namespace vr_shell
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698