mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
LibWebView: Add abstract virtual base for WebView implementations
This patch adds WebView::ViewImplementation with all the `notify_server_did_this_or_that()` functions from OOPWV. This will allow us to share code between different web views, paving the way for a Qt widget in Ladybird that can talk to a WebContent process.
This commit is contained in:
parent
d652794862
commit
ceccc2c163
5 changed files with 102 additions and 40 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace WebView {
|
||||
|
||||
WebContentClient::WebContentClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket, OutOfProcessWebView& view)
|
||||
WebContentClient::WebContentClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket, ViewImplementation& view)
|
||||
: IPC::ConnectionToServer<WebContentClientEndpoint, WebContentServerEndpoint>(*this, move(socket))
|
||||
, m_view(view)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue