We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec7455 commit c54b50eCopy full SHA for c54b50e
src/cdp/browser.zig
@@ -10,6 +10,7 @@ const BrowserMethods = enum {
10
getVersion,
11
setDownloadBehavior,
12
getWindowForTarget,
13
+ setWindowBounds,
14
};
15
16
pub fn browser(
@@ -25,6 +26,7 @@ pub fn browser(
25
26
.getVersion => browserGetVersion(alloc, id, scanner, ctx),
27
.setDownloadBehavior => browserSetDownloadBehavior(alloc, id, scanner, ctx),
28
.getWindowForTarget => getWindowForTarget(alloc, id, scanner, ctx),
29
+ .setWindowBounds => setWindowBounds(alloc, id, scanner, ctx),
30
31
}
32
@@ -103,3 +105,14 @@ fn getWindowForTarget(
103
105
104
106
return result(alloc, id, Resp, Resp{}, content.sessionID.?);
107
108
+
109
+fn setWindowBounds(
110
+ alloc: std.mem.Allocator,
111
+ id: u64,
112
+ scanner: *std.json.Scanner,
113
+ _: *Ctx,
114
+) ![]const u8 {
115
+ // NOTE: noop
116
+ const content = try cdp.getContent(alloc, void, scanner);
117
+ return result(alloc, id, null, null, content.sessionID);
118
+}
0 commit comments