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

Unified Diff: ui/events/event.cc

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumbed aura gestures, fixed unittests. Created 4 years, 6 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: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 8261fd9ce4cc5facce6d2dbf136c9f51574b9860..fd07bc476790de33e76af36952280666f29c86d8 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -1276,7 +1276,23 @@ GestureEvent::GestureEvent(float x,
gfx::PointF(x, y),
time_stamp,
flags | EF_FROM_TOUCH),
- details_(details) {
+ details_(details),
+ unique_touch_event_id_(0U) {
+}
+
+GestureEvent::GestureEvent(float x,
+ float y,
+ int flags,
+ base::TimeDelta time_stamp,
+ const GestureEventDetails& details,
+ uint32_t unique_touch_event_id)
+ : LocatedEvent(details.type(),
+ gfx::PointF(x, y),
+ gfx::PointF(x, y),
+ time_stamp,
+ flags | EF_FROM_TOUCH),
+ details_(details),
+ unique_touch_event_id_(unique_touch_event_id) {
}
GestureEvent::~GestureEvent() {

Powered by Google App Engine
This is Rietveld 408576698