| 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..0448c8e2ed88ad285a48322e9a44bf2f49f2da12 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::Vector2dF> distances;
|
| int speed_in_pixels_s;
|
|
|
| - 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_
|
|
|