diff options
Diffstat (limited to 'ui/events/event.h')
-rw-r--r-- | ui/events/event.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/events/event.h b/ui/events/event.h index dfd867e..928a2b9 100644 --- a/ui/events/event.h +++ b/ui/events/event.h @@ -248,13 +248,16 @@ class EVENTS_EXPORT LocatedEvent : public Event { // 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_; } + const gfx::PointF& location_f() const { return location_; } void set_root_location(const gfx::PointF& root_location) { root_location_ = root_location; } gfx::Point root_location() const { return gfx::ToFlooredPoint(root_location_); } + const gfx::PointF& root_location_f() const { + return root_location_; + } // Transform the locations using |inverted_root_transform|. // This is applied to both |location_| and |root_location_|. |