mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Add setFocusEmulationEnabled
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -8,6 +8,7 @@ const stringify = @import("cdp.zig").stringify;
|
|||||||
|
|
||||||
const EmulationMethods = enum {
|
const EmulationMethods = enum {
|
||||||
setEmulatedMedia,
|
setEmulatedMedia,
|
||||||
|
setFocusEmulationEnabled,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn emulation(
|
pub fn emulation(
|
||||||
@@ -21,6 +22,7 @@ pub fn emulation(
|
|||||||
return error.UnknownMethod;
|
return error.UnknownMethod;
|
||||||
return switch (method) {
|
return switch (method) {
|
||||||
.setEmulatedMedia => setEmulatedMedia(alloc, id, scanner, ctx),
|
.setEmulatedMedia => setEmulatedMedia(alloc, id, scanner, ctx),
|
||||||
|
.setFocusEmulationEnabled => setFocusEmulationEnabled(alloc, id, scanner, ctx),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,3 +34,12 @@ fn setEmulatedMedia(
|
|||||||
) ![]const u8 {
|
) ![]const u8 {
|
||||||
return result(alloc, id, null, null);
|
return result(alloc, id, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn setFocusEmulationEnabled(
|
||||||
|
alloc: std.mem.Allocator,
|
||||||
|
id: u64,
|
||||||
|
_: *std.json.Scanner,
|
||||||
|
_: *Ctx,
|
||||||
|
) ![]const u8 {
|
||||||
|
return result(alloc, id, null, null);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user