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

Side by Side Diff: chrome/browser/android/vr_shell/vr_web_contents_observer.cc

Issue 2657703002: Swap to foreground tab when following links that open in a new tab/window in VR Shell. (Closed)
Patch Set: Address comments Created 3 years, 10 months 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_web_contents_observer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/ssl/security_state_tab_helper.h" 9 #include "chrome/browser/ssl/security_state_tab_helper.h"
10 #include "components/security_state/core/security_state.h" 10 #include "components/security_state/core/security_state.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 void VrWebContentsObserver::WebContentsDestroyed() { 76 void VrWebContentsObserver::WebContentsDestroyed() {
77 vr_shell_->ContentWebContentsDestroyed(); 77 vr_shell_->ContentWebContentsDestroyed();
78 } 78 }
79 79
80 void VrWebContentsObserver::WasHidden() { 80 void VrWebContentsObserver::WasHidden() {
81 vr_shell_->ContentWasHidden(); 81 vr_shell_->ContentWasHidden();
82 } 82 }
83 83
84 void VrWebContentsObserver::WasShown() {
85 vr_shell_->ContentWasShown();
86 }
87
88
84 void VrWebContentsObserver::MainFrameWasResized(bool width_changed) { 89 void VrWebContentsObserver::MainFrameWasResized(bool width_changed) {
85 vr_shell_->ContentFrameWasResized(width_changed); 90 vr_shell_->ContentFrameWasResized(width_changed);
86 } 91 }
87 92
88 void VrWebContentsObserver::RenderViewHostChanged( 93 void VrWebContentsObserver::RenderViewHostChanged(
89 content::RenderViewHost* old_host, 94 content::RenderViewHost* old_host,
90 content::RenderViewHost* new_host) { 95 content::RenderViewHost* new_host) {
91 new_host->GetWidget()->GetView()->SetIsInVR(true); 96 new_host->GetWidget()->GetView()->SetIsInVR(true);
92 } 97 }
93 98
94 } // namespace vr_shell 99 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_web_contents_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698