OLD | NEW |
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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 | 904 |
905 // static | 905 // static |
906 void RenderFrameImpl::CreateFrame( | 906 void RenderFrameImpl::CreateFrame( |
907 int routing_id, | 907 int routing_id, |
908 int proxy_routing_id, | 908 int proxy_routing_id, |
909 int opener_routing_id, | 909 int opener_routing_id, |
910 int parent_routing_id, | 910 int parent_routing_id, |
911 int previous_sibling_routing_id, | 911 int previous_sibling_routing_id, |
912 const FrameReplicationState& replicated_state, | 912 const FrameReplicationState& replicated_state, |
913 CompositorDependencies* compositor_deps, | 913 CompositorDependencies* compositor_deps, |
914 const FrameMsg_NewFrame_WidgetParams& widget_params, | 914 const mojom::CreateFrameWidgetParams& widget_params, |
915 const FrameOwnerProperties& frame_owner_properties) { | 915 const FrameOwnerProperties& frame_owner_properties) { |
916 blink::WebLocalFrame* web_frame; | 916 blink::WebLocalFrame* web_frame; |
917 RenderFrameImpl* render_frame; | 917 RenderFrameImpl* render_frame; |
918 if (proxy_routing_id == MSG_ROUTING_NONE) { | 918 if (proxy_routing_id == MSG_ROUTING_NONE) { |
919 RenderFrameProxy* parent_proxy = | 919 RenderFrameProxy* parent_proxy = |
920 RenderFrameProxy::FromRoutingID(parent_routing_id); | 920 RenderFrameProxy::FromRoutingID(parent_routing_id); |
921 // If the browser is sending a valid parent routing id, it should already | 921 // If the browser is sending a valid parent routing id, it should already |
922 // be created and registered. | 922 // be created and registered. |
923 CHECK(parent_proxy); | 923 CHECK(parent_proxy); |
924 blink::WebRemoteFrame* parent_web_frame = parent_proxy->web_frame(); | 924 blink::WebRemoteFrame* parent_web_frame = parent_proxy->web_frame(); |
(...skipping 5505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6430 // event target. Potentially a Pepper plugin will receive the event. | 6430 // event target. Potentially a Pepper plugin will receive the event. |
6431 // In order to tell whether a plugin gets the last mouse event and which it | 6431 // In order to tell whether a plugin gets the last mouse event and which it |
6432 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6432 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6433 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6433 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6434 // |pepper_last_mouse_event_target_|. | 6434 // |pepper_last_mouse_event_target_|. |
6435 pepper_last_mouse_event_target_ = nullptr; | 6435 pepper_last_mouse_event_target_ = nullptr; |
6436 #endif | 6436 #endif |
6437 } | 6437 } |
6438 | 6438 |
6439 } // namespace content | 6439 } // namespace content |
OLD | NEW |