OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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/input/touchpad_tap_suppression_controlle
r.h" | 5 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 TouchpadTapSuppressionController::TouchpadTapSuppressionController( | 9 TouchpadTapSuppressionController::TouchpadTapSuppressionController( |
10 TouchpadTapSuppressionControllerClient* client, | 10 TouchpadTapSuppressionControllerClient* client, |
(...skipping 16 matching lines...) Expand all Loading... |
27 bool should_defer = controller_.ShouldDeferTapDown(); | 27 bool should_defer = controller_.ShouldDeferTapDown(); |
28 if (should_defer) | 28 if (should_defer) |
29 stashed_mouse_down_ = event; | 29 stashed_mouse_down_ = event; |
30 return should_defer; | 30 return should_defer; |
31 } | 31 } |
32 | 32 |
33 bool TouchpadTapSuppressionController::ShouldSuppressMouseUp() { | 33 bool TouchpadTapSuppressionController::ShouldSuppressMouseUp() { |
34 return controller_.ShouldSuppressTapEnd(); | 34 return controller_.ShouldSuppressTapEnd(); |
35 } | 35 } |
36 | 36 |
| 37 void TouchpadTapSuppressionController::Reset() { |
| 38 controller_.Reset(); |
| 39 } |
| 40 |
37 void TouchpadTapSuppressionController::DropStashedTapDown() { | 41 void TouchpadTapSuppressionController::DropStashedTapDown() { |
38 } | 42 } |
39 | 43 |
40 void TouchpadTapSuppressionController::ForwardStashedTapDown() { | 44 void TouchpadTapSuppressionController::ForwardStashedTapDown() { |
41 // Mouse downs are not handled by gesture event filter; so, they are | 45 // Mouse downs are not handled by gesture event filter; so, they are |
42 // immediately forwarded to the renderer. | 46 // immediately forwarded to the renderer. |
43 client_->SendMouseEventImmediately(stashed_mouse_down_); | 47 client_->SendMouseEventImmediately(stashed_mouse_down_); |
44 } | 48 } |
45 | 49 |
46 } // namespace content | 50 } // namespace content |
OLD | NEW |