| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/frame_host/interstitial_page_impl.h" | 5 #include "content/browser/frame_host/interstitial_page_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 void InterstitialPageImpl::FocusThroughTabTraversal(bool reverse) { | 697 void InterstitialPageImpl::FocusThroughTabTraversal(bool reverse) { |
| 698 if (!enabled()) | 698 if (!enabled()) |
| 699 return; | 699 return; |
| 700 render_view_host_->SetInitialFocus(reverse); | 700 render_view_host_->SetInitialFocus(reverse); |
| 701 } | 701 } |
| 702 | 702 |
| 703 RenderWidgetHostView* InterstitialPageImpl::GetView() { | 703 RenderWidgetHostView* InterstitialPageImpl::GetView() { |
| 704 return render_view_host_->GetView(); | 704 return render_view_host_->GetView(); |
| 705 } | 705 } |
| 706 | 706 |
| 707 RenderViewHost* InterstitialPageImpl::GetRenderViewHostForTesting() const { | 707 RenderViewHost* InterstitialPageImpl::GetRenderViewHost() const { |
| 708 return render_view_host_; | 708 return render_view_host_; |
| 709 } | 709 } |
| 710 | 710 |
| 711 #if defined(OS_ANDROID) | |
| 712 RenderViewHost* InterstitialPageImpl::GetRenderViewHost() const { | |
| 713 return render_view_host_; | |
| 714 } | |
| 715 #endif | |
| 716 | |
| 717 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { | 711 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { |
| 718 return delegate_.get(); | 712 return delegate_.get(); |
| 719 } | 713 } |
| 720 | 714 |
| 721 void InterstitialPageImpl::DontCreateViewForTesting() { | 715 void InterstitialPageImpl::DontCreateViewForTesting() { |
| 722 create_view_ = false; | 716 create_view_ = false; |
| 723 } | 717 } |
| 724 | 718 |
| 725 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const { | 719 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const { |
| 726 return gfx::Rect(); | 720 return gfx::Rect(); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( | 907 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( |
| 914 const LoadCommittedDetails& load_details) { | 908 const LoadCommittedDetails& load_details) { |
| 915 interstitial_->OnNavigatingAwayOrTabClosing(); | 909 interstitial_->OnNavigatingAwayOrTabClosing(); |
| 916 } | 910 } |
| 917 | 911 |
| 918 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { | 912 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { |
| 919 interstitial_->OnNavigatingAwayOrTabClosing(); | 913 interstitial_->OnNavigatingAwayOrTabClosing(); |
| 920 } | 914 } |
| 921 | 915 |
| 922 } // namespace content | 916 } // namespace content |
| OLD | NEW |