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

Unified Diff: ash/display/mouse_cursor_event_filter.cc

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. Created 6 years, 8 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/display/mouse_cursor_event_filter.cc
diff --git a/ash/display/mouse_cursor_event_filter.cc b/ash/display/mouse_cursor_event_filter.cc
index 8807f9900af4c5fcdbb79521ec969cd96d4c20ca..495c3182c4998bd1aa7e66a350207e1167c4d46b 100644
--- a/ash/display/mouse_cursor_event_filter.cc
+++ b/ash/display/mouse_cursor_event_filter.cc
@@ -101,7 +101,7 @@ void MouseCursorEventFilter::OnMouseEvent(ui::MouseEvent* event) {
Shell::GetInstance()->display_controller()->
cursor_window_controller()->UpdateLocation();
- gfx::Point point_in_screen(event->location());
+ gfx::Point point_in_screen(gfx::ToFlooredPoint(event->location()));
wm::ConvertPointToScreen(target, &point_in_screen);
if (WarpMouseCursorIfNecessary(target->GetRootWindow(), point_in_screen))
event->StopPropagation();

Powered by Google App Engine
This is Rietveld 408576698