Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_H_ | |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_H_ | |
| 7 | |
| 8 #include "content/browser/renderer_host/input/synthetic_smooth_move_gesture.h" | |
| 9 | |
| 10 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" | |
| 11 | |
| 12 namespace content { | |
| 13 class CONTENT_EXPORT SyntheticSmoothDragGesture : public SyntheticGesture { | |
| 14 public: | |
| 15 explicit SyntheticSmoothDragGesture( | |
| 16 const SyntheticSmoothDragGestureParams& params); | |
| 17 ~SyntheticSmoothDragGesture() override; | |
| 18 | |
| 19 // SyntheticGesture implementation: | |
| 20 SyntheticGesture::Result ForwardInputEvents( | |
| 21 const base::TimeTicks& timestamp, | |
| 22 SyntheticGestureTarget* target) override; | |
| 23 | |
| 24 private: | |
| 25 SyntheticSmoothMoveGesture::InputType GetInputSourceType( | |
|
Sami
2015/02/19 11:59:05
nit: could be a static member function.
ssid
2015/02/20 10:58:54
Done.
| |
| 26 SyntheticGestureParams::GestureSourceType gesture_source_type); | |
| 27 | |
| 28 bool drag_setup_; | |
| 29 scoped_ptr<SyntheticSmoothMoveGesture> move_gesture_; | |
| 30 SyntheticSmoothDragGestureParams params_; | |
| 31 }; | |
| 32 | |
| 33 } // namespace content | |
| 34 | |
| 35 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_SMOOTH_DRAG_GESTURE_H_ | |
| OLD | NEW |