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

Unified Diff: ui/events/event_processor_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/events/event_processor_unittest.cc
diff --git a/ui/events/event_processor_unittest.cc b/ui/events/event_processor_unittest.cc
index 048a4cdeae925d38af2a55f0764f2a2bf21daa72..4ecc190a861a678f220c62a172980c036de8eee2 100644
--- a/ui/events/event_processor_unittest.cc
+++ b/ui/events/event_processor_unittest.cc
@@ -66,7 +66,7 @@ class BoundsEventTargeter : public EventTargeter {
virtual bool SubtreeShouldBeExploredForEvent(
EventTarget* target, const LocatedEvent& event) OVERRIDE {
T* t = static_cast<T*>(target);
- return (t->bounds().Contains(event.location()));
+ return (t->bounds().Contains(gfx::ToFlooredPoint(event.location())));
}
};
« ui/events/event.h ('K') | « ui/events/event.h ('k') | ui/events/gestures/gesture_point.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698