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

Unified Diff: ui/events/gesture_detection/gesture_event_data.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/gesture_event_data.cc
diff --git a/ui/events/gesture_detection/gesture_event_data.cc b/ui/events/gesture_detection/gesture_event_data.cc
index 4da51786f0559b8cf4f03dcda394760e192c8f94..41824e88e568618154ff96b32243b1a81af73745 100644
--- a/ui/events/gesture_detection/gesture_event_data.cc
+++ b/ui/events/gesture_detection/gesture_event_data.cc
@@ -17,7 +17,8 @@ GestureEventData::GestureEventData(const GestureEventDetails& details,
float raw_x,
float raw_y,
size_t touch_point_count,
- const gfx::RectF& bounding_box)
+ const gfx::RectF& bounding_box,
+ int flags)
: details(details),
motion_event_id(motion_event_id),
primary_tool_type(primary_tool_type),
@@ -25,7 +26,8 @@ GestureEventData::GestureEventData(const GestureEventDetails& details,
x(x),
y(y),
raw_x(raw_x),
- raw_y(raw_y) {
+ raw_y(raw_y),
+ flags(flags) {
DCHECK_GE(motion_event_id, 0);
DCHECK_NE(0U, touch_point_count);
this->details.set_touch_points(static_cast<int>(touch_point_count));
@@ -41,7 +43,8 @@ GestureEventData::GestureEventData(EventType type,
x(other.x),
y(other.y),
raw_x(other.raw_x),
- raw_y(other.raw_y) {
+ raw_y(other.raw_y),
+ flags(other.flags) {
details.set_touch_points(other.details.touch_points());
details.set_bounding_box(other.details.bounding_box_f());
}
@@ -52,7 +55,8 @@ GestureEventData::GestureEventData()
x(0),
y(0),
raw_x(0),
- raw_y(0) {
+ raw_y(0),
+ flags(EF_NONE) {
}
} // namespace ui
« no previous file with comments | « ui/events/gesture_detection/gesture_event_data.h ('k') | ui/events/gesture_detection/gesture_event_data_packet_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698