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

Unified Diff: ui/views/widget/widget.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/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index de3ac38f969274531808a3cbb822f406c27cf62d..5489838a0a921d19221b060321decf1fdc18170d 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -992,9 +992,11 @@ void Widget::SynthesizeMouseMoveEvent() {
// Convert: screen coordinate -> widget coordinate.
View::ConvertPointFromScreen(root_view_.get(), &mouse_location);
last_mouse_event_was_move_ = false;
- ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, mouse_location,
- mouse_location, ui::EventTimeForNow(),
- ui::EF_IS_SYNTHESIZED, 0);
+ ui::MouseEvent mouse_event(
+ ui::ET_MOUSE_MOVED, mouse_location, mouse_location, ui::EventTimeForNow(),
+ ui::EF_IS_SYNTHESIZED, 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE,
+ ui::PointerEvent::kMousePointerId));
root_view_->OnMouseMoved(mouse_event);
}

Powered by Google App Engine
This is Rietveld 408576698