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

Side by Side Diff: content/browser/site_per_process_browsertest.cc

Issue 2346843002: Fix CrossProcessMouseEnterAndLeaveTest on Mac (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 RenderWidgetHostMouseEventMonitor a_frame_monitor( 1358 RenderWidgetHostMouseEventMonitor a_frame_monitor(
1359 root->current_frame_host()->GetRenderWidgetHost()); 1359 root->current_frame_host()->GetRenderWidgetHost());
1360 RenderWidgetHostMouseEventMonitor b_frame_monitor( 1360 RenderWidgetHostMouseEventMonitor b_frame_monitor(
1361 b_node->current_frame_host()->GetRenderWidgetHost()); 1361 b_node->current_frame_host()->GetRenderWidgetHost());
1362 RenderWidgetHostMouseEventMonitor c_frame_monitor( 1362 RenderWidgetHostMouseEventMonitor c_frame_monitor(
1363 c_node->current_frame_host()->GetRenderWidgetHost()); 1363 c_node->current_frame_host()->GetRenderWidgetHost());
1364 RenderWidgetHostMouseEventMonitor d_frame_monitor( 1364 RenderWidgetHostMouseEventMonitor d_frame_monitor(
1365 d_node->current_frame_host()->GetRenderWidgetHost()); 1365 d_node->current_frame_host()->GetRenderWidgetHost());
1366 1366
1367 gfx::Point point_in_a_frame(2, 2); 1367 gfx::Point point_in_a_frame(2, 2);
1368 gfx::Point point_in_b_frame(rwhv_b->GetViewBounds().x() + 2, 1368 gfx::Point point_in_b_frame(rwhv_b->GetViewBounds().x(),
1369 rwhv_b->GetViewBounds().y() + 2); 1369 rwhv_b->GetViewBounds().y());
1370 gfx::Point point_in_d_frame(rwhv_d->GetViewBounds().x() + 2, 1370 gfx::Point point_in_d_frame(rwhv_d->GetViewBounds().x(),
1371 rwhv_d->GetViewBounds().y() + 2); 1371 rwhv_d->GetViewBounds().y());
1372 1372
1373 blink::WebMouseEvent mouse_event; 1373 blink::WebMouseEvent mouse_event;
1374 mouse_event.type = blink::WebInputEvent::MouseMove; 1374 mouse_event.type = blink::WebInputEvent::MouseMove;
1375 mouse_event.x = point_in_a_frame.x(); 1375 mouse_event.x = point_in_a_frame.x();
1376 mouse_event.y = point_in_a_frame.y(); 1376 mouse_event.y = point_in_a_frame.y();
1377 1377
1378 // Send an initial MouseMove to the root view, which shouldn't affect the 1378 // Send an initial MouseMove to the root view, which shouldn't affect the
1379 // other renderers. 1379 // other renderers.
1380 web_contents()->GetInputEventRouter()->RouteMouseEvent(rwhv_a, &mouse_event); 1380 web_contents()->GetInputEventRouter()->RouteMouseEvent(rwhv_a, &mouse_event);
1381 EXPECT_TRUE(a_frame_monitor.EventWasReceived()); 1381 EXPECT_TRUE(a_frame_monitor.EventWasReceived());
(...skipping 6709 matching lines...) Expand 10 before | Expand all | Expand 10 after
8091 " Site A ------------ proxies for B C\n" 8091 " Site A ------------ proxies for B C\n"
8092 " +--Site B ------- proxies for A C\n" 8092 " +--Site B ------- proxies for A C\n"
8093 " +--Site C -- proxies for A B\n" 8093 " +--Site C -- proxies for A B\n"
8094 "Where A = http://a.com/\n" 8094 "Where A = http://a.com/\n"
8095 " B = http://b.com/\n" 8095 " B = http://b.com/\n"
8096 " C = http://c.com/", 8096 " C = http://c.com/",
8097 DepictFrameTree(root)); 8097 DepictFrameTree(root));
8098 } 8098 }
8099 8099
8100 } // namespace content 8100 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698