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

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

Issue 1884883005: Prepare SyntheticPointerAction to handle touch actions for multiple fingers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make a new class SyntheticPointerActionController Created 4 years, 7 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..4e4ead5d79f08a0c08cbf6139e0c3a7fd0785a6f 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 MockSyntheticGestureController;
+
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.

Powered by Google App Engine
This is Rietveld 408576698