| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL
ER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL
ER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/browser/renderer_host/gesture_event_filter.h" | 9 #include "content/browser/renderer_host/input/gesture_event_filter.h" |
| 10 #include "content/browser/renderer_host/tap_suppression_controller_client.h" | 10 #include "content/browser/renderer_host/input/tap_suppression_controller_client.
h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 class GestureEventFilter; | 14 class GestureEventFilter; |
| 15 class TapSuppressionController; | 15 class TapSuppressionController; |
| 16 | 16 |
| 17 // Controls the suppression of touchscreen taps immediately following the | 17 // Controls the suppression of touchscreen taps immediately following the |
| 18 // dispatch of a GestureFlingCancel event. | 18 // dispatch of a GestureFlingCancel event. |
| 19 class TouchscreenTapSuppressionController | 19 class TouchscreenTapSuppressionController |
| 20 : public TapSuppressionControllerClient { | 20 : public TapSuppressionControllerClient { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 GestureEventWithLatencyInfo stashed_tap_down_; | 54 GestureEventWithLatencyInfo stashed_tap_down_; |
| 55 | 55 |
| 56 // The core controller of tap suppression. | 56 // The core controller of tap suppression. |
| 57 scoped_ptr<TapSuppressionController> controller_; | 57 scoped_ptr<TapSuppressionController> controller_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(TouchscreenTapSuppressionController); | 59 DISALLOW_COPY_AND_ASSIGN(TouchscreenTapSuppressionController); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace content | 62 } // namespace content |
| 63 | 63 |
| 64 #endif // CONTENT_BROWSER_RENDERER_HOST_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLLER_
H_ | 64 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTR
OLLER_H_ |
| OLD | NEW |