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

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

Issue 592263002: Send initializeChildFrame from RenderFrameProxy instead of WebLocalFrame (part 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 6 years, 2 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
« no previous file with comments | « content/renderer/render_frame_proxy.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_proxy.h" 5 #include "content/renderer/render_frame_proxy.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "content/child/webmessageportchannel_impl.h" 10 #include "content/child/webmessageportchannel_impl.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 if (source_frame) { 264 if (source_frame) {
265 RenderViewImpl* source_view = 265 RenderViewImpl* source_view =
266 RenderViewImpl::FromWebView(source_frame->view()); 266 RenderViewImpl::FromWebView(source_frame->view());
267 if (source_view) 267 if (source_view)
268 params.source_routing_id = source_view->routing_id(); 268 params.source_routing_id = source_view->routing_id();
269 } 269 }
270 270
271 Send(new ViewHostMsg_RouteMessageEvent(render_view_->GetRoutingID(), params)); 271 Send(new ViewHostMsg_RouteMessageEvent(render_view_->GetRoutingID(), params));
272 } 272 }
273 273
274 void RenderFrameProxy::initializeChildFrame(
275 const blink::WebRect& frame_rect,
276 float scale_factor) {
277 Send(new FrameHostMsg_InitializeChildFrame(
278 routing_id_, frame_rect, scale_factor));
279 }
280
274 } // namespace 281 } // namespace
OLDNEW
« no previous file with comments | « content/renderer/render_frame_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698