Index: content/browser/renderer_host/touchscreen_tap_suppression_controller.cc |
diff --git a/content/browser/renderer_host/touchscreen_tap_suppression_controller.cc b/content/browser/renderer_host/touchscreen_tap_suppression_controller.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1601ad5bc2d864b7e99dab8930fe697ac91376c7 |
--- /dev/null |
+++ b/content/browser/renderer_host/touchscreen_tap_suppression_controller.cc |
@@ -0,0 +1,46 @@ |
+// Copyright (c) 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/touchscreen_tap_suppression_controller.h" |
+ |
+#include <utility> |
+ |
+// The default implementation of the TouchscreenTapSuppressionController does |
+// not suppress taps. Tap suppression is needed only on CrOS. |
+ |
+namespace content { |
+ |
+TouchscreenTapSuppressionController::TouchscreenTapSuppressionController( |
+ RenderWidgetHostImpl* /*rwhv*/, |
+ GestureEventFilter* /*gef*/) |
+ : render_widget_host_(NULL), |
+ gesture_event_filter_(NULL) { |
+} |
+ |
+TouchscreenTapSuppressionController::~TouchscreenTapSuppressionController() {} |
+ |
+void TouchscreenTapSuppressionController::GestureFlingCancel( |
+ double /*cancel_time*/) { |
+} |
+ |
+void TouchscreenTapSuppressionController::GestureFlingCancelAck( |
+ bool /*processed*/) { |
+} |
+ |
+bool TouchscreenTapSuppressionController::ShouldDeferGestureTapDown( |
+ const WebKit::WebGestureEvent& event) { |
+ return false; |
+} |
+ |
+bool TouchscreenTapSuppressionController::ShouldSuppressGestureTap() { |
+ return false; |
+} |
+ |
+bool TouchscreenTapSuppressionController::ShouldSuppressGestureTapCancel() { |
+ return false; |
+} |
+ |
+void TouchscreenTapSuppressionController::GestureTapDownTimerExpired() {} |
+ |
+} // namespace content |