| 357 | } |
| 358 | |
| 359 | std::tuple<bool, int, int> view_action_interface_t::_validate_position( |
| 360 | const std::vector<variant_t> & args) |
| 361 | { |
| 362 | auto arg_x = _expect_int(args, 0); |
| 363 | auto arg_y = _expect_int(args, 1); |
| 364 | |
| 365 | if (std::get<0>(arg_x) && std::get<0>(arg_y)) |
| 366 | { |
| 367 | return {true, std::get<1>(arg_x), std::get<1>(arg_y)}; |
| 368 | } |
| 369 | |
| 370 | LOGE("View action interface: Invalid arguments. Expected 'move int int."); |
| 371 | |
| 372 | return {false, 0, 0}; |
| 373 | } |
| 374 | |
| 375 | std::tuple<bool, int, int> view_action_interface_t::_validate_size( |
| 376 | const std::vector<variant_t> & args) |
nothing calls this directly
no outgoing calls
no test coverage detected