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

Side by Side Diff: content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/browser/renderer_host/input/synthetic_gesture.h" 9 #include "content/browser/renderer_host/input/synthetic_gesture.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture_target.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 12 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
13 #include "content/common/input/synthetic_web_input_event_builders.h" 13 #include "content/common/input/synthetic_web_input_event_builders.h"
14 #include "third_party/WebKit/public/web/WebInputEvent.h" 14 #include "third_party/WebKit/public/web/WebInputEvent.h"
15 #include "ui/gfx/vector2d.h" 15 #include "ui/gfx/geometry/vector2d.h"
16 #include "ui/gfx/vector2d_f.h" 16 #include "ui/gfx/vector2d_f.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 // Simulates scrolling given a sequence of scroll distances as a continuous 20 // Simulates scrolling given a sequence of scroll distances as a continuous
21 // gestures (i.e. when synthesizing touch events, the touch pointer is not 21 // gestures (i.e. when synthesizing touch events, the touch pointer is not
22 // lifted when changing scroll direction). 22 // lifted when changing scroll direction).
23 // If no distance is provided or the first one is 0, no touch events are 23 // If no distance is provided or the first one is 0, no touch events are
24 // generated. 24 // generated.
25 // When synthesizing touch events, the first distance is extended to compensate 25 // When synthesizing touch events, the first distance is extended to compensate
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 int current_scroll_segment_; 82 int current_scroll_segment_;
83 base::TimeTicks current_scroll_segment_start_time_; 83 base::TimeTicks current_scroll_segment_start_time_;
84 base::TimeTicks current_scroll_segment_stop_time_; 84 base::TimeTicks current_scroll_segment_stop_time_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(SyntheticSmoothScrollGesture); 86 DISALLOW_COPY_AND_ASSIGN(SyntheticSmoothScrollGesture);
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_H _ 91 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_SMOOTH_SCROLL_GESTURE_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698