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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 // navigation was being initiated in the browser process. Drop the 912 // navigation was being initiated in the browser process. Drop the
913 // navigation and don't create the frame in that case. See 913 // navigation and don't create the frame in that case. See
914 // https://crbug.com/526304. 914 // https://crbug.com/526304.
915 if (!proxy) 915 if (!proxy)
916 return; 916 return;
917 917
918 render_frame = RenderFrameImpl::Create(proxy->render_view(), routing_id); 918 render_frame = RenderFrameImpl::Create(proxy->render_view(), routing_id);
919 render_frame->InitializeBlameContext(nullptr); 919 render_frame->InitializeBlameContext(nullptr);
920 render_frame->proxy_routing_id_ = proxy_routing_id; 920 render_frame->proxy_routing_id_ = proxy_routing_id;
921 web_frame = blink::WebLocalFrame::createProvisional( 921 web_frame = blink::WebLocalFrame::createProvisional(
922 render_frame, proxy->web_frame(), replicated_state.sandbox_flags, 922 render_frame, proxy->web_frame(), replicated_state.sandbox_flags);
923 frame_owner_properties);
924 } 923 }
925 render_frame->BindToWebFrame(web_frame); 924 render_frame->BindToWebFrame(web_frame);
926 CHECK(parent_routing_id != MSG_ROUTING_NONE || !web_frame->parent()); 925 CHECK(parent_routing_id != MSG_ROUTING_NONE || !web_frame->parent());
927 926
928 if (widget_params.routing_id != MSG_ROUTING_NONE) { 927 if (widget_params.routing_id != MSG_ROUTING_NONE) {
929 CHECK(!web_frame->parent() || 928 CHECK(!web_frame->parent() ||
930 SiteIsolationPolicy::AreCrossProcessFramesPossible()); 929 SiteIsolationPolicy::AreCrossProcessFramesPossible());
931 render_frame->render_widget_ = RenderWidget::CreateForFrame( 930 render_frame->render_widget_ = RenderWidget::CreateForFrame(
932 widget_params.routing_id, widget_params.hidden, 931 widget_params.routing_id, widget_params.hidden,
933 render_frame->render_view_->screen_info(), compositor_deps, web_frame); 932 render_frame->render_view_->screen_info(), compositor_deps, web_frame);
(...skipping 5202 matching lines...) Expand 10 before | Expand all | Expand 10 after
6136 // event target. Potentially a Pepper plugin will receive the event. 6135 // event target. Potentially a Pepper plugin will receive the event.
6137 // In order to tell whether a plugin gets the last mouse event and which it 6136 // In order to tell whether a plugin gets the last mouse event and which it
6138 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6137 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6139 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6138 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6140 // |pepper_last_mouse_event_target_|. 6139 // |pepper_last_mouse_event_target_|.
6141 pepper_last_mouse_event_target_ = nullptr; 6140 pepper_last_mouse_event_target_ = nullptr;
6142 #endif 6141 #endif
6143 } 6142 }
6144 6143
6145 } // namespace content 6144 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698