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

Unified Diff: ui/events/ozone/events_ozone.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/events_ozone.cc
diff --git a/ui/events/ozone/events_ozone.cc b/ui/events/ozone/events_ozone.cc
index f04824cf6177048d808aafa59bbe202fa9814e03..cd5c11919b10cbc98241d07ef83b303baef9bbea 100644
--- a/ui/events/ozone/events_ozone.cc
+++ b/ui/events/ozone/events_ozone.cc
@@ -31,7 +31,7 @@ gfx::Point EventSystemLocationFromNative(
static_cast<const ui::LocatedEvent*>(native_event);
DCHECK(e->IsMouseEvent() || e->IsTouchEvent() || e->IsGestureEvent() ||
e->IsScrollEvent());
- return e->location();
+ return gfx::ToFlooredPoint(e->location());
}
gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {

Powered by Google App Engine
This is Rietveld 408576698