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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.cc

Issue 2506183002: Make window.open() IPCs be frame-based (Closed)
Patch Set: Compile fix. Created 4 years 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
OLDNEW
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 <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { 723 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() {
724 return delegate_.get(); 724 return delegate_.get();
725 } 725 }
726 726
727 void InterstitialPageImpl::DontCreateViewForTesting() { 727 void InterstitialPageImpl::DontCreateViewForTesting() {
728 create_view_ = false; 728 create_view_ = false;
729 } 729 }
730 730
731 void InterstitialPageImpl::CreateNewWindow( 731 void InterstitialPageImpl::CreateNewWindow(
732 SiteInstance* source_site_instance, 732 SiteInstance* source_site_instance,
733 int32_t route_id, 733 int32_t render_view_route_id,
734 int32_t main_frame_route_id, 734 int32_t main_frame_route_id,
735 int32_t main_frame_widget_route_id, 735 int32_t main_frame_widget_route_id,
736 const mojom::CreateNewWindowParams& params, 736 const mojom::CreateNewWindowParams& params,
737 SessionStorageNamespace* session_storage_namespace) { 737 SessionStorageNamespace* session_storage_namespace) {
738 NOTREACHED() << "InterstitialPage does not support showing popups yet."; 738 NOTIMPLEMENTED() << "InterstitialPage does not support showing popups.";
739 } 739 }
740 740
741 void InterstitialPageImpl::CreateNewWidget(int32_t render_process_id, 741 void InterstitialPageImpl::CreateNewWidget(int32_t render_process_id,
742 int32_t route_id, 742 int32_t route_id,
743 blink::WebPopupType popup_type) { 743 blink::WebPopupType popup_type) {
744 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; 744 NOTIMPLEMENTED() << "InterstitialPage does not support showing drop-downs.";
745 } 745 }
746 746
747 void InterstitialPageImpl::CreateNewFullscreenWidget(int32_t render_process_id, 747 void InterstitialPageImpl::CreateNewFullscreenWidget(int32_t render_process_id,
748 int32_t route_id) { 748 int32_t route_id) {
749 NOTREACHED() 749 NOTIMPLEMENTED()
750 << "InterstitialPage does not support showing full screen popups."; 750 << "InterstitialPage does not support showing full screen popups.";
751 } 751 }
752 752
753 void InterstitialPageImpl::ShowCreatedWindow(int process_id, 753 void InterstitialPageImpl::ShowCreatedWindow(int process_id,
754 int route_id, 754 int route_id,
755 WindowOpenDisposition disposition, 755 WindowOpenDisposition disposition,
756 const gfx::Rect& initial_rect, 756 const gfx::Rect& initial_rect,
757 bool user_gesture) { 757 bool user_gesture) {
758 NOTREACHED() << "InterstitialPage does not support showing popups yet."; 758 NOTIMPLEMENTED() << "InterstitialPage does not support showing popups.";
759 } 759 }
760 760
761 void InterstitialPageImpl::ShowCreatedWidget(int process_id, 761 void InterstitialPageImpl::ShowCreatedWidget(int process_id,
762 int route_id, 762 int route_id,
763 const gfx::Rect& initial_rect) { 763 const gfx::Rect& initial_rect) {
764 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; 764 NOTIMPLEMENTED() << "InterstitialPage does not support showing drop-downs.";
765 } 765 }
766 766
767 void InterstitialPageImpl::ShowCreatedFullscreenWidget(int process_id, 767 void InterstitialPageImpl::ShowCreatedFullscreenWidget(int process_id,
768 int route_id) { 768 int route_id) {
769 NOTREACHED() 769 NOTIMPLEMENTED()
770 << "InterstitialPage does not support showing full screen popups."; 770 << "InterstitialPage does not support showing full screen popups.";
Avi (use Gerrit) 2016/12/12 19:17:05 I would argue that interstitial pages never should
ncarter (slow) 2016/12/15 00:33:16 Done.
771 } 771 }
772 772
773 SessionStorageNamespace* InterstitialPageImpl::GetSessionStorageNamespace( 773 SessionStorageNamespace* InterstitialPageImpl::GetSessionStorageNamespace(
774 SiteInstance* instance) { 774 SiteInstance* instance) {
775 return session_storage_namespace_.get(); 775 return session_storage_namespace_.get();
776 } 776 }
777 777
778 FrameTree* InterstitialPageImpl::GetFrameTree() { 778 FrameTree* InterstitialPageImpl::GetFrameTree() {
779 return &frame_tree_; 779 return &frame_tree_;
780 } 780 }
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) { 952 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) {
953 WebContentsImpl* web_contents_impl = 953 WebContentsImpl* web_contents_impl =
954 static_cast<WebContentsImpl*>(web_contents_); 954 static_cast<WebContentsImpl*>(web_contents_);
955 if (!web_contents_impl) 955 if (!web_contents_impl)
956 return; 956 return;
957 957
958 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor); 958 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor);
959 } 959 }
960 960
961 } // namespace content 961 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698