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

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

Issue 293683002: Synthetic pinch gesture take scale factor as parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 years, 7 months 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 | Annotate | Revision Log
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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698