mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 14:48:11 +00: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.
22 lines
636 B
Text
22 lines
636 B
Text
#import <UIEvents/MouseEvent.idl>
|
|
|
|
// https://www.w3.org/TR/uievents/#idl-wheelevent
|
|
[Exposed=Window, UseNewAKString]
|
|
interface WheelEvent : MouseEvent {
|
|
// DeltaModeCode
|
|
const unsigned long DOM_DELTA_PIXEL = 0x00;
|
|
const unsigned long DOM_DELTA_LINE = 0x01;
|
|
const unsigned long DOM_DELTA_PAGE = 0x02;
|
|
|
|
readonly attribute double deltaX;
|
|
readonly attribute double deltaY;
|
|
readonly attribute double deltaZ;
|
|
readonly attribute unsigned long deltaMode;
|
|
};
|
|
|
|
dictionary WheelEventInit : MouseEventInit {
|
|
double deltaX = 0;
|
|
double deltaY = 0;
|
|
double deltaZ = 0;
|
|
unsigned long deltaMode = 0;
|
|
};
|