1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 19:37:35 +00:00

LibWeb: Add comments and missing items of various IDL files

This commit is contained in:
Bastiaan van der Plaat 2023-10-25 17:27:19 +02:00 committed by Andreas Kling
parent fc46def2f5
commit 169d24ae2e
75 changed files with 233 additions and 129 deletions

View file

@ -1,5 +1,6 @@
#import <UIEvents/UIEvent.idl>
// https://www.w3.org/TR/uievents/#idl-focusevent
[Exposed=Window]
interface FocusEvent : UIEvent {
@ -8,6 +9,7 @@ interface FocusEvent : UIEvent {
};
// https://www.w3.org/TR/uievents/#idl-focuseventinit
dictionary FocusEventInit : UIEventInit {
EventTarget? relatedTarget = null;

View file

@ -7,12 +7,12 @@ interface UIEvent : Event {
readonly attribute Window? view;
readonly attribute long detail;
// NOTE: This is "deprecated, but supported for backwards-compatibility with widely-deployed implementations."
// Obsolete
[ImplementedAs=init_ui_event] undefined initUIEvent(DOMString typeArg, optional boolean bubblesArg = false, optional boolean cancelableArg = false, optional Window? viewArg = null, optional long detailArg = 0);
readonly attribute unsigned long which;
};
// https://w3c.github.io/uievents/#idl-uieventinit
dictionary UIEventInit : EventInit {
Window? view = null;
long detail = 0;

View file

@ -14,6 +14,7 @@ interface WheelEvent : MouseEvent {
readonly attribute unsigned long deltaMode;
};
// https://www.w3.org/TR/uievents/#idl-wheeleventinit
dictionary WheelEventInit : MouseEventInit {
double deltaX = 0;
double deltaY = 0;