1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:38:10 +00:00

LibWeb: Move OutOfProcessWebView into the Web namespace

This commit is contained in:
AnotherTest 2020-08-24 15:33:18 +04:30 committed by Andreas Kling
parent 09ccb46980
commit 682b2fdb75
9 changed files with 24 additions and 10 deletions

View file

@ -32,6 +32,8 @@
#include <LibGUI/Window.h>
#include <LibGfx/SystemTheme.h>
namespace Web {
OutOfProcessWebView::OutOfProcessWebView()
{
set_should_hide_unnecessary_scrollbars(true);
@ -194,3 +196,5 @@ WebContentClient& OutOfProcessWebView::client()
{
return *m_client;
}
}

View file

@ -31,6 +31,8 @@
#include <LibGUI/Widget.h>
#include <LibWeb/WebViewHooks.h>
namespace Web {
class WebContentClient;
class OutOfProcessWebView final
@ -83,3 +85,5 @@ private:
RefPtr<Gfx::Bitmap> m_front_bitmap;
RefPtr<Gfx::Bitmap> m_back_bitmap;
};
}

View file

@ -28,6 +28,8 @@
#include "OutOfProcessWebView.h"
#include <AK/SharedBuffer.h>
namespace Web {
WebContentClient::WebContentClient(OutOfProcessWebView& view)
: IPC::ServerConnection<WebContentClientEndpoint, WebContentServerEndpoint>(*this, "/tmp/portal/webcontent")
, m_view(view)
@ -139,3 +141,5 @@ void WebContentClient::handle(const Messages::WebContentClient::DidRequestLinkCo
{
m_view.notify_server_did_request_link_context_menu({}, message.content_position(), message.url(), message.target(), message.modifiers());
}
}

View file

@ -31,6 +31,8 @@
#include <WebContent/WebContentClientEndpoint.h>
#include <WebContent/WebContentServerEndpoint.h>
namespace Web {
class OutOfProcessWebView;
class WebContentClient
@ -61,3 +63,5 @@ private:
OutOfProcessWebView& m_view;
};
}