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

Unified Diff: ui/events/gesture_detection/mock_motion_event.cc

Issue 178193022: [Android] Always insert a TouchCancel if window or tab focus is lost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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/events/gesture_detection/mock_motion_event.h ('k') | ui/events/gesture_detection/motion_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/mock_motion_event.cc
diff --git a/ui/events/gesture_detection/mock_motion_event.cc b/ui/events/gesture_detection/mock_motion_event.cc
index 59d938e207d2d1f5bb183f4ca8210a739ce20273..7c41d8dbafa26f988e72c889d171aed761070c52 100644
--- a/ui/events/gesture_detection/mock_motion_event.cc
+++ b/ui/events/gesture_detection/mock_motion_event.cc
@@ -72,6 +72,10 @@ float MockMotionEvent::GetTouchMajor(size_t pointer_index) const {
return kTouchMajor;
}
+float MockMotionEvent::GetPressure(size_t pointer_index) const {
+ return 0;
+}
+
TimeTicks MockMotionEvent::GetEventTime() const { return time; }
size_t MockMotionEvent::GetHistorySize() const { return 0; }
« no previous file with comments | « ui/events/gesture_detection/mock_motion_event.h ('k') | ui/events/gesture_detection/motion_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698