mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
add Document.hasFocus placeholder
This commit is contained in:
@@ -594,6 +594,11 @@ pub fn getAdoptedStyleSheets(self: *Document, page: *Page) !js.Object {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn hasFocus(_: *Document) bool {
|
||||||
|
log.debug(.not_implemented, "Document.hasFocus", .{});
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
pub fn setAdoptedStyleSheets(self: *Document, sheets: js.Object) !void {
|
pub fn setAdoptedStyleSheets(self: *Document, sheets: js.Object) !void {
|
||||||
self._adopted_style_sheets = try sheets.persist();
|
self._adopted_style_sheets = try sheets.persist();
|
||||||
}
|
}
|
||||||
@@ -675,6 +680,7 @@ pub const JsApi = struct {
|
|||||||
return page.window;
|
return page.window;
|
||||||
}
|
}
|
||||||
}.defaultView, null, .{ .cache = "defaultView" });
|
}.defaultView, null, .{ .cache = "defaultView" });
|
||||||
|
pub const hasFocus = bridge.function(Document.hasFocus, .{});
|
||||||
};
|
};
|
||||||
|
|
||||||
const testing = @import("../../testing.zig");
|
const testing = @import("../../testing.zig");
|
||||||
|
|||||||
Reference in New Issue
Block a user