cdp: add CSS.enable

This commit is contained in:
Pierre Tachoire
2024-12-29 10:40:35 +01:00
parent 3738e8eb44
commit 8377eb02a5
2 changed files with 62 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ 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 css = @import("css.zig").css;
const log_cdp = std.log.scoped(.cdp);
@@ -63,6 +64,7 @@ const Domains = enum {
Runtime,
Network,
DOM,
CSS,
Inspector,
Emulation,
Fetch,
@@ -105,6 +107,7 @@ pub fn dispatch(
.Runtime => runtime(alloc, msg, action, ctx),
.Network => network(alloc, msg, action, ctx),
.DOM => dom(alloc, msg, action, ctx),
.CSS => css(alloc, msg, action, ctx),
.Inspector => inspector(alloc, msg, action, ctx),
.Emulation => emulation(alloc, msg, action, ctx),
.Fetch => fetch(alloc, msg, action, ctx),