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

Unified Diff: components/exo/shell_surface_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: components/exo/shell_surface_unittest.cc
diff --git a/components/exo/shell_surface_unittest.cc b/components/exo/shell_surface_unittest.cc
index bc2f48b30fe381898c7d4dc958836ad248594e86..80f60e38f90e25aa5ed7ccd96a6d558b12e2c072 100644
--- a/components/exo/shell_surface_unittest.cc
+++ b/components/exo/shell_surface_unittest.cc
@@ -934,13 +934,15 @@ TEST_F(ShellSurfaceTest, SpokenFeedbackFullscreenBackground) {
static_cast<ui::EventTarget*>(shell_window)->GetEventTargeter());
gfx::Point pt_out(300, 300);
- ui::MouseEvent ev_out(ui::ET_MOUSE_PRESSED, pt_out, pt_out,
- ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON,
- ui::EF_LEFT_MOUSE_BUTTON);
+ ui::MouseEvent ev_out(
+ ui::ET_MOUSE_PRESSED, pt_out, pt_out, ui::EventTimeForNow(),
+ ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
gfx::Point pt_in(70, 70);
- ui::MouseEvent ev_in(ui::ET_MOUSE_PRESSED, pt_in, pt_in,
- ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON,
- ui::EF_LEFT_MOUSE_BUTTON);
+ ui::MouseEvent ev_in(
+ ui::ET_MOUSE_PRESSED, pt_in, pt_in, ui::EventTimeForNow(),
+ ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
EXPECT_FALSE(targeter->SubtreeShouldBeExploredForEvent(shell_window, ev_out));

Powered by Google App Engine
This is Rietveld 408576698