mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
Add Page.setLifecycleEventsEnabled
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -9,6 +9,7 @@ const stringify = @import("cdp.zig").stringify;
|
||||
const PageMethods = enum {
|
||||
enable,
|
||||
getFrameTree,
|
||||
setLifecycleEventsEnabled,
|
||||
};
|
||||
|
||||
pub fn page(
|
||||
@@ -23,6 +24,7 @@ pub fn page(
|
||||
return switch (method) {
|
||||
.enable => enable(alloc, id, scanner, ctx),
|
||||
.getFrameTree => getFrameTree(alloc, id, scanner, ctx),
|
||||
.setLifecycleEventsEnabled => setLifecycleEventsEnabled(alloc, id, scanner, ctx),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -44,3 +46,13 @@ fn getFrameTree(
|
||||
// TODO: dummy
|
||||
return result(alloc, id, null, null);
|
||||
}
|
||||
|
||||
fn setLifecycleEventsEnabled(
|
||||
alloc: std.mem.Allocator,
|
||||
id: u64,
|
||||
_: *std.json.Scanner,
|
||||
_: *Ctx,
|
||||
) ![]const u8 {
|
||||
// TODO: dummy
|
||||
return result(alloc, id, null, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user