Chromium Code Reviews| Index: content/common/input/synthetic_smooth_drag_gesture_params.h |
| diff --git a/content/common/input/synthetic_smooth_scroll_gesture_params.h b/content/common/input/synthetic_smooth_drag_gesture_params.h |
| similarity index 42% |
| copy from content/common/input/synthetic_smooth_scroll_gesture_params.h |
| copy to content/common/input/synthetic_smooth_drag_gesture_params.h |
| index 1fd0b303b7d04b86559a459e13387bbf4a3bd003..c741ef4d799b468461d90db7b0fef556e8b4f8ed 100644 |
| --- a/content/common/input/synthetic_smooth_scroll_gesture_params.h |
| +++ b/content/common/input/synthetic_smooth_drag_gesture_params.h |
| @@ -1,9 +1,9 @@ |
| -// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_ |
| -#define CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_ |
| +#ifndef CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_PARAMS_H_ |
| +#define CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_PARAMS_H_ |
| #include <vector> |
| @@ -14,25 +14,24 @@ |
| namespace content { |
| -struct CONTENT_EXPORT SyntheticSmoothScrollGestureParams |
| +struct CONTENT_EXPORT SyntheticSmoothDragGestureParams |
| : public SyntheticGestureParams { |
| public: |
| - SyntheticSmoothScrollGestureParams(); |
| - SyntheticSmoothScrollGestureParams( |
| - const SyntheticSmoothScrollGestureParams& other); |
| - ~SyntheticSmoothScrollGestureParams() override; |
| + SyntheticSmoothDragGestureParams(); |
| + SyntheticSmoothDragGestureParams( |
| + const SyntheticSmoothDragGestureParams& other); |
| + ~SyntheticSmoothDragGestureParams() override; |
| GestureType GetGestureType() const override; |
| - gfx::Point anchor; |
| - std::vector<gfx::Vector2d> distances; // Positive X/Y to scroll left/up. |
| - bool prevent_fling; // Defaults to true. |
| + gfx::PointF start_point; |
| + std::vector<gfx::Vector2d> distances; |
| int speed_in_pixels_s; |
|
picksi
2015/02/19 11:50:18
would pixels_per_second be a better name - that wa
ssid
2015/02/20 10:58:55
This will need to be changed in other files too. W
|
| - static const SyntheticSmoothScrollGestureParams* Cast( |
| + static const SyntheticSmoothDragGestureParams* Cast( |
| const SyntheticGestureParams* gesture_params); |
| }; |
| } // namespace content |
| -#endif // CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_ |
| +#endif // CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_PARAMS_H_ |