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

Unified Diff: ui/views/bubble/bubble_window_targeter_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: ui/views/bubble/bubble_window_targeter_unittest.cc
diff --git a/ui/views/bubble/bubble_window_targeter_unittest.cc b/ui/views/bubble/bubble_window_targeter_unittest.cc
index 975d68e82db843e6e03303d00902d41d56e5b048..07fbfd0667be9d199dee8956d75d516011f9c3c5 100644
--- a/ui/views/bubble/bubble_window_targeter_unittest.cc
+++ b/ui/views/bubble/bubble_window_targeter_unittest.cc
@@ -96,16 +96,18 @@ TEST_F(BubbleWindowTargeterTest, HitTest) {
{
bubble_delegate()->set_margins(gfx::Insets());
- ui::MouseEvent move1(ui::ET_MOUSE_MOVED, bubble_bounds.origin(),
- bubble_bounds.origin(), ui::EventTimeForNow(),
- ui::EF_NONE, ui::EF_NONE);
+ ui::MouseEvent move1(
+ ui::ET_MOUSE_MOVED, bubble_bounds.origin(), bubble_bounds.origin(),
+ ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
EXPECT_EQ(bubble_window, targeter->FindTargetForEvent(root, &move1));
}
{
bubble_delegate()->set_margins(gfx::Insets(20));
- ui::MouseEvent move1(ui::ET_MOUSE_MOVED, bubble_bounds.origin(),
- bubble_bounds.origin(), ui::EventTimeForNow(),
- ui::EF_NONE, ui::EF_NONE);
+ ui::MouseEvent move1(
+ ui::ET_MOUSE_MOVED, bubble_bounds.origin(), bubble_bounds.origin(),
+ ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
EXPECT_EQ(bubble_window, targeter->FindTargetForEvent(root, &move1));
}
@@ -113,9 +115,10 @@ TEST_F(BubbleWindowTargeterTest, HitTest) {
new BubbleWindowTargeter(bubble_delegate())));
{
bubble_delegate()->set_margins(gfx::Insets(20));
- ui::MouseEvent move1(ui::ET_MOUSE_MOVED, bubble_bounds.origin(),
- bubble_bounds.origin(), ui::EventTimeForNow(),
- ui::EF_NONE, ui::EF_NONE);
+ ui::MouseEvent move1(
+ ui::ET_MOUSE_MOVED, bubble_bounds.origin(), bubble_bounds.origin(),
+ ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
EXPECT_NE(bubble_window, targeter->FindTargetForEvent(root, &move1));
}
}

Powered by Google App Engine
This is Rietveld 408576698