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

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer.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/input_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index e031993c8e5ecac39f9a33359476526cbd4bf9b8..08e99d30d423d13deb505463d877f48c2339a6a7 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -790,21 +790,14 @@ struct FuzzTraits<content::SyntheticGesturePacket> {
gesture_params.reset(params);
break;
}
- case content::SyntheticGestureParams::GestureType::POINTER_ACTION: {
- content::SyntheticPointerActionParams::PointerActionType action_type;
- gfx::PointF position;
- int index;
- if (!FuzzParam(&action_type, fuzzer))
+ case content::SyntheticGestureParams::GestureType::POINTER_ACTION_LIST: {
+ std::vector<content::SyntheticPointerActionListParams::ParamList>
+ param_list;
+ if (!FuzzParam(&param_list, fuzzer))
return false;
- if (!FuzzParam(&position, fuzzer))
- return false;
- if (!FuzzParam(&index, fuzzer))
- return false;
- content::SyntheticPointerActionParams* params =
- new content::SyntheticPointerActionParams();
- params->set_pointer_action_type(action_type);
- params->set_position(position);
- params->set_index(index);
+ content::SyntheticPointerActionListParams* params =
+ new content::SyntheticPointerActionListParams();
+ params->params = param_list;
gesture_params.reset(params);
break;
}
« no previous file with comments | « content/common/input_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698