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

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer.cc

Issue 2336803003: Make SyntheticPointerAction to flush the pointer action sequence (Closed)
Patch Set: pointer controller Created 4 years, 2 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: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index ad02ffc79d6ce30510f3f3e6d7b905c85f11206a..194148f2cd21ed601c7fb0cffdde8e6ae0db2275 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -953,20 +953,13 @@ 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::SyntheticPointerActionParams> 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(action_type);
- params->set_position(position);
- params->set_index(index);
+ content::SyntheticPointerActionListParams* params =
+ new content::SyntheticPointerActionListParams();
+ params->param_list = param_list;
gesture_params.reset(params);
break;
}

Powered by Google App Engine
This is Rietveld 408576698