| OLD | NEW |
| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 helper->GetSecurityInfo(&security_info); | 76 helper->GetSecurityInfo(&security_info); |
| 77 ui_interface_->SetSecurityLevel(security_info.security_level); | 77 ui_interface_->SetSecurityLevel(security_info.security_level); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void VrWebContentsObserver::DidToggleFullscreenModeForTab( | 80 void VrWebContentsObserver::DidToggleFullscreenModeForTab( |
| 81 bool entered_fullscreen, bool will_cause_resize) { | 81 bool entered_fullscreen, bool will_cause_resize) { |
| 82 ui_interface_->SetFullscreen(entered_fullscreen); | 82 ui_interface_->SetFullscreen(entered_fullscreen); |
| 83 } | 83 } |
| 84 | 84 |
| 85 void VrWebContentsObserver::WebContentsDestroyed() { | 85 void VrWebContentsObserver::WebContentsDestroyed() { |
| 86 vr_shell_->ContentWebContentsDestroyedOnUI(); | 86 vr_shell_->ContentWebContentsDestroyed(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void VrWebContentsObserver::WasHidden() { | 89 void VrWebContentsObserver::WasHidden() { |
| 90 vr_shell_->ContentWasHiddenOnUI(); | 90 vr_shell_->ContentWasHidden(); |
| 91 } |
| 92 |
| 93 void VrWebContentsObserver::MainFrameWasResized(bool width_changed) { |
| 94 vr_shell_->ContentFrameWasResized(width_changed); |
| 91 } | 95 } |
| 92 | 96 |
| 93 void VrWebContentsObserver::RenderViewHostChanged( | 97 void VrWebContentsObserver::RenderViewHostChanged( |
| 94 content::RenderViewHost* old_host, | 98 content::RenderViewHost* old_host, |
| 95 content::RenderViewHost* new_host) { | 99 content::RenderViewHost* new_host) { |
| 96 new_host->GetWidget()->GetView()->SetShowingOverscrollGlow(false); | 100 new_host->GetWidget()->GetView()->SetShowingOverscrollGlow(false); |
| 97 } | 101 } |
| 98 | 102 |
| 99 } // namespace vr_shell | 103 } // namespace vr_shell |
| OLD | NEW |