| 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/input/touchpad_tap_suppression_controlle
r.h" |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/input/input_router.h" | 7 #include "content/browser/renderer_host/input/input_router.h" |
| 8 #include "content/browser/renderer_host/tap_suppression_controller.h" | 8 #include "content/browser/renderer_host/input/tap_suppression_controller.h" |
| 9 #include "content/browser/renderer_host/tap_suppression_controller_client.h" | 9 #include "content/browser/renderer_host/input/tap_suppression_controller_client.
h" |
| 10 #include "ui/base/gestures/gesture_configuration.h" | 10 #include "ui/base/gestures/gesture_configuration.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 TouchpadTapSuppressionController::TouchpadTapSuppressionController( | 14 TouchpadTapSuppressionController::TouchpadTapSuppressionController( |
| 15 InputRouter* input_router) | 15 InputRouter* input_router) |
| 16 : input_router_(input_router), | 16 : input_router_(input_router), |
| 17 controller_(new TapSuppressionController(this)) { | 17 controller_(new TapSuppressionController(this)) { |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 input_router_->SendMouseEventImmediately(stashed_mouse_down_); | 56 input_router_->SendMouseEventImmediately(stashed_mouse_down_); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void TouchpadTapSuppressionController::ForwardStashedTapDownSkipDeferral() { | 59 void TouchpadTapSuppressionController::ForwardStashedTapDownSkipDeferral() { |
| 60 // Mouse downs are not handled by gesture event filter; so, they are | 60 // Mouse downs are not handled by gesture event filter; so, they are |
| 61 // immediately forwarded to the renderer. | 61 // immediately forwarded to the renderer. |
| 62 input_router_->SendMouseEventImmediately(stashed_mouse_down_); | 62 input_router_->SendMouseEventImmediately(stashed_mouse_down_); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace content | 65 } // namespace content |
| OLD | NEW |