Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(875)

Side by Side Diff: content/browser/renderer_host/input/synthetic_touchscreen_pinch_gesture.h

Issue 2478423002: Rename SyntheticPointer to SyntheticPointerDriver (Closed)
Patch Set: rename Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_TOUCHSCREEN_PINCH_GESTURE_ H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHSCREEN_PINCH_GESTURE_ H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHSCREEN_PINCH_GESTURE_ H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHSCREEN_PINCH_GESTURE_ H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture.h"
11 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" 11 #include "content/browser/renderer_host/input/synthetic_gesture_target.h"
12 #include "content/browser/renderer_host/input/synthetic_pointer.h" 12 #include "content/browser/renderer_host/input/synthetic_pointer_driver.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/common/input/synthetic_pinch_gesture_params.h" 14 #include "content/common/input/synthetic_pinch_gesture_params.h"
15 #include "content/common/input/synthetic_web_input_event_builders.h" 15 #include "content/common/input/synthetic_web_input_event_builders.h"
16 #include "third_party/WebKit/public/platform/WebInputEvent.h" 16 #include "third_party/WebKit/public/platform/WebInputEvent.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 class CONTENT_EXPORT SyntheticTouchscreenPinchGesture 20 class CONTENT_EXPORT SyntheticTouchscreenPinchGesture
21 : public SyntheticGesture { 21 : public SyntheticGesture {
22 public: 22 public:
(...skipping 18 matching lines...) Expand all
41 const base::TimeTicks& timestamp); 41 const base::TimeTicks& timestamp);
42 void ReleaseTouchPoints(SyntheticGestureTarget* target, 42 void ReleaseTouchPoints(SyntheticGestureTarget* target,
43 const base::TimeTicks& timestamp); 43 const base::TimeTicks& timestamp);
44 44
45 void SetupCoordinatesAndStopTime(SyntheticGestureTarget* target); 45 void SetupCoordinatesAndStopTime(SyntheticGestureTarget* target);
46 float GetDeltaForPointer0AtTime(const base::TimeTicks& timestamp) const; 46 float GetDeltaForPointer0AtTime(const base::TimeTicks& timestamp) const;
47 base::TimeTicks ClampTimestamp(const base::TimeTicks& timestamp) const; 47 base::TimeTicks ClampTimestamp(const base::TimeTicks& timestamp) const;
48 bool HasReachedTarget(const base::TimeTicks& timestamp) const; 48 bool HasReachedTarget(const base::TimeTicks& timestamp) const;
49 49
50 SyntheticPinchGestureParams params_; 50 SyntheticPinchGestureParams params_;
51 std::unique_ptr<SyntheticPointer> synthetic_pointer_; 51 std::unique_ptr<SyntheticPointerDriver> synthetic_pointer_driver_;
52 float start_y_0_; 52 float start_y_0_;
53 float start_y_1_; 53 float start_y_1_;
54 float max_pointer_delta_0_; 54 float max_pointer_delta_0_;
55 SyntheticGestureParams::GestureSourceType gesture_source_type_; 55 SyntheticGestureParams::GestureSourceType gesture_source_type_;
56 GestureState state_; 56 GestureState state_;
57 base::TimeTicks start_time_; 57 base::TimeTicks start_time_;
58 base::TimeTicks stop_time_; 58 base::TimeTicks stop_time_;
59 59
60 private: 60 private:
61 DISALLOW_COPY_AND_ASSIGN(SyntheticTouchscreenPinchGesture); 61 DISALLOW_COPY_AND_ASSIGN(SyntheticTouchscreenPinchGesture);
62 }; 62 };
63 63
64 } // namespace content 64 } // namespace content
65 65
66 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHSCREEN_PINCH_GESTU RE_H_ 66 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_TOUCHSCREEN_PINCH_GESTU RE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698