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

Unified Diff: ui/base/gestures/gesture_sequence.cc

Issue 10834269: gestures: Some more event cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 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
« no previous file with comments | « ui/base/gestures/gesture_recognizer_impl.cc ('k') | ui/base/gestures/gesture_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_sequence.cc
diff --git a/ui/base/gestures/gesture_sequence.cc b/ui/base/gestures/gesture_sequence.cc
index 5db4b8a6f4f116d65067b6ee50c17419ba430722..59d32edac8d54c19e554942d4f2cf3147c149121 100644
--- a/ui/base/gestures/gesture_sequence.cc
+++ b/ui/base/gestures/gesture_sequence.cc
@@ -562,8 +562,9 @@ GestureEvent* GestureSequence::CreateGestureEvent(
GestureEventDetails gesture_details(details);
gesture_details.set_touch_points(point_count_);
gesture_details.set_bounding_box(bounding_box_);
- return helper_->CreateGestureEvent(gesture_details, location, flags,
- timestamp, touch_id_bitmask);
+ return new GestureEvent(gesture_details.type(), location.x(), location.y(),
+ flags, base::TimeDelta::FromMilliseconds(timestamp.ToDoubleT() * 1000),
+ gesture_details, touch_id_bitmask);
}
void GestureSequence::AppendTapDownGestureEvent(const GesturePoint& point,
« no previous file with comments | « ui/base/gestures/gesture_recognizer_impl.cc ('k') | ui/base/gestures/gesture_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698