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

Unified Diff: services/ui/ws/cursor_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: services/ui/ws/cursor_unittest.cc
diff --git a/services/ui/ws/cursor_unittest.cc b/services/ui/ws/cursor_unittest.cc
index 678723a734b028b04f1b4420af77968be976972f..83ca0370be0d2efb993a2b611d4ff58004e52fdc 100644
--- a/services/ui/ws/cursor_unittest.cc
+++ b/services/ui/ws/cursor_unittest.cc
@@ -90,8 +90,9 @@ class CursorTest : public testing::Test {
WindowManagerDisplayRoot* active_display_root =
display->GetActiveWindowManagerDisplayRoot();
ASSERT_TRUE(active_display_root);
- PointerEvent event(
- MouseEvent(ET_MOUSE_MOVED, p, p, base::TimeTicks(), 0, 0));
+ PointerEvent event(MouseEvent(
+ ET_MOUSE_MOVED, p, p, base::TimeTicks(), 0, 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)));
ignore_result(static_cast<PlatformDisplayDelegate*>(display)
->GetEventSink()
->OnEventFromSource(&event));

Powered by Google App Engine
This is Rietveld 408576698