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

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

Issue 2797473005: Fix interstitials on OOPIF-based guests. (Closed)
Patch Set: rebase Created 3 years, 8 months 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 int32_t main_frame_route_id, 747 int32_t main_frame_route_id,
748 int32_t main_frame_widget_route_id, 748 int32_t main_frame_widget_route_id,
749 const mojom::CreateNewWindowParams& params, 749 const mojom::CreateNewWindowParams& params,
750 SessionStorageNamespace* session_storage_namespace) { 750 SessionStorageNamespace* session_storage_namespace) {
751 NOTREACHED() << "InterstitialPage does not support showing popups."; 751 NOTREACHED() << "InterstitialPage does not support showing popups.";
752 } 752 }
753 753
754 void InterstitialPageImpl::SetFocusedFrame(FrameTreeNode* node, 754 void InterstitialPageImpl::SetFocusedFrame(FrameTreeNode* node,
755 SiteInstance* source) { 755 SiteInstance* source) {
756 frame_tree_.SetFocusedFrame(node, source); 756 frame_tree_.SetFocusedFrame(node, source);
757
758 if (web_contents_) {
759 static_cast<WebContentsImpl*>(web_contents_)
760 ->SetAsFocusedWebContentsIfNecessary();
761 }
757 } 762 }
758 763
759 void InterstitialPageImpl::CreateNewWidget(int32_t render_process_id, 764 void InterstitialPageImpl::CreateNewWidget(int32_t render_process_id,
760 int32_t route_id, 765 int32_t route_id,
761 blink::WebPopupType popup_type) { 766 blink::WebPopupType popup_type) {
762 NOTREACHED() << "InterstitialPage does not support showing drop-downs."; 767 NOTREACHED() << "InterstitialPage does not support showing drop-downs.";
763 } 768 }
764 769
765 void InterstitialPageImpl::CreateNewFullscreenWidget(int32_t render_process_id, 770 void InterstitialPageImpl::CreateNewFullscreenWidget(int32_t render_process_id,
766 int32_t route_id) { 771 int32_t route_id) {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 975
971 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) { 976 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) {
972 WebContentsImpl* web_contents_impl = 977 WebContentsImpl* web_contents_impl =
973 static_cast<WebContentsImpl*>(web_contents_); 978 static_cast<WebContentsImpl*>(web_contents_);
974 if (!web_contents_impl) 979 if (!web_contents_impl)
975 return; 980 return;
976 981
977 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor); 982 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor);
978 } 983 }
979 984
985 RenderWidgetHostInputEventRouter* InterstitialPageImpl::GetInputEventRouter() {
986 WebContentsImpl* web_contents_impl =
987 static_cast<WebContentsImpl*>(web_contents_);
988 if (!web_contents_impl)
989 return nullptr;
990
991 return web_contents_impl->GetInputEventRouter();
992 }
993
980 } // namespace content 994 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.h ('k') | content/browser/frame_host/render_widget_host_view_child_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698