aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/IWebViewMediator.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-26 11:59:38 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-26 11:59:38 +0530
commit2078c60477842d7cf6991148e23979565737a8b5 (patch)
tree980e2aea150e85c6b87f2b521fce1006486244d8 /src/widgets/IWebViewMediator.hpp
parent68448538172663279919b29dd09b5faa51e0628a (diff)
downloadnull-browser-2078c60477842d7cf6991148e23979565737a8b5.tar.gz
null-browser-2078c60477842d7cf6991148e23979565737a8b5.zip
Refactor heavy + extras.tabline module (incomplete)
Diffstat (limited to '')
-rw-r--r--src/widgets/IWebViewMediator.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/widgets/IWebViewMediator.hpp b/src/widgets/IWebViewMediator.hpp
new file mode 100644
index 0000000..d20836a
--- /dev/null
+++ b/src/widgets/IWebViewMediator.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "WebViewData.hpp"
+
+class IWebViewMediator {
+public:
+ IWebViewMediator() = default;
+
+ virtual bool has_webview(WebViewId webview_id) = 0;
+
+ virtual void open_url(const QUrl &url, OpenType open_type, WebViewId webview_id) = 0;
+ virtual void set_html(const QString &html, WebViewId webview_id) = 0;
+};