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

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

Issue 260923003: Revert of Consolidate all touch/gesture related constants in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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.h
diff --git a/content/browser/renderer_host/input/tap_suppression_controller.h b/content/browser/renderer_host/input/tap_suppression_controller.h
index a2d4e44b83145e8912aed91e15ca3eda6f47cba9..ef662f32f7b99bcc03be76b623a98264aef38d07 100644
--- a/content/browser/renderer_host/input/tap_suppression_controller.h
+++ b/content/browser/renderer_host/input/tap_suppression_controller.h
@@ -19,22 +19,7 @@
// GestureFlingCancel are suppressed.
class CONTENT_EXPORT TapSuppressionController {
public:
- struct CONTENT_EXPORT Config {
- Config();
-
- // Defaults to false, in which case no suppression is performed.
- bool enabled;
-
- // The maximum time allowed between a GestureFlingCancel and its
- // corresponding tap down.
- base::TimeDelta max_cancel_to_down_time;
-
- // The maximum time allowed between a single tap's down and up events.
- base::TimeDelta max_tap_gap_time;
- };
-
- TapSuppressionController(TapSuppressionControllerClient* client,
- const Config& config);
+ explicit TapSuppressionController(TapSuppressionControllerClient* client);
virtual ~TapSuppressionController();
// Should be called whenever a GestureFlingCancel event is received.
@@ -64,7 +49,6 @@
friend class MockTapSuppressionController;
enum State {
- DISABLED,
NOTHING,
GFC_IN_PROGRESS,
TAP_DOWN_STASHED,
@@ -75,9 +59,6 @@
TapSuppressionControllerClient* client_;
base::OneShotTimer<TapSuppressionController> tap_down_timer_;
State state_;
-
- base::TimeDelta max_cancel_to_down_time_;
- base::TimeDelta max_tap_gap_time_;
// TODO(rjkroege): During debugging, the event times did not prove reliable.
// Replace the use of base::TimeTicks with an accurate event time when they

Powered by Google App Engine
This is Rietveld 408576698