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

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

Issue 468043003: Ignore min/max gesture bounds for mouse or stylus-derived gestures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GestureTextSelectorTest Created 6 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: 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 42d1d0099928b068f8a33036085b51c602d1bbbc..4da51786f0559b8cf4f03dcda394760e192c8f94 100644
--- a/ui/events/gesture_detection/gesture_event_data.cc
+++ b/ui/events/gesture_detection/gesture_event_data.cc
@@ -10,6 +10,7 @@ namespace ui {
GestureEventData::GestureEventData(const GestureEventDetails& details,
int motion_event_id,
+ MotionEvent::ToolType primary_tool_type,
base::TimeTicks time,
float x,
float y,
@@ -19,6 +20,7 @@ GestureEventData::GestureEventData(const GestureEventDetails& details,
const gfx::RectF& bounding_box)
: details(details),
motion_event_id(motion_event_id),
+ primary_tool_type(primary_tool_type),
time(time),
x(x),
y(y),
@@ -34,6 +36,7 @@ GestureEventData::GestureEventData(EventType type,
const GestureEventData& other)
: details(type, 0, 0),
motion_event_id(other.motion_event_id),
+ primary_tool_type(other.primary_tool_type),
time(other.time),
x(other.x),
y(other.y),
@@ -44,7 +47,12 @@ GestureEventData::GestureEventData(EventType type,
}
GestureEventData::GestureEventData()
- : motion_event_id(0), x(0), y(0), raw_x(0), raw_y(0) {
+ : motion_event_id(0),
+ primary_tool_type(MotionEvent::TOOL_TYPE_UNKNOWN),
+ x(0),
+ y(0),
+ raw_x(0),
+ raw_y(0) {
}
} // 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