| 1424 | } |
| 1425 | |
| 1426 | bool PipelineParser::parse_scroll(const json::value& input, Action::ScrollParam& output, const Action::ScrollParam& default_value) |
| 1427 | { |
| 1428 | if (!parse_action_target(input, "target", output.target, default_value.target)) { |
| 1429 | LogError << "failed to parse_action_target" << VAR(input); |
| 1430 | return false; |
| 1431 | } |
| 1432 | |
| 1433 | if (!get_and_check_value(input, "dx", output.dx, default_value.dx)) { |
| 1434 | LogError << "failed to get_and_check_value dx" << VAR(input); |
| 1435 | return false; |
| 1436 | } |
| 1437 | |
| 1438 | if (!get_and_check_value(input, "dy", output.dy, default_value.dy)) { |
| 1439 | LogError << "failed to get_and_check_value dy" << VAR(input); |
| 1440 | return false; |
| 1441 | } |
| 1442 | |
| 1443 | return true; |
| 1444 | } |
| 1445 | |
| 1446 | bool PipelineParser::parse_shell(const json::value& input, Action::ShellParam& output, const Action::ShellParam& default_value) |
| 1447 | { |
nothing calls this directly
no outgoing calls
no test coverage detected