| Index: ui/views/widget/widget_unittest.cc
|
| diff --git a/ui/views/widget/widget_unittest.cc b/ui/views/widget/widget_unittest.cc
|
| index 7b72fd10f70bc58f05e180b1f9ec028359f87fbc..93b355b71fc1999c5726609e7b1959cc3f36c836 100644
|
| --- a/ui/views/widget/widget_unittest.cc
|
| +++ b/ui/views/widget/widget_unittest.cc
|
| @@ -1706,8 +1706,10 @@ TEST_F(WidgetTest, SynthesizeMouseMoveEvent) {
|
| root_view->AddChildView(v2);
|
|
|
| gfx::Point cursor_location(5, 5);
|
| - ui::MouseEvent move(ui::ET_MOUSE_MOVED, cursor_location, cursor_location,
|
| - ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
|
| + ui::MouseEvent move(
|
| + ui::ET_MOUSE_MOVED, cursor_location, cursor_location,
|
| + ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE,
|
| + ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget->OnMouseEvent(&move);
|
|
|
| EXPECT_EQ(1, v1->GetEventCount(ui::ET_MOUSE_ENTERED));
|
| @@ -2143,9 +2145,10 @@ TEST_F(WidgetTest, MAYBE_DisableTestRootViewHandlersWhenHidden) {
|
| widget->Show();
|
| EXPECT_EQ(NULL, GetMousePressedHandler(root_view));
|
| gfx::Point click_location(45, 15);
|
| - ui::MouseEvent press(ui::ET_MOUSE_PRESSED, click_location, click_location,
|
| - ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON,
|
| - ui::EF_LEFT_MOUSE_BUTTON);
|
| + ui::MouseEvent press(
|
| + ui::ET_MOUSE_PRESSED, click_location, click_location,
|
| + ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON,
|
| + ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget->OnMouseEvent(&press);
|
| EXPECT_EQ(view, GetMousePressedHandler(root_view));
|
| widget->Hide();
|
| @@ -2155,8 +2158,9 @@ TEST_F(WidgetTest, MAYBE_DisableTestRootViewHandlersWhenHidden) {
|
| widget->Show();
|
| EXPECT_EQ(NULL, GetMouseMoveHandler(root_view));
|
| gfx::Point move_location(45, 15);
|
| - ui::MouseEvent move(ui::ET_MOUSE_MOVED, move_location, move_location,
|
| - ui::EventTimeForNow(), 0, 0);
|
| + ui::MouseEvent move(
|
| + ui::ET_MOUSE_MOVED, move_location, move_location, ui::EventTimeForNow(),
|
| + 0, 0, ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget->OnMouseEvent(&move);
|
| EXPECT_EQ(view, GetMouseMoveHandler(root_view));
|
| widget->Hide();
|
|
|