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

Unified Diff: ui/events/gesture_detection/gesture_provider.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
Index: ui/events/gesture_detection/gesture_provider.h
diff --git a/ui/events/gesture_detection/gesture_provider.h b/ui/events/gesture_detection/gesture_provider.h
index ad2c106b9753b3f30c006daea61b98ad144f913e..d8542194ccecf19864e1a337354629a2826a9816 100644
--- a/ui/events/gesture_detection/gesture_provider.h
+++ b/ui/events/gesture_detection/gesture_provider.h
@@ -45,12 +45,6 @@ class GESTURE_DETECTION_EXPORT GestureProvider {
// Resets all gesture detectors; called on DidStartLoading().
void ResetGestureDetectors();
- // Cancel the current touch event sequence by sending ACTION_CANCEL, and
- // ignore all the subsequent events until the next ACTION_DOWN.
- // One example usecase is to stop processing the touch events when showing
- // a context popup menu.
- void CancelActiveTouchSequence();
-
// Update whether multi-touch gestures are supported.
void SetMultiTouchSupportEnabled(bool enabled);
@@ -79,6 +73,11 @@ class GESTURE_DETECTION_EXPORT GestureProvider {
// whether double-tap is supported), see |Config.disable_click_delay|.
bool IsClickDelayDisabled() const;
+ // May be NULL if there is no currently active touch sequence.
+ const ui::MotionEvent* current_down_event() const {
+ return current_down_event_.get();
+ }
+
private:
void InitGestureDetectors(const Config& config);
« no previous file with comments | « content/browser/renderer_host/input/web_input_event_util.cc ('k') | ui/events/gesture_detection/gesture_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698