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

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
« no previous file with comments | « no previous file | ui/events/gesture_detection/gesture_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f1366c794761f2244997a82c449ed0838375d2a4 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. This returns nullptr if the source event isn't
+ // current_down_event_ or secondary_pointer_down_event_.
+ const MotionEvent* GetSourcePointerDownEvent(
+ const MotionEvent& current_down_event,
+ const MotionEvent& secondary_pointer_down_event,
+ const int pointer_id);
+
private:
void Init(const Config& config);
void OnShowPressTimeout();
« no previous file with comments | « no previous file | ui/events/gesture_detection/gesture_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698