Commit Graph

15 Commits

Author SHA1 Message Date
Karl Seguin
072bc514f4 Add zig listener support to netsurf event handler
Add _click handler to HTMLElement

Register zig click listener on document.

Largely waiting on https://github.com/lightpanda-io/browser/pull/501/files to
finalize the placeholders.
2025-04-18 16:20:46 +08:00
Karl Seguin
b8d7744563 replace zig-js-runtime 2025-04-15 15:18:04 +08:00
Karl Seguin
fc0ec860b0 Tweak generate.Tuple and generate.Union
Leverage comptime fields to give generated Tuple a default value, allowing
TupleT and Tuple to be merged.

Only call generate.Tuple on the final output. This eliminates redundant
deduplication, and results in a simpler API (nested types just need to expose
a natural Zig tuple).

generate.Union leverages the new Tuple and removes unused features.
2025-02-01 14:53:00 +08:00
Pierre Tachoire
f6ad95c647 improve event's log result 2024-11-18 13:13:52 +01:00
Pierre Tachoire
1924f136c6 events: create an EventHandlerData struct
It simplifies the EventHandlerFunc creation and allows to insert user's
data.
2024-06-21 09:20:03 +02:00
Pierre Tachoire
9cdf1f5762 xhr: fix unit tests for 0.12.1 2024-06-18 16:13:34 +02:00
Pierre Tachoire
f2a406d224 move netsurf and mimalloc into modules 2024-06-18 16:13:27 +02:00
Pierre Tachoire
2a3a243d1c add AGPL license header in zig files 2024-05-13 20:51:36 +02:00
Pierre Tachoire
47520ae21d xhr: move progress event in its own file 2024-02-15 16:43:00 +01:00
Pierre Tachoire
76df0a1ff7 xhr: fix ProgressEvent implementation 2024-02-15 16:42:59 +01:00
Pierre Tachoire
5aafc93a03 event: add remove listener test 2024-02-15 16:42:58 +01:00
Francis Bouvier
501b3caa8e Add legacy document.createEvent and event.initEvent
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-29 09:04:03 +01:00
Francis Bouvier
de7fe8ba09 Add tests for Event
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-19 16:46:09 +01:00
Francis Bouvier
2faf584d36 Updates, fix and Event properties
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-18 22:00:36 +01:00
Francis Bouvier
ae6a714573 First implementation of Event system
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-17 00:12:57 +01:00