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

Unified Diff: ui/aura/window_unittest.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/aura/window_unittest.cc
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index c0bb6a56a289bcab2ec67866fa586192dd5b2f6a..70fc60b641af0caf245cae118e90ddb7c7ecfc72 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -205,7 +205,7 @@ class GestureTrackPositionDelegate : public TestWindowDelegate {
GestureTrackPositionDelegate() {}
virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE {
- position_ = event->location();
+ position_ = gfx::ToFlooredPoint(event->location());
event->StopPropagation();
}
« no previous file with comments | « ui/aura/window_targeter.cc ('k') | ui/events/event.h » ('j') | ui/events/event.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698