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

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

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/touchscreen_tap_suppression_controller_stub.cc
diff --git a/content/browser/renderer_host/input/touchscreen_tap_suppression_controller_stub.cc b/content/browser/renderer_host/input/touchscreen_tap_suppression_controller_stub.cc
new file mode 100644
index 0000000000000000000000000000000000000000..243907ea25195670361f7f9ad2f302688b80a3bc
--- /dev/null
+++ b/content/browser/renderer_host/input/touchscreen_tap_suppression_controller_stub.cc
@@ -0,0 +1,43 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h"
+
+#include "content/browser/renderer_host/input/tap_suppression_controller.h"
+
+// This is the stub implementation of TouchscreenTapSuppressionController which
+// is used on platforms that do not need tap suppression for touchscreen.
+
+namespace content {
+
+TouchscreenTapSuppressionController::TouchscreenTapSuppressionController(
+ GestureEventQueue* /*geq*/)
+ : gesture_event_queue_(NULL) {}
+
+TouchscreenTapSuppressionController::~TouchscreenTapSuppressionController() {}
+
+void TouchscreenTapSuppressionController::GestureFlingCancel() {}
+
+void TouchscreenTapSuppressionController::GestureFlingCancelAck(
+ bool /*processed*/) {
+}
+
+bool TouchscreenTapSuppressionController::FilterTapEvent(
+ const GestureEventWithLatencyInfo& /*event*/) {
+ return false;
+}
+
+int TouchscreenTapSuppressionController::MaxCancelToDownTimeInMs() {
+ return 0;
+}
+
+int TouchscreenTapSuppressionController::MaxTapGapTimeInMs() {
+ return 0;
+}
+
+void TouchscreenTapSuppressionController::DropStashedTapDown() {}
+
+void TouchscreenTapSuppressionController::ForwardStashedTapDown() {}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698