From 2078c60477842d7cf6991148e23979565737a8b5 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 26 Jul 2025 11:59:38 +0530 Subject: Refactor heavy + extras.tabline module (incomplete) --- src/widgets/IWebViewMediator.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/widgets/IWebViewMediator.hpp (limited to 'src/widgets/IWebViewMediator.hpp') 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; +}; -- cgit v1.3.1