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

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

Issue 1685213002: Propagate window coordinates to out-of-process iframes renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sendscreenrects
Patch Set: addressing comments Created 4 years, 9 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "content/child/web_url_request_util.h" 46 #include "content/child/web_url_request_util.h"
47 #include "content/child/webmessageportchannel_impl.h" 47 #include "content/child/webmessageportchannel_impl.h"
48 #include "content/child/websocket_bridge.h" 48 #include "content/child/websocket_bridge.h"
49 #include "content/child/weburlresponse_extradata_impl.h" 49 #include "content/child/weburlresponse_extradata_impl.h"
50 #include "content/common/accessibility_messages.h" 50 #include "content/common/accessibility_messages.h"
51 #include "content/common/clipboard_messages.h" 51 #include "content/common/clipboard_messages.h"
52 #include "content/common/frame_messages.h" 52 #include "content/common/frame_messages.h"
53 #include "content/common/frame_replication_state.h" 53 #include "content/common/frame_replication_state.h"
54 #include "content/common/input_messages.h" 54 #include "content/common/input_messages.h"
55 #include "content/common/navigation_params.h" 55 #include "content/common/navigation_params.h"
56 #include "content/common/page_messages.h"
56 #include "content/common/savable_subframe.h" 57 #include "content/common/savable_subframe.h"
57 #include "content/common/service_worker/service_worker_types.h" 58 #include "content/common/service_worker/service_worker_types.h"
58 #include "content/common/site_isolation_policy.h" 59 #include "content/common/site_isolation_policy.h"
59 #include "content/common/ssl_status_serialization.h" 60 #include "content/common/ssl_status_serialization.h"
60 #include "content/common/swapped_out_messages.h" 61 #include "content/common/swapped_out_messages.h"
61 #include "content/common/view_messages.h" 62 #include "content/common/view_messages.h"
62 #include "content/public/common/bindings_policy.h" 63 #include "content/public/common/bindings_policy.h"
63 #include "content/public/common/browser_side_navigation_policy.h" 64 #include "content/public/common/browser_side_navigation_policy.h"
64 #include "content/public/common/content_constants.h" 65 #include "content/public/common/content_constants.h"
65 #include "content/public/common/content_switches.h" 66 #include "content/public/common/content_switches.h"
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 1343
1343 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1344 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1344 void RenderFrameImpl::DidHideExternalPopupMenu() { 1345 void RenderFrameImpl::DidHideExternalPopupMenu() {
1345 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close 1346 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close
1346 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. 1347 // is called. Otherwise, createExternalPopupMenu() for new popup will fail.
1347 external_popup_menu_.reset(); 1348 external_popup_menu_.reset();
1348 } 1349 }
1349 #endif 1350 #endif
1350 1351
1351 bool RenderFrameImpl::OnMessageReceived(const IPC::Message& msg) { 1352 bool RenderFrameImpl::OnMessageReceived(const IPC::Message& msg) {
1353 // Forward Page IPCs to the RenderView.
1354 if ((IPC_MESSAGE_CLASS(msg) == PageMsgStart)) {
1355 if (render_view())
1356 return render_view()->OnMessageReceived(msg);
1357
1358 return false;
1359 }
1360
1352 // We may get here while detaching, when the WebFrame has been deleted. Do 1361 // We may get here while detaching, when the WebFrame has been deleted. Do
1353 // not process any messages in this state. 1362 // not process any messages in this state.
1354 if (!frame_) 1363 if (!frame_)
1355 return false; 1364 return false;
1356 1365
1357 // TODO(kenrb): document() should not be null, but as a transitional step 1366 // TODO(kenrb): document() should not be null, but as a transitional step
1358 // we have RenderFrameProxy 'wrapping' a RenderFrameImpl, passing messages 1367 // we have RenderFrameProxy 'wrapping' a RenderFrameImpl, passing messages
1359 // to this method. This happens for a top-level remote frame, where a 1368 // to this method. This happens for a top-level remote frame, where a
1360 // document-less RenderFrame is replaced by a RenderFrameProxy but kept 1369 // document-less RenderFrame is replaced by a RenderFrameProxy but kept
1361 // around and is still able to receive messages. 1370 // around and is still able to receive messages.
(...skipping 4741 matching lines...) Expand 10 before | Expand all | Expand 10 after
6103 int match_count, 6112 int match_count,
6104 int ordinal, 6113 int ordinal,
6105 const WebRect& selection_rect, 6114 const WebRect& selection_rect,
6106 bool final_status_update) { 6115 bool final_status_update) {
6107 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, 6116 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count,
6108 selection_rect, ordinal, 6117 selection_rect, ordinal,
6109 final_status_update)); 6118 final_status_update));
6110 } 6119 }
6111 6120
6112 } // namespace content 6121 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698