Cleanup: Update the path to insets and point headers.
[chromium-blink-merge.git] / content / common / input / synthetic_smooth_scroll_gesture_params.h
blob813d06dd811c3ba0efe348a84259614db48c9c90
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_
6 #define CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_
8 #include <vector>
10 #include "content/common/content_export.h"
11 #include "content/common/input/synthetic_gesture_params.h"
12 #include "ui/gfx/geometry/point.h"
13 #include "ui/gfx/vector2d.h"
15 namespace content {
17 struct CONTENT_EXPORT SyntheticSmoothScrollGestureParams
18 : public SyntheticGestureParams {
19 public:
20 SyntheticSmoothScrollGestureParams();
21 SyntheticSmoothScrollGestureParams(
22 const SyntheticSmoothScrollGestureParams& other);
23 ~SyntheticSmoothScrollGestureParams() override;
25 GestureType GetGestureType() const override;
27 gfx::Point anchor;
28 std::vector<gfx::Vector2d> distances; // Positive X/Y to scroll left/up.
29 bool prevent_fling; // Defaults to true.
30 int speed_in_pixels_s;
32 static const SyntheticSmoothScrollGestureParams* Cast(
33 const SyntheticGestureParams* gesture_params);
36 } // namespace content
38 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_