mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
LibWeb: Add a DOM Event class (instead of events being simple strings)
This patch adds the Event base class, along with a MouseEvent subclass. We now dispatch MouseEvent objects for mousedown, mouseup and mousemove and these objects have the .offsetX and .offsetY properties. Both of those properties are hard-coded at the moment. This will be fixed in the next patch. :^)
This commit is contained in:
parent
b196665131
commit
4dde36844b
15 changed files with 311 additions and 10 deletions
|
@ -1,9 +1,11 @@
|
|||
LIBWEB_OBJS = \
|
||||
Bindings/CanvasRenderingContext2DWrapper.o \
|
||||
Bindings/DocumentWrapper.o \
|
||||
Bindings/EventWrapper.o \
|
||||
Bindings/EventListenerWrapper.o \
|
||||
Bindings/EventTargetWrapper.o \
|
||||
Bindings/HTMLCanvasElementWrapper.o \
|
||||
Bindings/MouseEventWrapper.o \
|
||||
Bindings/NodeWrapper.o \
|
||||
Bindings/Wrappable.o \
|
||||
CSS/DefaultStyleSheetSource.o \
|
||||
|
@ -23,6 +25,7 @@ LIBWEB_OBJS = \
|
|||
DOM/DocumentType.o \
|
||||
DOM/Element.o \
|
||||
DOM/ElementFactory.o \
|
||||
DOM/Event.o \
|
||||
DOM/EventListener.o \
|
||||
DOM/EventTarget.o \
|
||||
DOM/HTMLAnchorElement.o \
|
||||
|
@ -43,6 +46,7 @@ LIBWEB_OBJS = \
|
|||
DOM/HTMLScriptElement.o \
|
||||
DOM/HTMLStyleElement.o \
|
||||
DOM/HTMLTitleElement.o \
|
||||
DOM/MouseEvent.o \
|
||||
DOM/Node.o \
|
||||
DOM/ParentNode.o \
|
||||
DOM/Text.o \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue