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

Unified Diff: chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address build problems, add accessor and unit tests. Created 5 years, 4 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: chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc
diff --git a/chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc b/chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc
index 7186ab3ec3d004cb29fbd236bfb4ab2b3a00f01e..8ef9d8d20d70d81007010df03b2d336368e00a35 100644
--- a/chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc
+++ b/chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.cc
@@ -88,9 +88,10 @@ void LinkDisambiguationPopup::ZoomBubbleView::OnMouseEvent(
gfx::PointF xform_location(
(event->location().x() / scale_) + target_rect_.x(),
(event->location().y() / scale_) + target_rect_.y());
- ui::MouseEvent xform_event(event->type(), xform_location, xform_location,
- ui::EventTimeForNow(), event->flags(),
- event->changed_button_flags());
+ ui::MouseEvent xform_event(
+ event->type(), xform_location, xform_location, ui::EventTimeForNow(),
+ event->flags(), event->changed_button_flags(),
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
mouse_cb_.Run(&xform_event);
event->SetHandled();

Powered by Google App Engine
This is Rietveld 408576698