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

Unified Diff: content/common/input/synthetic_gesture_params.h

Issue 1707943002: Add SyntheticPointerActionParams used in Chromedriver extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a friend to the IPC SyntheticPointerActionParams Created 4 years, 9 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/common/input/synthetic_gesture_params.h
diff --git a/content/common/input/synthetic_gesture_params.h b/content/common/input/synthetic_gesture_params.h
index 1c40ca98fd2a025e0d3898110e5b4bda6e1c9bb0..46e5926c8c6931febbbc14a1bf10ae5e1ceb04c5 100644
--- a/content/common/input/synthetic_gesture_params.h
+++ b/content/common/input/synthetic_gesture_params.h
@@ -48,8 +48,21 @@ struct CONTENT_EXPORT SyntheticGestureParams {
SMOOTH_DRAG_GESTURE,
PINCH_GESTURE,
TAP_GESTURE,
- SYNTHETIC_GESTURE_TYPE_MAX = TAP_GESTURE
+ POINTER_ACTION,
+ SYNTHETIC_GESTURE_TYPE_MAX = POINTER_ACTION
};
+
+ // When we send actions one by one, once we receive a PROCESS action, we will
+ // start to dispatch a event with all the pending actions.
+ enum class PointerActionType {
tdresser 2016/03/17 18:25:29 Should this be In SyntheticPointerAction or Synthe
tdresser 2016/03/22 14:38:10 Sorry! It would make more sense if this lived in S
+ PRESS,
+ MOVE,
+ RELEASE,
+ DELAY,
tdresser 2016/03/17 18:25:29 If we aren't going to have a test that uses DELAY,
lanwei 2016/03/22 00:33:43 Yes, the current plan is to send one delay per fra
+ PROCESS,
+ POINTER_ACTION_TYPE_MAX = PROCESS
+ };
+
virtual GestureType GetGestureType() const = 0;
// Returns true if the specific gesture source type is supported on this

Powered by Google App Engine
This is Rietveld 408576698