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

Unified Diff: ash/autoclick/autoclick_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: ash/autoclick/autoclick_unittest.cc
diff --git a/ash/autoclick/autoclick_unittest.cc b/ash/autoclick/autoclick_unittest.cc
index 73d21ffc52d05d2f6da2ec208547a655ce31c139..27c5af9b2b387c94ff9e659d9ddfc0a642b5b209 100644
--- a/ash/autoclick/autoclick_unittest.cc
+++ b/ash/autoclick/autoclick_unittest.cc
@@ -34,10 +34,10 @@ class MouseEventCapturer : public ui::EventHandler {
ui::EventType type = event->type();
if (type == ui::ET_MOUSE_MOVED || type == ui::ET_MOUSE_PRESSED ||
type == ui::ET_MOUSE_RELEASED) {
- events_.push_back(ui::MouseEvent(event->type(), event->location(),
- event->root_location(),
- ui::EventTimeForNow(), event->flags(),
- event->changed_button_flags()));
+ events_.push_back(ui::MouseEvent(
+ event->type(), event->location(), event->root_location(),
+ ui::EventTimeForNow(), event->flags(), event->changed_button_flags(),
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)));
// Stop event propagation so we don't click on random stuff that
// might break test assumptions.
event->StopPropagation();

Powered by Google App Engine
This is Rietveld 408576698