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

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

Issue 2175803002: The helper functions for slop region check and subtraction are modified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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_detector.h
diff --git a/ui/events/gesture_detection/gesture_detector.h b/ui/events/gesture_detection/gesture_detector.h
index df5e6d5ec773a9b0b304ca139936c73cba7f99c6..5d43b7863da765dabe5374c2e3ef9d94cf83429a 100644
--- a/ui/events/gesture_detection/gesture_detector.h
+++ b/ui/events/gesture_detection/gesture_detector.h
@@ -99,6 +99,14 @@ class GESTURE_DETECTION_EXPORT GestureDetector {
void set_longpress_enabled(bool enabled) { longpress_enabled_ = enabled; }
void set_showpress_enabled(bool enabled) { showpress_enabled_ = enabled; }
+ // Returns the event storing the initial position of the pointer with given
+ // pointer ID.
+ const MotionEvent* GetSourcePointerDownEvent(
+ const MotionEvent& current_down_event,
+ const MotionEvent& secondary_pointer_down_event,
+ const int pid);
tdresser 2016/07/22 15:57:45 Make it clear that this only works for primary and
sahel 2016/07/22 19:46:42 Done.
+ int getPointerIndex(const MotionEvent& event, const int pid);
+
private:
void Init(const Config& config);
void OnShowPressTimeout();
« no previous file with comments | « no previous file | ui/events/gesture_detection/gesture_detector.cc » ('j') | ui/events/gesture_detection/gesture_detector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698