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

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..148d4590df219355daf905a3b1adbfdab4b4dc0b 100644
--- a/ui/events/gesture_detection/gesture_detector.h
+++ b/ui/events/gesture_detection/gesture_detector.h
@@ -99,6 +99,15 @@ 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. The source could be either the current_down_event_ or
+ // secondary_pointer_down_event_.
tdresser 2016/07/22 19:51:28 State that this returns nullptr if the source even
sahel 2016/07/25 15:16:33 Done.
+ const MotionEvent* GetSourcePointerDownEvent(
+ const MotionEvent& current_down_event,
+ const MotionEvent& secondary_pointer_down_event,
+ const int pointer_id);
+ int getPointerIndex(const MotionEvent& event, const int pointer_id);
tdresser 2016/07/22 19:51:28 State that this returns -1 if it can't find it.
sahel 2016/07/25 15:16:33 Done.
+
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