mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 16:59:47 +00:00
LibWeb+UI: Rename ChromeInputData to BrowserInputData
This commit is contained in:
parent
47d6747945
commit
e20d7be15f
Notes:
github-actions[bot]
2025-03-15 23:58:47 +00:00
Author: https://github.com/trflynn89
Commit: e20d7be15f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3959
Reviewed-by: https://github.com/awesomekling ✅
5 changed files with 32 additions and 32 deletions
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
namespace Web {
|
||||
|
||||
struct ChromeInputData {
|
||||
virtual ~ChromeInputData() = default;
|
||||
struct BrowserInputData {
|
||||
virtual ~BrowserInputData() = default;
|
||||
};
|
||||
|
||||
struct KeyEvent {
|
||||
|
|
@ -28,7 +28,7 @@ struct KeyEvent {
|
|||
KeyUp,
|
||||
};
|
||||
|
||||
KeyEvent clone_without_chrome_data() const;
|
||||
KeyEvent clone_without_browser_data() const;
|
||||
|
||||
Type type;
|
||||
UIEvents::KeyCode key { UIEvents::KeyCode::Key_Invalid };
|
||||
|
|
@ -36,7 +36,7 @@ struct KeyEvent {
|
|||
u32 code_point { 0 };
|
||||
bool repeat { false };
|
||||
|
||||
OwnPtr<ChromeInputData> chrome_data;
|
||||
OwnPtr<BrowserInputData> browser_data;
|
||||
};
|
||||
|
||||
struct MouseEvent {
|
||||
|
|
@ -48,7 +48,7 @@ struct MouseEvent {
|
|||
DoubleClick,
|
||||
};
|
||||
|
||||
MouseEvent clone_without_chrome_data() const;
|
||||
MouseEvent clone_without_browser_data() const;
|
||||
|
||||
Type type;
|
||||
Web::DevicePixelPoint position;
|
||||
|
|
@ -59,7 +59,7 @@ struct MouseEvent {
|
|||
int wheel_delta_x { 0 };
|
||||
int wheel_delta_y { 0 };
|
||||
|
||||
OwnPtr<ChromeInputData> chrome_data;
|
||||
OwnPtr<BrowserInputData> browser_data;
|
||||
};
|
||||
|
||||
struct DragEvent {
|
||||
|
|
@ -70,7 +70,7 @@ struct DragEvent {
|
|||
Drop,
|
||||
};
|
||||
|
||||
DragEvent clone_without_chrome_data() const;
|
||||
DragEvent clone_without_browser_data() const;
|
||||
|
||||
Type type;
|
||||
Web::DevicePixelPoint position;
|
||||
|
|
@ -80,7 +80,7 @@ struct DragEvent {
|
|||
UIEvents::KeyModifier modifiers { UIEvents::KeyModifier::Mod_None };
|
||||
Vector<HTML::SelectedFile> files;
|
||||
|
||||
OwnPtr<ChromeInputData> chrome_data;
|
||||
OwnPtr<BrowserInputData> browser_data;
|
||||
};
|
||||
|
||||
using InputEvent = Variant<KeyEvent, MouseEvent, DragEvent>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue