| Index: content/browser/renderer_host/input/synthetic_gesture_controller.h
|
| diff --git a/content/browser/renderer_host/input/synthetic_gesture_controller.h b/content/browser/renderer_host/input/synthetic_gesture_controller.h
|
| index 5a92f31edf4ff8de63ad723c3f370d5f155d33fa..bdd2fdde0abc5121e592b61e24be0e0cc3173b6b 100644
|
| --- a/content/browser/renderer_host/input/synthetic_gesture_controller.h
|
| +++ b/content/browser/renderer_host/input/synthetic_gesture_controller.h
|
| @@ -14,8 +14,10 @@
|
| #include "base/memory/scoped_vector.h"
|
| #include "base/time/time.h"
|
| #include "content/browser/renderer_host/input/synthetic_gesture.h"
|
| +#include "content/browser/renderer_host/input/synthetic_pointer_action_controller.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/input/synthetic_gesture_params.h"
|
| +#include "content/common/input/synthetic_pointer_action_params.h"
|
|
|
| namespace content {
|
|
|
| @@ -36,6 +38,10 @@ class CONTENT_EXPORT SyntheticGestureController {
|
| std::unique_ptr<SyntheticGesture> synthetic_gesture,
|
| const OnGestureCompleteCallback& completion_callback);
|
|
|
| + void QueueSyntheticPointerAction(
|
| + const SyntheticPointerActionParams& gesture_params,
|
| + const OnGestureCompleteCallback& completion_callback);
|
| +
|
| // Forward input events of the currently processed gesture.
|
| void Flush(base::TimeTicks timestamp);
|
|
|
| @@ -43,7 +49,11 @@ class CONTENT_EXPORT SyntheticGestureController {
|
| // fully flushed from the input pipeline (i.e., sent, processed and ack'ed).
|
| void OnDidFlushInput();
|
|
|
| + void ResetSyntheticPointer();
|
| +
|
| private:
|
| + friend class TestSyntheticGestureController;
|
| +
|
| void StartGesture(const SyntheticGesture& gesture);
|
| void StopGesture(const SyntheticGesture& gesture,
|
| const OnGestureCompleteCallback& completion_callback,
|
| @@ -51,6 +61,7 @@ class CONTENT_EXPORT SyntheticGestureController {
|
|
|
| std::unique_ptr<SyntheticGestureTarget> gesture_target_;
|
| std::unique_ptr<SyntheticGesture::Result> pending_gesture_result_;
|
| + SyntheticPointerActionController pointer_action_controller_;
|
|
|
| // A queue of gesture/callback pairs. Implemented as two queues to
|
| // simplify the ownership of SyntheticGesture pointers.
|
|
|