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

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, 3 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..a791c0b11be141a0ad2c549349399d34e9b0da63 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 SyntheticGestureParams& gesture_params,
+ const OnGestureCompleteCallback& completion_callback);
tdresser 2016/09/30 13:24:30 Why are we passing raw Params here? Couldn't we ma
lanwei 2016/10/21 21:53:07 Done.
+
// Forward input events of the currently processed gesture.
void Flush(base::TimeTicks timestamp);
@@ -51,6 +57,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