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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 #if defined(OS_ANDROID) | 711 #if defined(OS_ANDROID) |
712 RenderViewHost* InterstitialPageImpl::GetRenderViewHost() const { | 712 RenderViewHost* InterstitialPageImpl::GetRenderViewHost() const { |
713 return render_view_host_; | 713 return render_view_host_; |
714 } | 714 } |
715 #endif | 715 #endif |
716 | 716 |
717 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { | 717 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { |
718 return delegate_.get(); | 718 return delegate_.get(); |
719 } | 719 } |
720 | 720 |
| 721 WebContents* InterstitialPageImpl::GetAsWebContents() { |
| 722 return web_contents_; |
| 723 } |
| 724 |
721 void InterstitialPageImpl::DontCreateViewForTesting() { | 725 void InterstitialPageImpl::DontCreateViewForTesting() { |
722 create_view_ = false; | 726 create_view_ = false; |
723 } | 727 } |
724 | 728 |
725 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const { | 729 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const { |
726 return gfx::Rect(); | 730 return gfx::Rect(); |
727 } | 731 } |
728 | 732 |
729 void InterstitialPageImpl::CreateNewWindow( | 733 void InterstitialPageImpl::CreateNewWindow( |
730 int render_process_id, | 734 int render_process_id, |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( | 917 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( |
914 const LoadCommittedDetails& load_details) { | 918 const LoadCommittedDetails& load_details) { |
915 interstitial_->OnNavigatingAwayOrTabClosing(); | 919 interstitial_->OnNavigatingAwayOrTabClosing(); |
916 } | 920 } |
917 | 921 |
918 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { | 922 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { |
919 interstitial_->OnNavigatingAwayOrTabClosing(); | 923 interstitial_->OnNavigatingAwayOrTabClosing(); |
920 } | 924 } |
921 | 925 |
922 } // namespace content | 926 } // namespace content |
OLD | NEW |