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

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

Issue 11591006: Track input latency with UMA stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added per event type histograms Created 7 years, 11 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/events/event_utils.cc ('k') | ui/views/corewm/compound_event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_recognizer_impl.cc
diff --git a/ui/base/gestures/gesture_recognizer_impl.cc b/ui/base/gestures/gesture_recognizer_impl.cc
index 2a569eee0323553d2fa69fea68dba6c1fb77eb39..fb1aec2c50e999e4cef1ebec11f7fae9370ee652 100644
--- a/ui/base/gestures/gesture_recognizer_impl.cc
+++ b/ui/base/gestures/gesture_recognizer_impl.cc
@@ -9,6 +9,7 @@
#include "base/time.h"
#include "ui/base/events/event.h"
#include "ui/base/events/event_constants.h"
+#include "ui/base/events/event_utils.h"
#include "ui/base/gestures/gesture_configuration.h"
#include "ui/base/gestures/gesture_sequence.h"
#include "ui/base/gestures/gesture_types.h"
@@ -161,8 +162,10 @@ void GestureRecognizerImpl::TransferEventsTo(GestureConsumer* current_consumer,
if (i->second != new_consumer &&
(i->second != current_consumer || new_consumer == NULL) &&
i->second != gesture_consumer_ignorer_.get()) {
- TouchEvent touch_event(ui::ET_TOUCH_CANCELLED, gfx::Point(0, 0),
- i->first, base::Time::NowFromSystemTime() - base::Time());
+ TouchEvent touch_event(ui::ET_TOUCH_CANCELLED,
+ gfx::Point(0, 0),
+ i->first,
+ ui::EventTimeForNow());
helper_->DispatchCancelTouchEvent(&touch_event);
i->second = gesture_consumer_ignorer_.get();
}
« no previous file with comments | « ui/base/events/event_utils.cc ('k') | ui/views/corewm/compound_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698