• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_
6 #define CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_
7 
8 #include "content/common/content_export.h"
9 #include "content/common/input/synthetic_gesture_params.h"
10 #include "ui/gfx/point.h"
11 #include "ui/gfx/vector2d.h"
12 
13 namespace content {
14 
15 struct CONTENT_EXPORT SyntheticSmoothScrollGestureParams
16     : public SyntheticGestureParams {
17  public:
18   SyntheticSmoothScrollGestureParams();
19   SyntheticSmoothScrollGestureParams(
20       const SyntheticSmoothScrollGestureParams& other);
21   virtual ~SyntheticSmoothScrollGestureParams();
22 
23   virtual GestureType GetGestureType() const OVERRIDE;
24 
25   gfx::Vector2d distance;
26   gfx::Point anchor;
27   bool prevent_fling;  // Defaults to true.
28   int speed_in_pixels_s;
29 
30   static const SyntheticSmoothScrollGestureParams* Cast(
31       const SyntheticGestureParams* gesture_params);
32 };
33 
34 }  // namespace content
35 
36 #endif  // CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_
37