| 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_SYNTHETIC_GESTURE_TARGET_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 9 #include "content/browser/renderer_host/input/synthetic_gesture.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual SyntheticGestureParams::GestureSourceType | 37 virtual SyntheticGestureParams::GestureSourceType |
| 38 GetDefaultSyntheticGestureSourceType() const = 0; | 38 GetDefaultSyntheticGestureSourceType() const = 0; |
| 39 | 39 |
| 40 // Check if a particular gesture type is supported by the target. | 40 // Check if a particular gesture type is supported by the target. |
| 41 virtual bool SupportsSyntheticGestureSourceType( | 41 virtual bool SupportsSyntheticGestureSourceType( |
| 42 SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0; | 42 SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0; |
| 43 | 43 |
| 44 // After how much time of inaction does the target assume that a pointer has | 44 // After how much time of inaction does the target assume that a pointer has |
| 45 // stopped moving. | 45 // stopped moving. |
| 46 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0; | 46 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0; |
| 47 |
| 48 // Returns the number of DIPs a touch pointer has to move before it is |
| 49 // considered moving by the platform. |
| 50 virtual int GetTouchSlopInDips() const = 0; |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 } // namespace content | 53 } // namespace content |
| 50 | 54 |
| 51 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ | 55 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ |
| OLD | NEW |