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

Unified Diff: ui/views/widget/root_view.cc

Issue 1421713002: Explicitly convert Point to PointF for event code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wip
Patch Set: pointfconvert-prod: . Created 5 years, 2 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/root_view.cc
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc
index 1270bf757e4f912c9a357bf7c594251c701c035d..fbb843d0d2282c23d58294c5c57578fb5a796cad 100644
--- a/ui/views/widget/root_view.cc
+++ b/ui/views/widget/root_view.cc
@@ -455,9 +455,10 @@ void RootView::OnMouseCaptureLost() {
// Synthesize a release event for UpdateCursor.
if (mouse_pressed_handler_) {
gfx::Point last_point(last_mouse_event_x_, last_mouse_event_y_);
- ui::MouseEvent release_event(ui::ET_MOUSE_RELEASED, last_point,
- last_point, ui::EventTimeForNow(),
- last_mouse_event_flags_, 0);
+ ui::MouseEvent release_event(
+ ui::ET_MOUSE_RELEASED, gfx::PointF(last_point),
+ gfx::PointF(last_point), ui::EventTimeForNow(),
+ last_mouse_event_flags_, 0);
UpdateCursor(release_event);
}
// We allow the view to delete us from OnMouseCaptureLost. As such,

Powered by Google App Engine
This is Rietveld 408576698