LibWeb/WebDriver: Extract "wait for an action queue token" algorithm

This reflects part of https://github.com/w3c/webdriver/pull/1853
This commit is contained in:
Sam Atkins 2025-01-03 12:32:21 +00:00 committed by Tim Flynn
commit df702bd4d3
Notes: github-actions[bot] 2025-01-03 21:16:03 +00:00
2 changed files with 15 additions and 8 deletions

View file

@ -128,6 +128,7 @@ using OnActionsComplete = GC::Ref<GC::Function<void(Web::WebDriver::Response)>>;
ErrorOr<Vector<Vector<ActionObject>>, WebDriver::Error> extract_an_action_sequence(InputState&, JsonValue const&, ActionsOptions const&);
void wait_for_an_action_queue_token(InputState&);
GC::Ref<JS::Cell> dispatch_actions(InputState&, Vector<Vector<ActionObject>>, HTML::BrowsingContext&, ActionsOptions, OnActionsComplete);
ErrorOr<void, WebDriver::Error> dispatch_tick_actions(InputState&, ReadonlySpan<ActionObject>, AK::Duration, HTML::BrowsingContext&, ActionsOptions const&);
GC::Ref<JS::Cell> dispatch_list_of_actions(InputState&, Vector<ActionObject>, HTML::BrowsingContext&, ActionsOptions, OnActionsComplete);