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

Unified Diff: ash/drag_drop/drag_drop_tracker.cc

Issue 2786693002: Add PointerDetails to ui::MouseEvent's constructors (Closed)
Patch Set: mouse event constructor Created 3 years, 9 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: ash/drag_drop/drag_drop_tracker.cc
diff --git a/ash/drag_drop/drag_drop_tracker.cc b/ash/drag_drop/drag_drop_tracker.cc
index 48b877f3c62eebda1961f8a9d8e7f6df43025e07..0ee042a79e9cace9140680ab2d6fc909f38ec7da 100644
--- a/ash/drag_drop/drag_drop_tracker.cc
+++ b/ash/drag_drop/drag_drop_tracker.cc
@@ -92,7 +92,9 @@ ui::LocatedEvent* DragDropTracker::ConvertEvent(aura::Window* target,
return new ui::MouseEvent(
event.type(), target_location, target_root_location,
ui::EventTimeForNow(), event.flags(),
- static_cast<const ui::MouseEvent&>(event).changed_button_flags());
+ static_cast<const ui::MouseEvent&>(event).changed_button_flags(),
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE,
+ ui::PointerEvent::kMousePointerId));
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698