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

Unified Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
diff --git a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
index 6167cb31bdd2505a6b8cfa5c459b1ba45e1eda1f..1d416a62584d082134c2685b37c5def16bce622a 100644
--- a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
+++ b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
@@ -765,7 +765,7 @@ void DesktopDragDropClientAuraX11::OnWindowDestroyed(aura::Window* window) {
void DesktopDragDropClientAuraX11::OnMouseMovement(
const gfx::Point& screen_point,
int flags,
- base::TimeDelta event_time) {
+ base::TimeTicks event_time) {
if (drag_widget_.get()) {
display::Display display =
display::Screen::GetScreen()->GetDisplayNearestWindow(
@@ -785,7 +785,8 @@ void DesktopDragDropClientAuraX11::OnMouseMovement(
current_modifier_state_ = flags & kModifiers;
repeat_mouse_move_timer_.Stop();
- ProcessMouseMove(screen_point, event_time.InMilliseconds());
+ ProcessMouseMove(screen_point,
+ (event_time - base::TimeTicks()).InMilliseconds());
}
void DesktopDragDropClientAuraX11::OnMouseReleased() {

Powered by Google App Engine
This is Rietveld 408576698