Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: content/common/input/synthetic_smooth_scroll_gesture_params.h

Issue 630853003: Replace OVERRIDE and FINAL with override and final in content/common/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_SCROLL_GESTURE_PARAMS_H_ 5 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_
6 #define CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_ 6 #define CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_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/point.h" 12 #include "ui/gfx/point.h"
13 #include "ui/gfx/vector2d.h" 13 #include "ui/gfx/vector2d.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 struct CONTENT_EXPORT SyntheticSmoothScrollGestureParams 17 struct CONTENT_EXPORT SyntheticSmoothScrollGestureParams
18 : public SyntheticGestureParams { 18 : public SyntheticGestureParams {
19 public: 19 public:
20 SyntheticSmoothScrollGestureParams(); 20 SyntheticSmoothScrollGestureParams();
21 SyntheticSmoothScrollGestureParams( 21 SyntheticSmoothScrollGestureParams(
22 const SyntheticSmoothScrollGestureParams& other); 22 const SyntheticSmoothScrollGestureParams& other);
23 virtual ~SyntheticSmoothScrollGestureParams(); 23 virtual ~SyntheticSmoothScrollGestureParams();
24 24
25 virtual GestureType GetGestureType() const OVERRIDE; 25 virtual GestureType GetGestureType() const override;
26 26
27 gfx::Point anchor; 27 gfx::Point anchor;
28 std::vector<gfx::Vector2d> distances; // Positive X/Y to scroll left/up. 28 std::vector<gfx::Vector2d> distances; // Positive X/Y to scroll left/up.
29 bool prevent_fling; // Defaults to true. 29 bool prevent_fling; // Defaults to true.
30 int speed_in_pixels_s; 30 int speed_in_pixels_s;
31 31
32 static const SyntheticSmoothScrollGestureParams* Cast( 32 static const SyntheticSmoothScrollGestureParams* Cast(
33 const SyntheticGestureParams* gesture_params); 33 const SyntheticGestureParams* gesture_params);
34 }; 34 };
35 35
36 } // namespace content 36 } // namespace content
37 37
38 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_ 38 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/input/synthetic_pinch_gesture_params.h ('k') | content/common/input/synthetic_tap_gesture_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698