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

Unified Diff: ui/events/gesture_detection/touch_disposition_gesture_filter.cc

Issue 567783002: Add modifier flags to MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove MotionEvent modifiers Created 6 years, 3 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/gesture_detection/touch_disposition_gesture_filter.cc
diff --git a/ui/events/gesture_detection/touch_disposition_gesture_filter.cc b/ui/events/gesture_detection/touch_disposition_gesture_filter.cc
index 33c8d4322f4ef12edeeb75a2f3f6715b0c6c3a21..a72390c473c3125d5dfa964f923a3c238238893b 100644
--- a/ui/events/gesture_detection/touch_disposition_gesture_filter.cc
+++ b/ui/events/gesture_detection/touch_disposition_gesture_filter.cc
@@ -19,6 +19,8 @@ GestureEventData CreateGesture(EventType type,
int motion_event_id,
MotionEvent::ToolType primary_tool_type,
const GestureEventDataPacket& packet) {
+ // As the event is purely synthetic, we needn't be strict with event flags.
+ int flags = EF_NONE;
return GestureEventData(GestureEventDetails(type, 0, 0),
motion_event_id,
primary_tool_type,
@@ -28,7 +30,8 @@ GestureEventData CreateGesture(EventType type,
packet.raw_touch_location().x(),
packet.raw_touch_location().y(),
1,
- gfx::RectF(packet.touch_location(), gfx::SizeF()));
+ gfx::RectF(packet.touch_location(), gfx::SizeF()),
+ flags);
}
enum RequiredTouches {

Powered by Google App Engine
This is Rietveld 408576698