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

Unified Diff: ash/drag_drop/drag_drop_controller.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 | « no previous file | ash/drag_drop/drag_drop_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/drag_drop/drag_drop_controller.cc
diff --git a/ash/drag_drop/drag_drop_controller.cc b/ash/drag_drop/drag_drop_controller.cc
index 5d1611ed5595508978710c9c00e3915576d7151e..77fbd792fea57d5b682f20c5c671e3f3c68d0317 100644
--- a/ash/drag_drop/drag_drop_controller.cc
+++ b/ash/drag_drop/drag_drop_controller.cc
@@ -21,6 +21,7 @@
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/os_exchange_data_provider_aura.h"
#include "ui/base/events/event.h"
+#include "ui/base/events/event_utils.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/rect_conversions.h"
@@ -64,9 +65,14 @@ gfx::Rect AdjustDragImageBoundsForScaleAndOffset(
void DispatchGestureEndToWindow(aura::Window* window) {
if (window && window->delegate()) {
- ui::GestureEvent gesture_end(ui::ET_GESTURE_END, 0, 0, 0,
- base::Time::Now() - base::Time::FromDoubleT(0),
- ui::GestureEventDetails(ui::ET_GESTURE_END, 0, 0), 0);
+ ui::GestureEvent gesture_end(
+ ui::ET_GESTURE_END,
+ 0,
+ 0,
+ 0,
+ ui::EventTimeForNow(),
+ ui::GestureEventDetails(ui::ET_GESTURE_END, 0, 0),
+ 0);
window->delegate()->OnGestureEvent(&gesture_end);
}
}
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698