1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-07 09:07:35 +00:00
serenity/Libraries/LibWeb/DOM
Andreas Kling f39e5352f0 LibWeb: Start working on DOM event support
This patch adds the EventTarget class and makes Node inherit from it.

You can register event listeners on an EventTarget, and when you call
dispatch_event() on it, the event listeners will get invoked.

An event listener is basically a wrapper around a JS::Function*.

This is pretty far from how DOM events should eventually work, but it's
a place to start and we'll build more on top of this. :^)
2020-03-18 17:13:22 +01:00
..
CharacterData.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
CharacterData.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Comment.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Comment.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Document.cpp LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
Document.h LibWeb: Start implementing basic JavaScript DOM bindings 2020-03-14 13:25:40 +01:00
DocumentFragment.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
DocumentType.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
DocumentType.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Element.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Element.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
ElementFactory.cpp LibWeb: Parse <script> elements and run any JavaScript found inside 2020-03-14 13:25:38 +01:00
ElementFactory.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
EventListener.cpp LibWeb: Start working on DOM event support 2020-03-18 17:13:22 +01:00
EventListener.h LibWeb: Start working on DOM event support 2020-03-18 17:13:22 +01:00
EventTarget.cpp LibWeb: Start working on DOM event support 2020-03-18 17:13:22 +01:00
EventTarget.h LibWeb: Start working on DOM event support 2020-03-18 17:13:22 +01:00
HTMLAnchorElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLAnchorElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLBlinkElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLBlinkElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLBodyElement.cpp LibWeb: Cache the <body background> style image value 2020-03-07 11:17:18 +01:00
HTMLBodyElement.h LibWeb: Cache the <body background> style image value 2020-03-07 11:17:18 +01:00
HTMLBRElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLBRElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLFontElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLFontElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLFormElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLFormElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLHeadElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLHeadElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLHeadingElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLHeadingElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLHRElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLHRElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLHtmlElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLHtmlElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLImageElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLImageElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLInputElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLInputElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLLinkElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLLinkElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLScriptElement.cpp LibWeb: Parse <script> elements and run any JavaScript found inside 2020-03-14 13:25:38 +01:00
HTMLScriptElement.h LibWeb: Parse <script> elements and run any JavaScript found inside 2020-03-14 13:25:38 +01:00
HTMLStyleElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLStyleElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLTitleElement.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HTMLTitleElement.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Node.cpp LibWeb: Start working on DOM event support 2020-03-18 17:13:22 +01:00
Node.h LibWeb: Start working on DOM event support 2020-03-18 17:13:22 +01:00
ParentNode.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
ParentNode.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Text.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Text.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00