OLD | NEW |
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/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 // Include the routing ID for the source frame (if one exists), which the | 376 // Include the routing ID for the source frame (if one exists), which the |
377 // browser process will translate into the routing ID for the equivalent | 377 // browser process will translate into the routing ID for the equivalent |
378 // frame in the target process. | 378 // frame in the target process. |
379 params.source_routing_id = MSG_ROUTING_NONE; | 379 params.source_routing_id = MSG_ROUTING_NONE; |
380 if (source_frame) { | 380 if (source_frame) { |
381 RenderFrameImpl* source_render_frame = | 381 RenderFrameImpl* source_render_frame = |
382 RenderFrameImpl::FromWebFrame(source_frame); | 382 RenderFrameImpl::FromWebFrame(source_frame); |
383 if (source_render_frame) | 383 if (source_render_frame) |
384 params.source_routing_id = source_render_frame->GetRoutingID(); | 384 params.source_routing_id = source_render_frame->GetRoutingID(); |
385 } | 385 } |
386 params.source_view_routing_id = MSG_ROUTING_NONE; | |
387 | 386 |
388 Send(new FrameHostMsg_RouteMessageEvent(routing_id_, params)); | 387 Send(new FrameHostMsg_RouteMessageEvent(routing_id_, params)); |
389 } | 388 } |
390 | 389 |
391 void RenderFrameProxy::initializeChildFrame( | 390 void RenderFrameProxy::initializeChildFrame( |
392 const blink::WebRect& frame_rect, | 391 const blink::WebRect& frame_rect, |
393 float scale_factor) { | 392 float scale_factor) { |
394 Send(new FrameHostMsg_InitializeChildFrame( | 393 Send(new FrameHostMsg_InitializeChildFrame( |
395 routing_id_, frame_rect, scale_factor)); | 394 routing_id_, frame_rect, scale_factor)); |
396 } | 395 } |
(...skipping 15 matching lines...) Expand all Loading... |
412 | 411 |
413 void RenderFrameProxy::forwardInputEvent(const blink::WebInputEvent* event) { | 412 void RenderFrameProxy::forwardInputEvent(const blink::WebInputEvent* event) { |
414 Send(new FrameHostMsg_ForwardInputEvent(routing_id_, event)); | 413 Send(new FrameHostMsg_ForwardInputEvent(routing_id_, event)); |
415 } | 414 } |
416 | 415 |
417 void RenderFrameProxy::frameRectsChanged(const blink::WebRect& frame_rect) { | 416 void RenderFrameProxy::frameRectsChanged(const blink::WebRect& frame_rect) { |
418 Send(new FrameHostMsg_FrameRectChanged(routing_id_, frame_rect)); | 417 Send(new FrameHostMsg_FrameRectChanged(routing_id_, frame_rect)); |
419 } | 418 } |
420 | 419 |
421 } // namespace | 420 } // namespace |
OLD | NEW |