aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/IWebViewMediator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/IWebViewMediator.hpp')
-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;
+};