Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window: add EventTargetBase #157

Merged
merged 9 commits into from
Feb 15, 2024
Merged

Window: add EventTargetBase #157

merged 9 commits into from
Feb 15, 2024

Conversation

krichprollsch
Copy link
Member

@krichprollsch krichprollsch commented Jan 17, 2024

EventTargetBase implements event target vtable for pure zig struct

Relates to #170
blocked by #36

@krichprollsch krichprollsch self-assigned this Jan 17, 2024
Base automatically changed from window to main January 17, 2024 17:33
@francisbouvier francisbouvier marked this pull request as ready for review January 19, 2024 15:46
@francisbouvier francisbouvier marked this pull request as draft January 19, 2024 15:46
@krichprollsch krichprollsch changed the title events: add EventTargetBase Window: add EventTargetBase Jan 26, 2024
@krichprollsch krichprollsch marked this pull request as ready for review January 31, 2024 10:21
EventTargetBase implements event target vtable for pure zig struct
@@ -1,6 +1,9 @@
const std = @import("std");

const parser = @import("../netsurf.zig");
const c = @cImport({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this? I do not see any call to c.<something> .
And if we need it, it should be imported in netsurf.zig, I think we should try to keep the APIs away from the C code

@krichprollsch krichprollsch merged commit 434c21e into main Feb 15, 2024
4 checks passed
@krichprollsch krichprollsch deleted the window-event-target branch February 15, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants