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

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

Issue 235003005: Consolidate all touch/gesture related constants in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compilation fixes 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/touchscreen_tap_suppression_controller.h
diff --git a/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h b/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h
index 02b5b06433e43617d9a3102595d51b6a0fd2e44b..a9e09f4933150a532fc348f5ce60ba35cbcf691e 100644
--- a/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h
+++ b/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h
@@ -6,20 +6,22 @@
#define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLLER_H_
#include "base/memory/scoped_ptr.h"
-#include "content/browser/renderer_host/input/gesture_event_queue.h"
+#include "content/browser/renderer_host/input/tap_suppression_controller.h"
#include "content/browser/renderer_host/input/tap_suppression_controller_client.h"
+#include "content/port/browser/event_with_latency_info.h"
namespace content {
class GestureEventQueue;
-class TapSuppressionController;
// Controls the suppression of touchscreen taps immediately following the
// dispatch of a GestureFlingCancel event.
class TouchscreenTapSuppressionController
: public TapSuppressionControllerClient {
public:
- explicit TouchscreenTapSuppressionController(GestureEventQueue* geq);
+ TouchscreenTapSuppressionController(
+ GestureEventQueue* geq,
+ const TapSuppressionController::Config& config);
virtual ~TouchscreenTapSuppressionController();
// Should be called on arrival of GestureFlingCancel events.
@@ -35,8 +37,6 @@ class TouchscreenTapSuppressionController
private:
// TapSuppressionControllerClient implementation.
- virtual int MaxCancelToDownTimeInMs() OVERRIDE;
- virtual int MaxTapGapTimeInMs() OVERRIDE;
virtual void DropStashedTapDown() OVERRIDE;
virtual void ForwardStashedTapDown() OVERRIDE;
@@ -47,7 +47,7 @@ class TouchscreenTapSuppressionController
ScopedGestureEvent stashed_show_press_;
// The core controller of tap suppression.
- scoped_ptr<TapSuppressionController> controller_;
+ TapSuppressionController controller_;
DISALLOW_COPY_AND_ASSIGN(TouchscreenTapSuppressionController);
};

Powered by Google App Engine
This is Rietveld 408576698