| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/site_per_process_browsertest.h" | 5 #include "content/browser/site_per_process_browsertest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1359 RenderWidgetHostMouseEventMonitor a_frame_monitor( | 1359 RenderWidgetHostMouseEventMonitor a_frame_monitor( |
| 1360 root->current_frame_host()->GetRenderWidgetHost()); | 1360 root->current_frame_host()->GetRenderWidgetHost()); |
| 1361 RenderWidgetHostMouseEventMonitor b_frame_monitor( | 1361 RenderWidgetHostMouseEventMonitor b_frame_monitor( |
| 1362 b_node->current_frame_host()->GetRenderWidgetHost()); | 1362 b_node->current_frame_host()->GetRenderWidgetHost()); |
| 1363 RenderWidgetHostMouseEventMonitor c_frame_monitor( | 1363 RenderWidgetHostMouseEventMonitor c_frame_monitor( |
| 1364 c_node->current_frame_host()->GetRenderWidgetHost()); | 1364 c_node->current_frame_host()->GetRenderWidgetHost()); |
| 1365 RenderWidgetHostMouseEventMonitor d_frame_monitor( | 1365 RenderWidgetHostMouseEventMonitor d_frame_monitor( |
| 1366 d_node->current_frame_host()->GetRenderWidgetHost()); | 1366 d_node->current_frame_host()->GetRenderWidgetHost()); |
| 1367 | 1367 |
| 1368 gfx::Point point_in_a_frame(2, 2); | 1368 gfx::Point point_in_a_frame(2, 2); |
| 1369 gfx::Point point_in_b_frame(rwhv_b->GetViewBounds().x(), | 1369 gfx::Point point_in_b_frame(313, 147); |
| 1370 rwhv_b->GetViewBounds().y()); | 1370 gfx::Point point_in_d_frame(471, 207); |
| 1371 gfx::Point point_in_d_frame(rwhv_d->GetViewBounds().x(), | |
| 1372 rwhv_d->GetViewBounds().y()); | |
| 1373 | 1371 |
| 1374 blink::WebMouseEvent mouse_event; | 1372 blink::WebMouseEvent mouse_event; |
| 1375 mouse_event.type = blink::WebInputEvent::MouseMove; | 1373 mouse_event.type = blink::WebInputEvent::MouseMove; |
| 1376 mouse_event.x = point_in_a_frame.x(); | 1374 mouse_event.x = point_in_a_frame.x(); |
| 1377 mouse_event.y = point_in_a_frame.y(); | 1375 mouse_event.y = point_in_a_frame.y(); |
| 1378 | 1376 |
| 1379 // Send an initial MouseMove to the root view, which shouldn't affect the | 1377 // Send an initial MouseMove to the root view, which shouldn't affect the |
| 1380 // other renderers. | 1378 // other renderers. |
| 1381 web_contents()->GetInputEventRouter()->RouteMouseEvent(rwhv_a, &mouse_event, | 1379 web_contents()->GetInputEventRouter()->RouteMouseEvent(rwhv_a, &mouse_event, |
| 1382 ui::LatencyInfo()); | 1380 ui::LatencyInfo()); |
| (...skipping 6843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8226 " Site A ------------ proxies for B C\n" | 8224 " Site A ------------ proxies for B C\n" |
| 8227 " +--Site B ------- proxies for A C\n" | 8225 " +--Site B ------- proxies for A C\n" |
| 8228 " +--Site C -- proxies for A B\n" | 8226 " +--Site C -- proxies for A B\n" |
| 8229 "Where A = http://a.com/\n" | 8227 "Where A = http://a.com/\n" |
| 8230 " B = http://b.com/\n" | 8228 " B = http://b.com/\n" |
| 8231 " C = http://c.com/", | 8229 " C = http://c.com/", |
| 8232 DepictFrameTree(root)); | 8230 DepictFrameTree(root)); |
| 8233 } | 8231 } |
| 8234 | 8232 |
| 8235 } // namespace content | 8233 } // namespace content |
| OLD | NEW |