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

Unified Diff: content/browser/renderer_host/input/tap_suppression_controller.cc

Issue 628763003: Support InputRouter recycling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 2 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: content/browser/renderer_host/input/tap_suppression_controller.cc
diff --git a/content/browser/renderer_host/input/tap_suppression_controller.cc b/content/browser/renderer_host/input/tap_suppression_controller.cc
index c6b17e6ecf623fc85c25b611fd1fd54083ec801d..4c4a1ee70f22b576d694ac57cfe6bfbf917ed3ba 100644
--- a/content/browser/renderer_host/input/tap_suppression_controller.cc
+++ b/content/browser/renderer_host/input/tap_suppression_controller.cc
@@ -111,6 +111,15 @@ bool TapSuppressionController::ShouldSuppressTapEnd() {
return false;
}
+void TapSuppressionController::Reset() {
+ if (state_ == DISABLED)
+ return;
+ tap_down_timer_.Stop();
+ if (state_ == TAP_DOWN_STASHED)
+ client_->DropStashedTapDown();
+ state_ = NOTHING;
+}
+
base::TimeTicks TapSuppressionController::Now() {
return base::TimeTicks::Now();
}

Powered by Google App Engine
This is Rietveld 408576698