| 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_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 | 9 |
| 10 // This class provides an interface for callbacks made by | 10 // This class provides an interface for callbacks made by |
| 11 // TapSuppressionController. | 11 // TapSuppressionController. |
| 12 class TapSuppressionControllerClient { | 12 class TapSuppressionControllerClient { |
| 13 public: | 13 public: |
| 14 virtual ~TapSuppressionControllerClient() {} | 14 virtual ~TapSuppressionControllerClient() {} |
| 15 | 15 |
| 16 // Derived classes should implement this function to return the maximum time | |
| 17 // they allow between a GestureFlingCancel and its corresponding tap down. | |
| 18 virtual int MaxCancelToDownTimeInMs() = 0; | |
| 19 | |
| 20 // Derived classes should implement this function to return the maximum time | |
| 21 // they allow between a single tap's down and up events. | |
| 22 virtual int MaxTapGapTimeInMs() = 0; | |
| 23 | |
| 24 // Called whenever the deferred tap down (if saved) should be dropped totally. | 16 // Called whenever the deferred tap down (if saved) should be dropped totally. |
| 25 virtual void DropStashedTapDown() = 0; | 17 virtual void DropStashedTapDown() = 0; |
| 26 | 18 |
| 27 // Called whenever the deferred tap down (if saved) should be forwarded to the | 19 // Called whenever the deferred tap down (if saved) should be forwarded to the |
| 28 // renderer. The tap down should go back to normal path it was | 20 // renderer. The tap down should go back to normal path it was |
| 29 // on before being deferred. | 21 // on before being deferred. |
| 30 virtual void ForwardStashedTapDown() = 0; | 22 virtual void ForwardStashedTapDown() = 0; |
| 31 | 23 |
| 32 protected: | 24 protected: |
| 33 TapSuppressionControllerClient() {} | 25 TapSuppressionControllerClient() {} |
| 34 | 26 |
| 35 private: | 27 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(TapSuppressionControllerClient); | 28 DISALLOW_COPY_AND_ASSIGN(TapSuppressionControllerClient); |
| 37 }; | 29 }; |
| 38 | 30 |
| 39 } // namespace content | 31 } // namespace content |
| 40 | 32 |
| 41 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT
_H_ | 33 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT
_H_ |
| OLD | NEW |