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

Unified Diff: ash/wm/workspace_controller_unittest.cc

Issue 2786693002: Add PointerDetails to ui::MouseEvent's constructors (Closed)
Patch Set: mouse event constructor Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/workspace_controller_unittest.cc
diff --git a/ash/wm/workspace_controller_unittest.cc b/ash/wm/workspace_controller_unittest.cc
index 9011354e050d6e0a0d493dfa420469267ee73fde..af67d2f29812339771106d2b639d851c0eb7e1d8 100644
--- a/ash/wm/workspace_controller_unittest.cc
+++ b/ash/wm/workspace_controller_unittest.cc
@@ -1453,8 +1453,10 @@ TEST_F(WorkspaceControllerTest, WindowEdgeHitTest) {
for (int i = 0; i < kNumPoints; ++i) {
SCOPED_TRACE(points[i].direction);
const gfx::Point& location = points[i].location;
- ui::MouseEvent mouse(ui::ET_MOUSE_MOVED, location, location,
- ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
+ ui::MouseEvent mouse(
+ ui::ET_MOUSE_MOVED, location, location, ui::EventTimeForNow(),
+ ui::EF_NONE, ui::EF_NONE,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
ui::EventTarget* target = targeter->FindTargetForEvent(root, &mouse);
EXPECT_EQ(expected_target, target);
@@ -1496,8 +1498,10 @@ TEST_F(WorkspaceControllerTest, WindowEdgeMouseHitTestPanel) {
for (int i = 0; i < kNumPoints; ++i) {
SCOPED_TRACE(points[i].direction);
const gfx::Point& location = points[i].location;
- ui::MouseEvent mouse(ui::ET_MOUSE_MOVED, location, location,
- ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
+ ui::MouseEvent mouse(
+ ui::ET_MOUSE_MOVED, location, location, ui::EventTimeForNow(),
+ ui::EF_NONE, ui::EF_NONE,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
ui::EventTarget* target = targeter->FindTargetForEvent(root, &mouse);
if (points[i].is_target_hit)
EXPECT_EQ(window.get(), target);

Powered by Google App Engine
This is Rietveld 408576698