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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1526263003: Position autofill popup widgets correctly under --site-per-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed incorrect cast Created 4 years, 10 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/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 // We don't validate |unfiltered_link_url| so that this field can be used 1320 // We don't validate |unfiltered_link_url| so that this field can be used
1321 // when users want to copy the original link URL. 1321 // when users want to copy the original link URL.
1322 process->FilterURL(true, &validated_params.link_url); 1322 process->FilterURL(true, &validated_params.link_url);
1323 process->FilterURL(true, &validated_params.src_url); 1323 process->FilterURL(true, &validated_params.src_url);
1324 process->FilterURL(false, &validated_params.page_url); 1324 process->FilterURL(false, &validated_params.page_url);
1325 process->FilterURL(true, &validated_params.frame_url); 1325 process->FilterURL(true, &validated_params.frame_url);
1326 1326
1327 // It is necessary to transform the coordinates to account for nested 1327 // It is necessary to transform the coordinates to account for nested
1328 // RenderWidgetHosts, such as with out-of-process iframes. 1328 // RenderWidgetHosts, such as with out-of-process iframes.
1329 gfx::Point original_point(validated_params.x, validated_params.y); 1329 gfx::Point original_point(validated_params.x, validated_params.y);
1330 gfx::Point transformed_point = original_point; 1330 gfx::Point transformed_point =
1331 static_cast<RenderWidgetHostViewBase*>(GetView()) 1331 static_cast<RenderWidgetHostViewBase*>(GetView())
1332 ->TransformPointToRootCoordSpace(original_point, &transformed_point); 1332 ->TransformPointToRootCoordSpace(original_point);
1333 validated_params.x = transformed_point.x(); 1333 validated_params.x = transformed_point.x();
1334 validated_params.y = transformed_point.y(); 1334 validated_params.y = transformed_point.y();
1335 1335
1336 delegate_->ShowContextMenu(this, validated_params); 1336 delegate_->ShowContextMenu(this, validated_params);
1337 } 1337 }
1338 1338
1339 void RenderFrameHostImpl::OnJavaScriptExecuteResponse( 1339 void RenderFrameHostImpl::OnJavaScriptExecuteResponse(
1340 int id, const base::ListValue& result) { 1340 int id, const base::ListValue& result) {
1341 const base::Value* result_value; 1341 const base::Value* result_value;
1342 if (!result.Get(0, &result_value)) { 1342 if (!result.Get(0, &result_value)) {
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 *dst = src; 2552 *dst = src;
2553 2553
2554 if (src.routing_id != -1) 2554 if (src.routing_id != -1)
2555 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); 2555 dst->tree_id = RoutingIDToAXTreeID(src.routing_id);
2556 2556
2557 if (src.parent_routing_id != -1) 2557 if (src.parent_routing_id != -1)
2558 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); 2558 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id);
2559 } 2559 }
2560 2560
2561 } // namespace content 2561 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/frame_host/render_widget_host_view_child_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698