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

Unified Diff: ui/base/event.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/event.h ('k') | ui/base/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/event.cc
diff --git a/ui/base/event.cc b/ui/base/event.cc
index 28392362d63e79307e926c40bc142aa5f3a147d0..fc08cf795e0502c3b4fe3d8b61bed3b71812fb51 100644
--- a/ui/base/event.cc
+++ b/ui/base/event.cc
@@ -377,13 +377,13 @@ GestureEvent::GestureEvent(EventType type,
int x,
int y,
int flags,
- base::Time time_stamp,
+ base::TimeDelta time_stamp,
const GestureEventDetails& details,
unsigned int touch_ids_bitfield)
: LocatedEvent(type, gfx::Point(x, y), gfx::Point(x, y), flags),
details_(details),
touch_ids_bitfield_(touch_ids_bitfield) {
- set_time_stamp(base::TimeDelta::FromSeconds(time_stamp.ToDoubleT()));
+ set_time_stamp(time_stamp);
}
GestureEvent::~GestureEvent() {
« no previous file with comments | « ui/base/event.h ('k') | ui/base/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698