mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
committed by
Andreas Kling
parent
950e819ee7
commit
93712b24bf
35
Libraries/LibWeb/WebDriver/InputState.h
Normal file
35
Libraries/LibWeb/WebDriver/InputState.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) 2024, Tim Flynn <trflynn89@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/WebDriver/InputSource.h>
|
||||
|
||||
namespace Web::WebDriver {
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-input-state
|
||||
struct InputState {
|
||||
InputState();
|
||||
~InputState();
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-input-state-map
|
||||
HashMap<String, InputSource> input_state_map;
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-input-cancel-list
|
||||
Vector<ActionObject> input_cancel_list;
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-actions-queue
|
||||
Vector<String> actions_queue;
|
||||
};
|
||||
|
||||
InputState& get_input_state(HTML::BrowsingContext&);
|
||||
void reset_input_state(HTML::BrowsingContext&);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user