mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +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 {
|
const PageMethods = enum {
|
||||||
enable,
|
enable,
|
||||||
getFrameTree,
|
getFrameTree,
|
||||||
|
setLifecycleEventsEnabled,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn page(
|
pub fn page(
|
||||||
@@ -23,6 +24,7 @@ pub fn page(
|
|||||||
return switch (method) {
|
return switch (method) {
|
||||||
.enable => enable(alloc, id, scanner, ctx),
|
.enable => enable(alloc, id, scanner, ctx),
|
||||||
.getFrameTree => getFrameTree(alloc, id, scanner, ctx),
|
.getFrameTree => getFrameTree(alloc, id, scanner, ctx),
|
||||||
|
.setLifecycleEventsEnabled => setLifecycleEventsEnabled(alloc, id, scanner, ctx),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,3 +46,13 @@ fn getFrameTree(
|
|||||||
// TODO: dummy
|
// TODO: dummy
|
||||||
return result(alloc, id, null, null);
|
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