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

Unified Diff: ui/chromeos/touch_exploration_controller.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: ui/chromeos/touch_exploration_controller.cc
diff --git a/ui/chromeos/touch_exploration_controller.cc b/ui/chromeos/touch_exploration_controller.cc
index 6fce4a307e29cec40ad781971561826bce3df3f9..127fc19f00c87b4cb1475f8e25fbca7ff77decd3 100644
--- a/ui/chromeos/touch_exploration_controller.cc
+++ b/ui/chromeos/touch_exploration_controller.cc
@@ -1072,7 +1072,9 @@ TouchExplorationController::CreateMouseMoveEvent(const gfx::PointF& location,
flags |= ui::EF_COMMAND_DOWN;
std::unique_ptr<ui::MouseEvent> event(new ui::MouseEvent(
- ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(), Now(), flags, 0));
+ ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(), Now(), flags, 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE,
+ ui::PointerEvent::kMousePointerId)));
event->set_location_f(location);
event->set_root_location_f(location);
return event;

Powered by Google App Engine
This is Rietveld 408576698