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

Unified Diff: ash/host/ash_window_tree_host_x11_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: ash/host/ash_window_tree_host_x11_unittest.cc
diff --git a/ash/host/ash_window_tree_host_x11_unittest.cc b/ash/host/ash_window_tree_host_x11_unittest.cc
index efd25c04e26e5fb849f5fd2e9f288aa7460f12e5..25a516b5b28fb94d87e1829ef9f9d775c08ee69e 100644
--- a/ash/host/ash_window_tree_host_x11_unittest.cc
+++ b/ash/host/ash_window_tree_host_x11_unittest.cc
@@ -34,7 +34,7 @@ class RootWindowEventHandler : public ui::EventHandler {
virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE {
last_touch_id_ = event->touch_id();
last_touch_type_ = event->type();
- last_touch_location_ = event->location();
+ last_touch_location_ = gfx::ToFlooredPoint(event->location());
}
ui::EventType last_touch_type() { return last_touch_type_; }

Powered by Google App Engine
This is Rietveld 408576698