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(); |
} |