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

Unified Diff: ui/events/event.h

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
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/events/event_processor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index ebcdd50aeeec0fe47a52de7e53db39331d9f2009..7299a0513e0545765fc76313bfe7074499f42a1d 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -244,10 +244,7 @@ class EVENTS_EXPORT LocatedEvent : public Event {
float x() const { return location_.x(); }
float y() const { return location_.y(); }
void set_location(const gfx::PointF& location) { location_ = location; }
- // TODO(tdresser): Always return floating point location. See
- // crbug.com/337824.
- gfx::Point location() const { return gfx::ToFlooredPoint(location_); }
- gfx::PointF location_f() const { return location_; }
+ gfx::PointF location() const { return location_; }
void set_root_location(const gfx::PointF& root_location) {
root_location_ = root_location;
}
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/events/event_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698