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

Unified Diff: ui/events/gesture_detection/gesture_provider.cc

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.cc
diff --git a/ui/events/gesture_detection/gesture_provider.cc b/ui/events/gesture_detection/gesture_provider.cc
index 2af92f14576b78182d38270fd2ae68bddc3124af..ef22215b5c68d19da022bdafac1a019ea447afc8 100644
--- a/ui/events/gesture_detection/gesture_provider.cc
+++ b/ui/events/gesture_detection/gesture_provider.cc
@@ -647,13 +647,6 @@ void GestureProvider::ResetGestureDetectors() {
scale_gesture_listener_->OnTouchEvent(*cancel_event);
}
-void GestureProvider::CancelActiveTouchSequence() {
- if (!current_down_event_)
- return;
- OnTouchEvent(*current_down_event_->Cancel());
- current_down_event_.reset();
-}
-
void GestureProvider::SetMultiTouchSupportEnabled(bool enabled) {
scale_gesture_listener_->set_ignore_detector_events(!enabled);
}
« no previous file with comments | « ui/events/gesture_detection/gesture_provider.h ('k') | ui/events/gesture_detection/gesture_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698