summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-08-24 15:33:18 +0430
committerAndreas Kling <kling@serenityos.org>2020-08-24 18:21:33 +0200
commit682b2fdb75d4e20c316e84dbe9416b2e39d5050a (patch)
treeefd7400b8dd520942883fb8343323051cd347911 /Libraries/LibWeb
parent09ccb46980bb19ec6bf66065914e4ab59aed66e8 (diff)
downloadserenity-682b2fdb75d4e20c316e84dbe9416b2e39d5050a.zip
LibWeb: Move OutOfProcessWebView into the Web namespace
Diffstat (limited to 'Libraries/LibWeb')
-rw-r--r--Libraries/LibWeb/OutOfProcessWebView.cpp4
-rw-r--r--Libraries/LibWeb/OutOfProcessWebView.h4
-rw-r--r--Libraries/LibWeb/WebContentClient.cpp4
-rw-r--r--Libraries/LibWeb/WebContentClient.h4
4 files changed, 16 insertions, 0 deletions
diff --git a/Libraries/LibWeb/OutOfProcessWebView.cpp b/Libraries/LibWeb/OutOfProcessWebView.cpp
index 53edfd5fec..203dd1605a 100644
--- a/Libraries/LibWeb/OutOfProcessWebView.cpp
+++ b/Libraries/LibWeb/OutOfProcessWebView.cpp
@@ -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;
}
+
+}
diff --git a/Libraries/LibWeb/OutOfProcessWebView.h b/Libraries/LibWeb/OutOfProcessWebView.h
index 506f46cdaa..bdde1f7cff 100644
--- a/Libraries/LibWeb/OutOfProcessWebView.h
+++ b/Libraries/LibWeb/OutOfProcessWebView.h
@@ -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;
};
+
+}
diff --git a/Libraries/LibWeb/WebContentClient.cpp b/Libraries/LibWeb/WebContentClient.cpp
index 9605070a51..74c2be6959 100644
--- a/Libraries/LibWeb/WebContentClient.cpp
+++ b/Libraries/LibWeb/WebContentClient.cpp
@@ -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());
}
+
+}
diff --git a/Libraries/LibWeb/WebContentClient.h b/Libraries/LibWeb/WebContentClient.h
index d4fd342b01..7357f09375 100644
--- a/Libraries/LibWeb/WebContentClient.h
+++ b/Libraries/LibWeb/WebContentClient.h
@@ -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;
};
+
+}