1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibWeb: Add "focused frame" concept, one focused Frame per Page

Focus currently only moves when doing a mousedown in a frame.
This commit is contained in:
Andreas Kling 2020-08-14 11:33:20 +02:00
parent d1d9545875
commit 6b4a7d1ee3
7 changed files with 35 additions and 0 deletions

View file

@ -48,6 +48,7 @@ public:
~Frame();
bool is_main_frame() const { return this == &m_main_frame; }
bool is_focused_frame() const;
const DOM::Document* document() const { return m_document; }
DOM::Document* document() { return m_document; }