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

Unified Diff: ui/events/gesture_detection/mock_motion_event.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/mock_motion_event.h
diff --git a/ui/events/gesture_detection/mock_motion_event.h b/ui/events/gesture_detection/mock_motion_event.h
index 5b4856f2b9c8aa40a7ab79baa072a82196f08578..433de7b3b0821d0ff7c8eef0c6a883df1fc23003 100644
--- a/ui/events/gesture_detection/mock_motion_event.h
+++ b/ui/events/gesture_detection/mock_motion_event.h
@@ -72,10 +72,12 @@ struct MockMotionEvent : public MotionEvent {
void ReleasePoint();
void CancelPoint();
void SetTouchMajor(float new_touch_major);
+ void SetRawOffset(float raw_offset_x, float raw_offset_y);
MotionEvent::Action action;
size_t pointer_count;
gfx::PointF points[MAX_POINTERS];
+ gfx::Vector2dF raw_offset;
base::TimeTicks time;
float touch_major;
int id;

Powered by Google App Engine
This is Rietveld 408576698