| 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 24 matching lines...) Expand all Loading... |
| 35 // Returns the default gesture source type for the target. | 35 // Returns the default gesture source type for the target. |
| 36 virtual SyntheticGestureParams::GestureSourceType | 36 virtual SyntheticGestureParams::GestureSourceType |
| 37 GetDefaultSyntheticGestureSourceType() const = 0; | 37 GetDefaultSyntheticGestureSourceType() const = 0; |
| 38 | 38 |
| 39 // After how much time of inaction does the target assume that a pointer has | 39 // After how much time of inaction does the target assume that a pointer has |
| 40 // stopped moving. | 40 // stopped moving. |
| 41 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0; | 41 virtual base::TimeDelta PointerAssumedStoppedTime() const = 0; |
| 42 | 42 |
| 43 // Returns the maximum number of DIPs a touch pointer can move without being | 43 // Returns the maximum number of DIPs a touch pointer can move without being |
| 44 // considered moving by the platform. | 44 // considered moving by the platform. |
| 45 virtual int GetTouchSlopInDips() const = 0; | 45 virtual float GetTouchSlopInDips() const = 0; |
| 46 |
| 47 // Returns the minimum number of DIPs two touch pointers have to be apart |
| 48 // to perform a pinch-zoom. |
| 49 virtual float GetMinScalingSpanInDips() const = 0; |
| 46 }; | 50 }; |
| 47 | 51 |
| 48 } // namespace content | 52 } // namespace content |
| 49 | 53 |
| 50 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ | 54 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ |
| OLD | NEW |