Home | History | Annotate | Download | only in input
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h"
      6 
      7 #include "content/browser/renderer_host/input/tap_suppression_controller.h"
      8 
      9 // This is the stub implementation of TouchscreenTapSuppressionController which
     10 // is used on platforms that do not need tap suppression for touchscreen.
     11 
     12 namespace content {
     13 
     14 TouchscreenTapSuppressionController::TouchscreenTapSuppressionController(
     15     GestureEventFilter* /*gef*/)
     16     : gesture_event_filter_(NULL) {}
     17 
     18 TouchscreenTapSuppressionController::~TouchscreenTapSuppressionController() {}
     19 
     20 void TouchscreenTapSuppressionController::GestureFlingCancel() {}
     21 
     22 void TouchscreenTapSuppressionController::GestureFlingCancelAck(
     23     bool /*processed*/) {
     24 }
     25 
     26 bool TouchscreenTapSuppressionController::ShouldDeferGestureTapDown(
     27     const GestureEventWithLatencyInfo& /*event*/) {
     28   return false;
     29 }
     30 
     31 bool TouchscreenTapSuppressionController::ShouldSuppressGestureTap() {
     32   return false;
     33 }
     34 
     35 bool TouchscreenTapSuppressionController::ShouldSuppressGestureTapCancel() {
     36   return false;
     37 }
     38 
     39 int TouchscreenTapSuppressionController::MaxCancelToDownTimeInMs() {
     40   return 0;
     41 }
     42 
     43 int TouchscreenTapSuppressionController::MaxTapGapTimeInMs() {
     44   return 0;
     45 }
     46 
     47 void TouchscreenTapSuppressionController::DropStashedTapDown() {}
     48 
     49 void TouchscreenTapSuppressionController::ForwardStashedTapDownForDeferral() {}
     50 
     51 void TouchscreenTapSuppressionController::ForwardStashedTapDownSkipDeferral() {}
     52 
     53 }  // namespace content
     54