mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWebView: Add window handle in ClientState
in ViewImplementation
Add field for a handle that is going to be used by WebDriver to identify top-level browsing contexts. It is supposed to be populated by WebContent client during creation. Co-authored-by: Timothy Flynn <trflynn89@pm.me>
This commit is contained in:
parent
6d91d2fa50
commit
6c052c45db
Notes:
sideshowbarker
2024-07-16 22:48:55 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/6c052c45db Pull-request: https://github.com/SerenityOS/serenity/pull/17855 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,8 @@ public:
|
|||
|
||||
AK::URL const& url() const { return m_url; }
|
||||
|
||||
String const& handle() const { return m_client_state.client_handle; }
|
||||
|
||||
void load(AK::URL const&);
|
||||
void load_html(StringView, AK::URL const&);
|
||||
void load_empty_document();
|
||||
|
@ -129,6 +131,7 @@ protected:
|
|||
|
||||
struct ClientState {
|
||||
RefPtr<WebContentClient> client;
|
||||
String client_handle;
|
||||
SharedBitmap front_bitmap;
|
||||
SharedBitmap back_bitmap;
|
||||
i32 next_bitmap_id { 0 };
|
||||
|
|
Loading…
Reference in a new issue