mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWebView+Ladybird: Begin de-duplicate WebView implementations
This starts moving code equally shared between the OOPWV and Ladybird WebContentView implementations to WebView::ViewImplementation, beginning with the client state.
This commit is contained in:
committed by
Andreas Kling
parent
121181e392
commit
5411adca22
23
Userland/Libraries/LibWebView/ViewImplementation.cpp
Normal file
23
Userland/Libraries/LibWebView/ViewImplementation.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2023, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWebView/ViewImplementation.h>
|
||||
|
||||
namespace WebView {
|
||||
|
||||
WebContentClient& ViewImplementation::client()
|
||||
{
|
||||
VERIFY(m_client_state.client);
|
||||
return *m_client_state.client;
|
||||
}
|
||||
|
||||
WebContentClient const& ViewImplementation::client() const
|
||||
{
|
||||
VERIFY(m_client_state.client);
|
||||
return *m_client_state.client;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user