| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL
    ER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL
    ER_H_ | 
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL
    ER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL
    ER_H_ | 
| 7 | 7 | 
| 8 #include <memory> | 8 #include <memory> | 
| 9 | 9 | 
| 10 #include "base/macros.h" | 10 #include "base/macros.h" | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
| 33   // |processed| is true if the GestureFlingCancel successfully stopped a fling. | 33   // |processed| is true if the GestureFlingCancel successfully stopped a fling. | 
| 34   void GestureFlingCancelAck(bool processed); | 34   void GestureFlingCancelAck(bool processed); | 
| 35 | 35 | 
| 36   // Should be called on arrival of any tap-related events. Returns true if the | 36   // Should be called on arrival of any tap-related events. Returns true if the | 
| 37   // caller should stop normal handling of the gesture. | 37   // caller should stop normal handling of the gesture. | 
| 38   bool FilterTapEvent(const GestureEventWithLatencyInfo& event); | 38   bool FilterTapEvent(const GestureEventWithLatencyInfo& event); | 
| 39 | 39 | 
| 40  private: | 40  private: | 
| 41   // TapSuppressionControllerClient implementation. | 41   // TapSuppressionControllerClient implementation. | 
| 42   void DropStashedTapDown() override; | 42   void DropStashedTapDown() override; | 
|  | 43   void ForwardStashedGestureEvents() override; | 
| 43   void ForwardStashedTapDown() override; | 44   void ForwardStashedTapDown() override; | 
| 44 | 45 | 
| 45   GestureEventQueue* gesture_event_queue_; | 46   GestureEventQueue* gesture_event_queue_; | 
| 46 | 47 | 
| 47   typedef std::unique_ptr<GestureEventWithLatencyInfo> ScopedGestureEvent; | 48   typedef std::unique_ptr<GestureEventWithLatencyInfo> ScopedGestureEvent; | 
| 48   ScopedGestureEvent stashed_tap_down_; | 49   ScopedGestureEvent stashed_tap_down_; | 
| 49   ScopedGestureEvent stashed_show_press_; | 50   ScopedGestureEvent stashed_show_press_; | 
|  | 51   ScopedGestureEvent stashed_long_press_; | 
| 50 | 52 | 
| 51   // The core controller of tap suppression. | 53   // The core controller of tap suppression. | 
| 52   TapSuppressionController controller_; | 54   TapSuppressionController controller_; | 
| 53 | 55 | 
| 54   DISALLOW_COPY_AND_ASSIGN(TouchscreenTapSuppressionController); | 56   DISALLOW_COPY_AND_ASSIGN(TouchscreenTapSuppressionController); | 
| 55 }; | 57 }; | 
| 56 | 58 | 
| 57 }  // namespace content | 59 }  // namespace content | 
| 58 | 60 | 
| 59 #endif  // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTR
    OLLER_H_ | 61 #endif  // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTR
    OLLER_H_ | 
| OLD | NEW | 
|---|