| 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_TOUCHPAD_TAP_SUPPRESSION_CONTROLLER_
    H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHPAD_TAP_SUPPRESSION_CONTROLLER_
    H_ | 
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHPAD_TAP_SUPPRESSION_CONTROLLER_
    H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHPAD_TAP_SUPPRESSION_CONTROLLER_
    H_ | 
| 7 | 7 | 
| 8 #include "base/macros.h" | 8 #include "base/macros.h" | 
| 9 #include "content/browser/renderer_host/event_with_latency_info.h" | 9 #include "content/browser/renderer_host/event_with_latency_info.h" | 
| 10 #include "content/browser/renderer_host/input/tap_suppression_controller.h" | 10 #include "content/browser/renderer_host/input/tap_suppression_controller.h" | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 47 | 47 | 
| 48   // Should be called on arrival of MouseUp events. Returns true if the caller | 48   // Should be called on arrival of MouseUp events. Returns true if the caller | 
| 49   // should stop normal handling of the MouseUp. | 49   // should stop normal handling of the MouseUp. | 
| 50   bool ShouldSuppressMouseUp(); | 50   bool ShouldSuppressMouseUp(); | 
| 51 | 51 | 
| 52  private: | 52  private: | 
| 53   friend class MockRenderWidgetHost; | 53   friend class MockRenderWidgetHost; | 
| 54 | 54 | 
| 55   // TapSuppressionControllerClient implementation. | 55   // TapSuppressionControllerClient implementation. | 
| 56   void DropStashedTapDown() override; | 56   void DropStashedTapDown() override; | 
|  | 57   void ForwardStashedGestureEvents() override; | 
| 57   void ForwardStashedTapDown() override; | 58   void ForwardStashedTapDown() override; | 
| 58 | 59 | 
| 59   TouchpadTapSuppressionControllerClient* client_; | 60   TouchpadTapSuppressionControllerClient* client_; | 
| 60   MouseEventWithLatencyInfo stashed_mouse_down_; | 61   MouseEventWithLatencyInfo stashed_mouse_down_; | 
| 61 | 62 | 
| 62   // The core controller of tap suppression. | 63   // The core controller of tap suppression. | 
| 63   TapSuppressionController controller_; | 64   TapSuppressionController controller_; | 
| 64 | 65 | 
| 65   DISALLOW_COPY_AND_ASSIGN(TouchpadTapSuppressionController); | 66   DISALLOW_COPY_AND_ASSIGN(TouchpadTapSuppressionController); | 
| 66 }; | 67 }; | 
| 67 | 68 | 
| 68 }  // namespace content | 69 }  // namespace content | 
| 69 | 70 | 
| 70 #endif  // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHPAD_TAP_SUPPRESSION_CONTROLL
    ER_H_ | 71 #endif  // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHPAD_TAP_SUPPRESSION_CONTROLL
    ER_H_ | 
| OLD | NEW | 
|---|