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() { |