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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_controller.h

Issue 2336803003: Make SyntheticPointerAction to flush the pointer action sequence (Closed)
Patch Set: controller Created 4 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 side-by-side diff with in-line comments
Download patch
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..9c7eac1b844f271c3fd6aee72609f402c7865495 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_controller.h
+++ b/content/browser/renderer_host/input/synthetic_gesture_controller.h
@@ -14,6 +14,7 @@
#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"
@@ -43,6 +44,9 @@ class CONTENT_EXPORT SyntheticGestureController {
// fully flushed from the input pipeline (i.e., sent, processed and ack'ed).
void OnDidFlushInput();
+ std::unique_ptr<SyntheticGesture> CreateSyntheticPointerAction(
+ const SyntheticPointerActionListParams& gesture_params);
+
private:
void StartGesture(const SyntheticGesture& gesture);
void StopGesture(const SyntheticGesture& gesture,
@@ -51,6 +55,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.

Powered by Google App Engine
This is Rietveld 408576698