Skip to content

Commit 8232699

Browse files
authored
Convert JSON events to KDL (#2085)
1 parent f3e25e8 commit 8232699

File tree

3 files changed

+96
-359
lines changed

3 files changed

+96
-359
lines changed

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 242 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
11
{
22
"mixins": {
33
"mixin": {
4-
"DocumentAndElementEventHandlers": {
5-
"events": {
6-
"event": [
7-
{
8-
"name": "copy",
9-
"type": "ClipboardEvent"
10-
},
11-
{
12-
"name": "cut",
13-
"type": "ClipboardEvent"
14-
},
15-
{
16-
"name": "paste",
17-
"type": "ClipboardEvent"
18-
}
19-
]
20-
}
21-
},
224
"DocumentOrShadowRoot": {
235
// Manually moved from Document
246
// See https://github.com/w3c/csswg-drafts/issues/5886 and https://github.com/w3c/csswg-drafts/issues/556
@@ -39,168 +21,6 @@
3921
}
4022
}
4123
},
42-
"GlobalEventHandlers": {
43-
"events": {
44-
"event": [
45-
{
46-
"name": "abort",
47-
"type": "UIEvent"
48-
},
49-
{
50-
"name": "auxclick",
51-
"type": "PointerEvent"
52-
},
53-
{
54-
"name": "beforeinput",
55-
"type": "InputEvent"
56-
},
57-
{
58-
"name": "blur",
59-
"type": "FocusEvent"
60-
},
61-
{
62-
"name": "click",
63-
"type": "PointerEvent"
64-
},
65-
{
66-
"name": "compositionstart",
67-
"type": "CompositionEvent"
68-
},
69-
{
70-
"name": "compositionupdate",
71-
"type": "CompositionEvent"
72-
},
73-
{
74-
"name": "compositionend",
75-
"type": "CompositionEvent"
76-
},
77-
{
78-
"name": "drag",
79-
"type": "DragEvent"
80-
},
81-
{
82-
"name": "dragend",
83-
"type": "DragEvent"
84-
},
85-
{
86-
"name": "dragenter",
87-
"type": "DragEvent"
88-
},
89-
{
90-
"name": "dragleave",
91-
"type": "DragEvent"
92-
},
93-
{
94-
"name": "dragover",
95-
"type": "DragEvent"
96-
},
97-
{
98-
"name": "dragstart",
99-
"type": "DragEvent"
100-
},
101-
{
102-
"name": "drop",
103-
"type": "DragEvent"
104-
},
105-
{
106-
"name": "error",
107-
"type": "ErrorEvent"
108-
},
109-
{
110-
"name": "focus",
111-
"type": "FocusEvent"
112-
},
113-
{
114-
"name": "focusin",
115-
"type": "FocusEvent"
116-
},
117-
{
118-
"name": "focusout",
119-
"type": "FocusEvent"
120-
},
121-
{
122-
"name": "formdata",
123-
"type": "FormDataEvent"
124-
},
125-
{
126-
"name": "keydown",
127-
"type": "KeyboardEvent"
128-
},
129-
{
130-
"name": "keypress",
131-
"type": "KeyboardEvent"
132-
},
133-
{
134-
"name": "keyup",
135-
"type": "KeyboardEvent"
136-
},
137-
{
138-
"name": "mousedown",
139-
"type": "MouseEvent"
140-
},
141-
{
142-
"name": "mouseenter",
143-
"type": "MouseEvent"
144-
},
145-
{
146-
"name": "mouseleave",
147-
"type": "MouseEvent"
148-
},
149-
{
150-
"name": "mousemove",
151-
"type": "MouseEvent"
152-
},
153-
{
154-
"name": "mouseout",
155-
"type": "MouseEvent"
156-
},
157-
{
158-
"name": "mouseover",
159-
"type": "MouseEvent"
160-
},
161-
{
162-
"name": "mouseup",
163-
"type": "MouseEvent"
164-
},
165-
{
166-
"name": "progress",
167-
"type": "ProgressEvent"
168-
},
169-
{
170-
"name": "resize",
171-
"type": "UIEvent"
172-
},
173-
{
174-
"name": "wheel",
175-
"type": "WheelEvent"
176-
},
177-
{
178-
"name": "securitypolicyviolation",
179-
"type": "SecurityPolicyViolationEvent"
180-
},
181-
{
182-
"name": "submit",
183-
"type": "SubmitEvent"
184-
},
185-
{
186-
"name": "dblclick",
187-
"type": "MouseEvent"
188-
},
189-
{
190-
"name": "contextmenu",
191-
"type": "PointerEvent"
192-
},
193-
{
194-
"name": "toggle",
195-
"type": "ToggleEvent"
196-
},
197-
{
198-
"name": "beforetoggle",
199-
"type": "ToggleEvent"
200-
}
201-
]
202-
}
203-
},
20424
"WebGLRenderingContextBase": {
20525
"properties": {
20626
"property": {
@@ -209,68 +29,6 @@
20929
}
21030
}
21131
}
212-
},
213-
"WindowEventHandlers": {
214-
"events": {
215-
"event": [
216-
{
217-
"name": "beforeunload",
218-
"type": "BeforeUnloadEvent"
219-
},
220-
{
221-
"name": "gamepadconnected",
222-
"type": "GamepadEvent"
223-
},
224-
{
225-
"name": "gamepaddisconnected",
226-
"type": "GamepadEvent"
227-
},
228-
{
229-
"name": "hashchange",
230-
"type": "HashChangeEvent"
231-
},
232-
{
233-
"name": "message",
234-
"type": "MessageEvent"
235-
},
236-
{
237-
"name": "messageerror",
238-
"type": "MessageEvent"
239-
},
240-
{
241-
"name": "pagehide",
242-
"type": "PageTransitionEvent"
243-
},
244-
{
245-
"name": "pageshow",
246-
"type": "PageTransitionEvent"
247-
},
248-
{
249-
"name": "pageswap",
250-
"type": "PageSwapEvent"
251-
},
252-
{
253-
"name": "pagereveal",
254-
"type": "PageRevealEvent"
255-
},
256-
{
257-
"name": "popstate",
258-
"type": "PopStateEvent"
259-
},
260-
{
261-
"name": "storage",
262-
"type": "StorageEvent"
263-
},
264-
{
265-
"name": "unhandledrejection",
266-
"type": "PromiseRejectionEvent"
267-
},
268-
{
269-
"name": "rejectionhandled",
270-
"type": "PromiseRejectionEvent"
271-
}
272-
]
273-
}
27432
}
27533
}
27634
},

inputfiles/overridingTypes.jsonc

Lines changed: 1 addition & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,7 @@
77
"name": "T"
88
}
99
],
10-
"overrideThis": "T",
11-
"events": {
12-
"event": [
13-
{
14-
"name": "message",
15-
"type": "MessageEvent"
16-
},
17-
{
18-
"name": "messageerror",
19-
"type": "MessageEvent"
20-
}
21-
]
22-
}
10+
"overrideThis": "T"
2311
},
2412
"NavigatorGPU": {
2513
"properties": {
@@ -57,110 +45,6 @@
5745
}
5846
},
5947
"GlobalEventHandlers": {
60-
"events": {
61-
"event": [
62-
{
63-
"name": "animationcancel",
64-
"type": "AnimationEvent"
65-
},
66-
{
67-
"name": "animationend",
68-
"type": "AnimationEvent"
69-
},
70-
{
71-
"name": "animationiteration",
72-
"type": "AnimationEvent"
73-
},
74-
{
75-
"name": "animationstart",
76-
"type": "AnimationEvent"
77-
},
78-
{
79-
"name": "cut",
80-
"type": "ClipboardEvent"
81-
},
82-
{
83-
"name": "copy",
84-
"type": "ClipboardEvent"
85-
},
86-
{
87-
"name": "paste",
88-
"type": "ClipboardEvent"
89-
},
90-
{
91-
"name": "gotpointercapture",
92-
"type": "PointerEvent"
93-
},
94-
{
95-
"name": "lostpointercapture",
96-
"type": "PointerEvent"
97-
},
98-
{
99-
"name": "pointercancel",
100-
"type": "PointerEvent"
101-
},
102-
{
103-
"name": "pointerdown",
104-
"type": "PointerEvent"
105-
},
106-
{
107-
"name": "pointerenter",
108-
"type": "PointerEvent"
109-
},
110-
{
111-
"name": "pointerleave",
112-
"type": "PointerEvent"
113-
},
114-
{
115-
"name": "pointermove",
116-
"type": "PointerEvent"
117-
},
118-
{
119-
"name": "pointerout",
120-
"type": "PointerEvent"
121-
},
122-
{
123-
"name": "pointerover",
124-
"type": "PointerEvent"
125-
},
126-
{
127-
"name": "pointerup",
128-
"type": "PointerEvent"
129-
},
130-
{
131-
"name": "touchcancel",
132-
"type": "TouchEvent"
133-
},
134-
{
135-
"name": "touchend",
136-
"type": "TouchEvent"
137-
},
138-
{
139-
"name": "touchmove",
140-
"type": "TouchEvent"
141-
},
142-
{
143-
"name": "touchstart",
144-
"type": "TouchEvent"
145-
},
146-
{
147-
"name": "transitionrun",
148-
"type": "TransitionEvent"
149-
},
150-
{
151-
"name": "transitionstart",
152-
"type": "TransitionEvent"
153-
},
154-
{
155-
"name": "transitionend",
156-
"type": "TransitionEvent"
157-
},
158-
{
159-
"name": "transitioncancel",
160-
"type": "TransitionEvent"
161-
}
162-
]
163-
},
16448
"properties": {
16549
"property": {
16650
"onerror": {

0 commit comments

Comments
 (0)