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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 } | 751 } |
752 | 752 |
753 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { | 753 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { |
754 return delegate_.get(); | 754 return delegate_.get(); |
755 } | 755 } |
756 | 756 |
757 void InterstitialPageImpl::DontCreateViewForTesting() { | 757 void InterstitialPageImpl::DontCreateViewForTesting() { |
758 create_view_ = false; | 758 create_view_ = false; |
759 } | 759 } |
760 | 760 |
761 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const { | |
762 return gfx::Rect(); | |
763 } | |
764 | |
765 void InterstitialPageImpl::CreateNewWindow( | 761 void InterstitialPageImpl::CreateNewWindow( |
766 SiteInstance* source_site_instance, | 762 SiteInstance* source_site_instance, |
767 int32_t route_id, | 763 int32_t route_id, |
768 int32_t main_frame_route_id, | 764 int32_t main_frame_route_id, |
769 int32_t main_frame_widget_route_id, | 765 int32_t main_frame_widget_route_id, |
770 const ViewHostMsg_CreateWindow_Params& params, | 766 const ViewHostMsg_CreateWindow_Params& params, |
771 SessionStorageNamespace* session_storage_namespace) { | 767 SessionStorageNamespace* session_storage_namespace) { |
772 NOTREACHED() << "InterstitialPage does not support showing popups yet."; | 768 NOTREACHED() << "InterstitialPage does not support showing popups yet."; |
773 } | 769 } |
774 | 770 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( | 943 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( |
948 const LoadCommittedDetails& load_details) { | 944 const LoadCommittedDetails& load_details) { |
949 interstitial_->OnNavigatingAwayOrTabClosing(); | 945 interstitial_->OnNavigatingAwayOrTabClosing(); |
950 } | 946 } |
951 | 947 |
952 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { | 948 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { |
953 interstitial_->OnNavigatingAwayOrTabClosing(); | 949 interstitial_->OnNavigatingAwayOrTabClosing(); |
954 } | 950 } |
955 | 951 |
956 } // namespace content | 952 } // namespace content |
OLD | NEW |