mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
This ports MouseEvent, UIEvent, WheelEvent, and Event to new String. They all had a dependency to T::create() in WebDriverConnection::fire_an_event() and therefore had to be ported in the same commit.
31 lines
801 B
Plaintext
31 lines
801 B
Plaintext
// https://w3c.github.io/uievents/#mouseevent
|
|
[Exposed=Window, UseNewAKString]
|
|
interface MouseEvent : UIEvent {
|
|
|
|
readonly attribute double offsetX;
|
|
readonly attribute double offsetY;
|
|
readonly attribute double clientX;
|
|
readonly attribute double clientY;
|
|
readonly attribute double screenX;
|
|
readonly attribute double screenY;
|
|
readonly attribute double x;
|
|
readonly attribute double y;
|
|
readonly attribute double pageX;
|
|
readonly attribute double pageY;
|
|
|
|
readonly attribute short button;
|
|
readonly attribute unsigned short buttons;
|
|
};
|
|
|
|
dictionary MouseEventInit : EventModifierInit {
|
|
|
|
// FIXME: offsetX and offsetY shouldn't be here.
|
|
double offsetX = 0;
|
|
double offsetY = 0;
|
|
double clientX = 0;
|
|
double clientY = 0;
|
|
|
|
short button = 0;
|
|
|
|
};
|