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

Unified Diff: ash/autoclick/autoclick_unittest.cc

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address build problems, add accessor and unit tests. Created 5 years, 4 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 262d826fac89ef3bf06db7e2e4e4e4fd73aeb805..3ffcd07789f891e27a0c2a625d1ea24a0e7d679f 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::PointerEventDetails(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