LibWeb: Add Document.hasFocus() stub

This always returns true for now. A proper implementation needs to check
if the document is in the focused widget within an active window.
This commit is contained in:
Andreas Kling 2022-02-03 20:06:54 +01:00
commit 545ec334f0
Notes: sideshowbarker 2024-07-17 19:50:23 +09:00
3 changed files with 10 additions and 0 deletions

View file

@ -304,6 +304,8 @@ public:
void evaluate_media_queries_and_report_changes();
void add_media_query_list(NonnullRefPtr<CSS::MediaQueryList>&);
bool has_focus() const;
private:
explicit Document(const AK::URL&);