| 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/touchpad_tap_suppression_controller.h" | 5 #include "content/browser/renderer_host/touchpad_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 #include "content/browser/renderer_host/tap_suppression_controller_client.h" | 8 #include "content/browser/renderer_host/tap_suppression_controller_client.h" |
| 9 | 9 |
| 10 // The default implementation of the TouchpadTapSuppressionController does not | 10 // The default implementation of the TouchpadTapSuppressionController does not |
| 11 // suppress taps. Touchpad tap suppression is needed only on CrOS. | 11 // suppress taps. Touchpad tap suppression is needed only on CrOS. |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 TouchpadTapSuppressionController::TouchpadTapSuppressionController( | 15 TouchpadTapSuppressionController::TouchpadTapSuppressionController( |
| 16 RenderWidgetHostImpl* /*rwhv*/) | 16 RenderWidgetHostImpl* /*rwhv*/) |
| 17 : render_widget_host_(NULL), | 17 : render_widget_host_(NULL), |
| 18 controller_(NULL) { | 18 controller_(NULL) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 TouchpadTapSuppressionController::~TouchpadTapSuppressionController() {} | 21 TouchpadTapSuppressionController::~TouchpadTapSuppressionController() {} |
| 22 | 22 |
| 23 void TouchpadTapSuppressionController::GestureFlingCancel() {} | 23 void TouchpadTapSuppressionController::GestureFlingCancel() {} |
| 24 | 24 |
| 25 void TouchpadTapSuppressionController::GestureFlingCancelAck( | 25 void TouchpadTapSuppressionController::GestureFlingCancelAck( |
| 26 bool /*processed*/) { | 26 bool /*processed*/) { |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool TouchpadTapSuppressionController::ShouldDeferMouseDown( | 29 bool TouchpadTapSuppressionController::ShouldDeferMouseDown( |
| 30 const WebKit::WebMouseEvent& /*event*/) { | 30 const MouseEventWithLatencyInfo& /*event*/) { |
| 31 return false; | 31 return false; |
| 32 } | 32 } |
| 33 | 33 |
| 34 bool TouchpadTapSuppressionController::ShouldSuppressMouseUp() { return false; } | 34 bool TouchpadTapSuppressionController::ShouldSuppressMouseUp() { return false; } |
| 35 | 35 |
| 36 int TouchpadTapSuppressionController::MaxCancelToDownTimeInMs() { | 36 int TouchpadTapSuppressionController::MaxCancelToDownTimeInMs() { |
| 37 return 0; | 37 return 0; |
| 38 } | 38 } |
| 39 | 39 |
| 40 int TouchpadTapSuppressionController::MaxTapGapTimeInMs() { | 40 int TouchpadTapSuppressionController::MaxTapGapTimeInMs() { |
| 41 return 0; | 41 return 0; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void TouchpadTapSuppressionController::DropStashedTapDown() { | 44 void TouchpadTapSuppressionController::DropStashedTapDown() { |
| 45 } | 45 } |
| 46 | 46 |
| 47 void TouchpadTapSuppressionController::ForwardStashedTapDownForDeferral() { | 47 void TouchpadTapSuppressionController::ForwardStashedTapDownForDeferral() { |
| 48 } | 48 } |
| 49 | 49 |
| 50 void TouchpadTapSuppressionController::ForwardStashedTapDownSkipDeferral() { | 50 void TouchpadTapSuppressionController::ForwardStashedTapDownSkipDeferral() { |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace content | 53 } // namespace content |
| OLD | NEW |