| Index: ui/message_center/views/notification_view_unittest.cc
|
| diff --git a/ui/message_center/views/notification_view_unittest.cc b/ui/message_center/views/notification_view_unittest.cc
|
| index 6f1211b9969607d6ddcc8bf22e60536b3942e03c..d4d4153d0133bdd34a3a19ea0be30829435e2bfd 100644
|
| --- a/ui/message_center/views/notification_view_unittest.cc
|
| +++ b/ui/message_center/views/notification_view_unittest.cc
|
| @@ -456,8 +456,10 @@ TEST_F(NotificationViewTest, UpdateButtonsStateTest) {
|
| gfx::Point cursor_location(1, 1);
|
| views::View::ConvertPointToWidget(notification_view()->action_buttons_[0],
|
| &cursor_location);
|
| - 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::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget()->OnMouseEvent(&move);
|
|
|
| EXPECT_EQ(views::CustomButton::STATE_HOVERED,
|
| @@ -471,8 +473,10 @@ TEST_F(NotificationViewTest, UpdateButtonsStateTest) {
|
| // Now construct a mouse move event 1 pixel outside the boundary of the
|
| // widget.
|
| cursor_location = gfx::Point(-1, -1);
|
| - move = ui::MouseEvent(ui::ET_MOUSE_MOVED, cursor_location, cursor_location,
|
| - ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
|
| + move = ui::MouseEvent(
|
| + ui::ET_MOUSE_MOVED, cursor_location, cursor_location,
|
| + ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE,
|
| + ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget()->OnMouseEvent(&move);
|
|
|
| EXPECT_EQ(views::CustomButton::STATE_NORMAL,
|
| @@ -494,8 +498,10 @@ TEST_F(NotificationViewTest, UpdateButtonCountTest) {
|
| gfx::Point cursor_location(1, 1);
|
| views::View::ConvertPointToScreen(notification_view()->action_buttons_[0],
|
| &cursor_location);
|
| - 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::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| ui::EventDispatchDetails details =
|
| views::test::WidgetTest::GetEventSink(widget())->OnEventFromSource(&move);
|
| EXPECT_FALSE(details.dispatcher_destroyed);
|
| @@ -515,8 +521,10 @@ TEST_F(NotificationViewTest, UpdateButtonCountTest) {
|
| // Now construct a mouse move event 1 pixel outside the boundary of the
|
| // widget.
|
| cursor_location = gfx::Point(-1, -1);
|
| - move = ui::MouseEvent(ui::ET_MOUSE_MOVED, cursor_location, cursor_location,
|
| - ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
|
| + move = ui::MouseEvent(
|
| + ui::ET_MOUSE_MOVED, cursor_location, cursor_location,
|
| + ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE,
|
| + ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget()->OnMouseEvent(&move);
|
|
|
| EXPECT_EQ(views::CustomButton::STATE_NORMAL,
|
| @@ -546,8 +554,10 @@ TEST_F(NotificationViewTest, SettingsButtonTest) {
|
| gfx::Point cursor_location(1, 1);
|
| views::View::ConvertPointToScreen(notification_view()->settings_button_view_,
|
| &cursor_location);
|
| - 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::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget()->OnMouseEvent(&move);
|
| ui::EventDispatchDetails details =
|
| views::test::WidgetTest::GetEventSink(widget())->OnEventFromSource(&move);
|
| @@ -559,8 +569,10 @@ TEST_F(NotificationViewTest, SettingsButtonTest) {
|
| // Now construct a mouse move event 1 pixel outside the boundary of the
|
| // widget.
|
| cursor_location = gfx::Point(-1, -1);
|
| - move = ui::MouseEvent(ui::ET_MOUSE_MOVED, cursor_location, cursor_location,
|
| - ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
|
| + move = ui::MouseEvent(
|
| + ui::ET_MOUSE_MOVED, cursor_location, cursor_location,
|
| + ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE,
|
| + ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget()->OnMouseEvent(&move);
|
|
|
| EXPECT_EQ(views::CustomButton::STATE_NORMAL,
|
|
|