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_PINCH_GESTURE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_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/browser/renderer_host/input/synthetic_gesture_target.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 const base::TimeTicks& timestamp); | 46 const base::TimeTicks& timestamp); |
47 | 47 |
48 void SetupCoordinatesAndStopTime(SyntheticGestureTarget* target); | 48 void SetupCoordinatesAndStopTime(SyntheticGestureTarget* target); |
49 float GetDeltaForPointer0AtTime(const base::TimeTicks& timestamp) const; | 49 float GetDeltaForPointer0AtTime(const base::TimeTicks& timestamp) const; |
50 base::TimeTicks ClampTimestamp(const base::TimeTicks& timestamp) const; | 50 base::TimeTicks ClampTimestamp(const base::TimeTicks& timestamp) const; |
51 bool HasReachedTarget(const base::TimeTicks& timestamp) const; | 51 bool HasReachedTarget(const base::TimeTicks& timestamp) const; |
52 | 52 |
53 SyntheticPinchGestureParams params_; | 53 SyntheticPinchGestureParams params_; |
54 float start_y_0_; | 54 float start_y_0_; |
55 float start_y_1_; | 55 float start_y_1_; |
| 56 float max_pointer_delta_0_; |
56 SyntheticGestureParams::GestureSourceType gesture_source_type_; | 57 SyntheticGestureParams::GestureSourceType gesture_source_type_; |
57 GestureState state_; | 58 GestureState state_; |
58 SyntheticWebTouchEvent touch_event_; | 59 SyntheticWebTouchEvent touch_event_; |
59 base::TimeTicks start_time_; | 60 base::TimeTicks start_time_; |
60 base::TimeTicks stop_time_; | 61 base::TimeTicks stop_time_; |
61 | 62 |
62 private: | 63 private: |
63 DISALLOW_COPY_AND_ASSIGN(SyntheticPinchGesture); | 64 DISALLOW_COPY_AND_ASSIGN(SyntheticPinchGesture); |
64 }; | 65 }; |
65 | 66 |
66 } // namespace content | 67 } // namespace content |
67 | 68 |
68 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ | 69 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_PINCH_GESTURE_H_ |
OLD | NEW |