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