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

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 5120d00b6c20dd216930b582930727eea5d253aa..9a31872bcea61e36252b0c4d2f152dd288ef0cae 100644
--- a/ui/events/gesture_detection/gesture_provider.cc
+++ b/ui/events/gesture_detection/gesture_provider.cc
@@ -643,11 +643,11 @@ void GestureProvider::ResetGestureDetectors() {
scale_gesture_listener_->OnTouchEvent(*cancel_event);
}
-void GestureProvider::CancelActiveTouchSequence() {
+bool GestureProvider::CancelActiveTouchSequence() {
if (!current_down_event_)
- return;
+ return false;
OnTouchEvent(*current_down_event_->Cancel());
- current_down_event_.reset();
+ return true;
}
void GestureProvider::SetMultiTouchSupportEnabled(bool enabled) {

Powered by Google App Engine
This is Rietveld 408576698