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

Unified Diff: ui/events/gesture_detection/gesture_event_data_packet.h

Issue 349463002: [Android] Map raw touch coordinates to global gesture locations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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/gesture_detection/gesture_event_data_packet.h
diff --git a/ui/events/gesture_detection/gesture_event_data_packet.h b/ui/events/gesture_detection/gesture_event_data_packet.h
index 777b0d5234b5df56f20fae697ffbb56eebb7b937..36d16c58793ba4a40fa3b088f873b5059620c0fc 100644
--- a/ui/events/gesture_detection/gesture_event_data_packet.h
+++ b/ui/events/gesture_detection/gesture_event_data_packet.h
@@ -44,18 +44,21 @@ class GESTURE_DETECTION_EXPORT GestureEventDataPacket {
const GestureEventData& gesture(size_t i) const { return gestures_[i]; }
size_t gesture_count() const { return gesture_count_; }
GestureSource gesture_source() const { return gesture_source_; }
- gfx::PointF touch_location() const { return touch_location_; }
+ const gfx::PointF& touch_location() const { return touch_location_; }
+ const gfx::PointF& raw_touch_location() const { return raw_touch_location_; }
private:
GestureEventDataPacket(base::TimeTicks timestamp,
GestureSource source,
- gfx::PointF touch_location);
+ const gfx::PointF& touch_location,
+ const gfx::PointF& raw_touch_location);
enum { kMaxGesturesPerTouch = 5 };
base::TimeTicks timestamp_;
GestureEventData gestures_[kMaxGesturesPerTouch];
size_t gesture_count_;
gfx::PointF touch_location_;
+ gfx::PointF raw_touch_location_;
GestureSource gesture_source_;
};

Powered by Google App Engine
This is Rietveld 408576698