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

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

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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/motion_event.h
diff --git a/ui/events/gesture_detection/motion_event.h b/ui/events/gesture_detection/motion_event.h
index 637a9c6eca62aafd0c6e78441d44aa4f8304cad7..46677ac876b39eabc5d3f77451b4322bc9e60516 100644
--- a/ui/events/gesture_detection/motion_event.h
+++ b/ui/events/gesture_detection/motion_event.h
@@ -36,6 +36,7 @@ class GESTURE_DETECTION_EXPORT MotionEvent {
virtual float GetX(size_t pointer_index) const = 0;
virtual float GetY(size_t pointer_index) const = 0;
virtual float GetTouchMajor(size_t pointer_index) const = 0;
+ virtual float GetPressure(size_t pointer_index) const = 0;
virtual base::TimeTicks GetEventTime() const = 0;
virtual size_t GetHistorySize() const = 0;
@@ -57,6 +58,7 @@ class GESTURE_DETECTION_EXPORT MotionEvent {
float GetRawX() const { return GetX(); }
float GetRawY() const { return GetY(); }
float GetTouchMajor() const { return GetTouchMajor(0); }
+ float GetPressure() const { return GetPressure(0); }
};
} // namespace ui
« no previous file with comments | « ui/events/gesture_detection/mock_motion_event.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698