| 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 19 matching lines...) Expand all  Loading... | 
|  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::DropStashedTapDown() { |  37 void TouchpadTapSuppressionController::DropStashedTapDown() { | 
|  38 } |  38 } | 
|  39  |  39  | 
 |  40 void TouchpadTapSuppressionController::ForwardStashedGestureEvents() { | 
 |  41   // Mouse downs are not handled by gesture event filter; so, they are | 
 |  42   // immediately forwarded to the renderer. | 
 |  43   client_->SendMouseEventImmediately(stashed_mouse_down_); | 
 |  44 } | 
 |  45  | 
|  40 void TouchpadTapSuppressionController::ForwardStashedTapDown() { |  46 void TouchpadTapSuppressionController::ForwardStashedTapDown() { | 
|  41   // Mouse downs are not handled by gesture event filter; so, they are |  47   // Mouse downs are not handled by gesture event filter; so, they are | 
|  42   // immediately forwarded to the renderer. |  48   // immediately forwarded to the renderer. | 
|  43   client_->SendMouseEventImmediately(stashed_mouse_down_); |  49   client_->SendMouseEventImmediately(stashed_mouse_down_); | 
|  44 } |  50 } | 
|  45  |  51  | 
|  46 }  // namespace content |  52 }  // namespace content | 
| OLD | NEW |