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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.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: ui/events/ozone/evdev/event_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
index 47b46b4d3d67e9f66128f8fc771ec84206eaa08b..88e4319f39fcc8a12d01f874732246463e0186d8 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -247,8 +247,8 @@ void EventFactoryEvdev::WarpCursorTo(gfx::AcceleratedWidget widget,
if (cursor_) {
cursor_->MoveCursorTo(widget, location);
MouseEvent mouse_event(ET_MOUSE_MOVED,
- cursor_->location(),
- cursor_->location(),
+ gfx::ToFlooredPoint(cursor_->location()),
+ gfx::ToFlooredPoint(cursor_->location()),
modifiers_.GetModifierFlags(),
/* changed_button_flags */ 0);
DispatchEvent(&mouse_event);

Powered by Google App Engine
This is Rietveld 408576698