OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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/touchpad_tap_suppression_controller.h" |
| 6 |
| 7 #include <utility> |
| 8 |
| 9 // The default implementation of the TouchpadTapSuppressionController does not |
| 10 // suppress taps. Tap suppression is needed only on CrOS. |
| 11 |
| 12 namespace content { |
| 13 |
| 14 TouchpadTapSuppressionController::TouchpadTapSuppressionController( |
| 15 RenderWidgetHostImpl* /*rwhv*/) |
| 16 : render_widget_host_(NULL) { |
| 17 } |
| 18 |
| 19 TouchpadTapSuppressionController::~TouchpadTapSuppressionController() {} |
| 20 |
| 21 bool TouchpadTapSuppressionController::ShouldSuppressMouseUp() { return false; } |
| 22 |
| 23 bool TouchpadTapSuppressionController::ShouldDeferMouseDown( |
| 24 const WebKit::WebMouseEvent& event) { |
| 25 return false; |
| 26 } |
| 27 |
| 28 void TouchpadTapSuppressionController::GestureFlingCancelAck( |
| 29 bool /*processed*/) { |
| 30 } |
| 31 |
| 32 void TouchpadTapSuppressionController::GestureFlingCancel( |
| 33 double /*cancel_time*/) { |
| 34 } |
| 35 |
| 36 void TouchpadTapSuppressionController::MouseDownTimerExpired() {} |
| 37 |
| 38 } // namespace content |
OLD | NEW |