cdp: add DOM.enable

This commit is contained in:
Pierre Tachoire
2024-12-29 10:39:09 +01:00
parent 4b000e44b3
commit 3738e8eb44
2 changed files with 62 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ const performance = @import("performance.zig").performance;
const IncomingMessage = @import("msg.zig").IncomingMessage;
const Input = @import("msg.zig").Input;
const inspector = @import("inspector.zig").inspector;
const dom = @import("dom.zig").dom;
const log_cdp = std.log.scoped(.cdp);
@@ -61,6 +62,7 @@ const Domains = enum {
Log,
Runtime,
Network,
DOM,
Inspector,
Emulation,
Fetch,
@@ -102,6 +104,7 @@ pub fn dispatch(
.Log => log(alloc, msg, action, ctx),
.Runtime => runtime(alloc, msg, action, ctx),
.Network => network(alloc, msg, action, ctx),
.DOM => dom(alloc, msg, action, ctx),
.Inspector => inspector(alloc, msg, action, ctx),
.Emulation => emulation(alloc, msg, action, ctx),
.Fetch => fetch(alloc, msg, action, ctx),