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

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 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/input/input_param_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..cc3c66b2d7d59d5fa28e664112d584755d390c2b 100644
--- a/content/common/input/input_param_traits.cc
+++ b/content/common/input/input_param_traits.cc
@@ -8,7 +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_params.h"
+#include "content/common/input/synthetic_pointer_action_list_params.h"
#include "content/common/input/synthetic_smooth_drag_gesture_params.h"
#include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
#include "content/common/input_messages.h"
@@ -85,9 +85,9 @@ void ParamTraits<content::SyntheticGesturePacket>::Write(base::Pickle* m,
WriteParam(m, *content::SyntheticTapGestureParams::Cast(
p.gesture_params()));
break;
- case content::SyntheticGestureParams::POINTER_ACTION:
- WriteParam(
- m, *content::SyntheticPointerActionParams::Cast(p.gesture_params()));
+ case content::SyntheticGestureParams::POINTER_ACTION_LIST:
+ WriteParam(m, *content::SyntheticPointerActionListParams::Cast(
+ p.gesture_params()));
break;
}
}
@@ -118,11 +118,10 @@ bool ParamTraits<content::SyntheticGesturePacket>::Read(
gesture_params =
ReadGestureParams<content::SyntheticTapGestureParams>(m, iter);
break;
- case content::SyntheticGestureParams::POINTER_ACTION: {
+ case content::SyntheticGestureParams::POINTER_ACTION_LIST:
gesture_params =
- ReadGestureParams<content::SyntheticPointerActionParams>(m, iter);
+ ReadGestureParams<content::SyntheticPointerActionListParams>(m, iter);
break;
- }
default:
return false;
}
@@ -156,9 +155,10 @@ void ParamTraits<content::SyntheticGesturePacket>::Log(const param_type& p,
*content::SyntheticTapGestureParams::Cast(p.gesture_params()),
l);
break;
- case content::SyntheticGestureParams::POINTER_ACTION:
- LogParam(*content::SyntheticPointerActionParams::Cast(p.gesture_params()),
- l);
+ case content::SyntheticGestureParams::POINTER_ACTION_LIST:
+ LogParam(
+ *content::SyntheticPointerActionListParams::Cast(p.gesture_params()),
+ l);
break;
}
}
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/input/input_param_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698