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

Unified Diff: content/common/input/input_param_traits.cc

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/common/input/input_param_traits.cc
diff --git a/content/common/input/input_param_traits.cc b/content/common/input/input_param_traits.cc
index 0fc7a56f56a2b4973a055dfc3deeb1c7ea92c60d..0b00e722e1ee36a3612e16e7d50a76a5901327be 100644
--- a/content/common/input/input_param_traits.cc
+++ b/content/common/input/input_param_traits.cc
@@ -8,6 +8,7 @@
#include "content/common/content_param_traits.h"
#include "content/common/input/synthetic_pinch_gesture_params.h"
+#include "content/common/input/synthetic_pointer_action_list_params.h"
#include "content/common/input/synthetic_pointer_action_params.h"
#include "content/common/input/synthetic_smooth_drag_gesture_params.h"
#include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
@@ -89,6 +90,10 @@ void ParamTraits<content::SyntheticGesturePacket>::Write(base::Pickle* m,
WriteParam(
m, *content::SyntheticPointerActionParams::Cast(p.gesture_params()));
break;
+ case content::SyntheticGestureParams::POINTER_ACTION_LIST:
+ WriteParam(m, *content::SyntheticPointerActionListParams::Cast(
+ p.gesture_params()));
+ break;
}
}
@@ -118,11 +123,14 @@ bool ParamTraits<content::SyntheticGesturePacket>::Read(
gesture_params =
ReadGestureParams<content::SyntheticTapGestureParams>(m, iter);
break;
- case content::SyntheticGestureParams::POINTER_ACTION: {
+ case content::SyntheticGestureParams::POINTER_ACTION:
gesture_params =
ReadGestureParams<content::SyntheticPointerActionParams>(m, iter);
break;
- }
+ case content::SyntheticGestureParams::POINTER_ACTION_LIST:
+ gesture_params =
+ ReadGestureParams<content::SyntheticPointerActionListParams>(m, iter);
+ break;
default:
return false;
}
@@ -160,6 +168,11 @@ void ParamTraits<content::SyntheticGesturePacket>::Log(const param_type& p,
LogParam(*content::SyntheticPointerActionParams::Cast(p.gesture_params()),
l);
break;
+ case content::SyntheticGestureParams::POINTER_ACTION_LIST:
+ LogParam(
+ *content::SyntheticPointerActionListParams::Cast(p.gesture_params()),
+ l);
+ break;
}
}

Powered by Google App Engine
This is Rietveld 408576698