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

Unified Diff: ui/views/animation/ink_drop_host_view_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/animation/ink_drop_host_view_unittest.cc
diff --git a/ui/views/animation/ink_drop_host_view_unittest.cc b/ui/views/animation/ink_drop_host_view_unittest.cc
index 5849c531df65ce777948af6c5c7913f90abab7c2..bc56d9e04fac81440a55aef7126fa945c09a5642 100644
--- a/ui/views/animation/ink_drop_host_view_unittest.cc
+++ b/ui/views/animation/ink_drop_host_view_unittest.cc
@@ -63,9 +63,10 @@ TEST_F(InkDropHostViewTest, GetInkDropCenterBasedOnLastEventForNullEvent) {
TEST_F(InkDropHostViewTest, GetInkDropCenterBasedOnLastEventForLocatedEvent) {
host_view_.SetSize(gfx::Size(20, 20));
- ui::MouseEvent located_event(ui::ET_MOUSE_PRESSED, gfx::Point(5, 6),
- gfx::Point(5, 6), ui::EventTimeForNow(),
- ui::EF_LEFT_MOUSE_BUTTON, 0);
+ ui::MouseEvent located_event(
+ ui::ET_MOUSE_PRESSED, gfx::Point(5, 6), gfx::Point(5, 6),
+ ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
test_api_.AnimateInkDrop(InkDropState::ACTION_PENDING, &located_event);
EXPECT_EQ(gfx::Point(5, 6), test_api_.GetInkDropCenterBasedOnLastEvent());
@@ -150,9 +151,10 @@ TEST_F(InkDropHostViewTest, DismissInkDropOnTouchOrGestureEvents) {
EXPECT_EQ(test_api_.GetInkDrop()->GetTargetInkDropState(),
InkDropState::HIDDEN);
- ui::MouseEvent mouse_event(ui::ET_MOUSE_PRESSED, gfx::Point(5, 6),
- gfx::Point(5, 6), ui::EventTimeForNow(),
- ui::EF_LEFT_MOUSE_BUTTON, 0);
+ ui::MouseEvent mouse_event(
+ ui::ET_MOUSE_PRESSED, gfx::Point(5, 6), gfx::Point(5, 6),
+ ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
test_api_.AnimateInkDrop(InkDropState::ACTION_PENDING, &mouse_event);
EXPECT_EQ(test_api_.GetInkDrop()->GetTargetInkDropState(),

Powered by Google App Engine
This is Rietveld 408576698