| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_COMMON_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_PARAMS_H_ | 5 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_PARAMS_H_ |
| 6 #define CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_PARAMS_H_ | 6 #define CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_PARAMS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/common/input/synthetic_gesture_params.h" | 11 #include "content/common/input/synthetic_gesture_params.h" |
| 12 #include "ui/gfx/geometry/point.h" | 12 #include "ui/gfx/geometry/point_f.h" |
| 13 #include "ui/gfx/geometry/vector2d.h" | 13 #include "ui/gfx/geometry/vector2d.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 struct CONTENT_EXPORT SyntheticSmoothDragGestureParams | 17 struct CONTENT_EXPORT SyntheticSmoothDragGestureParams |
| 18 : public SyntheticGestureParams { | 18 : public SyntheticGestureParams { |
| 19 public: | 19 public: |
| 20 SyntheticSmoothDragGestureParams(); | 20 SyntheticSmoothDragGestureParams(); |
| 21 SyntheticSmoothDragGestureParams( | 21 SyntheticSmoothDragGestureParams( |
| 22 const SyntheticSmoothDragGestureParams& other); | 22 const SyntheticSmoothDragGestureParams& other); |
| 23 ~SyntheticSmoothDragGestureParams() override; | 23 ~SyntheticSmoothDragGestureParams() override; |
| 24 | 24 |
| 25 GestureType GetGestureType() const override; | 25 GestureType GetGestureType() const override; |
| 26 | 26 |
| 27 gfx::PointF start_point; | 27 gfx::PointF start_point; |
| 28 std::vector<gfx::Vector2dF> distances; | 28 std::vector<gfx::Vector2dF> distances; |
| 29 float speed_in_pixels_s; | 29 float speed_in_pixels_s; |
| 30 | 30 |
| 31 static const SyntheticSmoothDragGestureParams* Cast( | 31 static const SyntheticSmoothDragGestureParams* Cast( |
| 32 const SyntheticGestureParams* gesture_params); | 32 const SyntheticGestureParams* gesture_params); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace content | 35 } // namespace content |
| 36 | 36 |
| 37 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_PARAMS_H_ | 37 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_PARAMS_H_ |
| OLD | NEW |