From b0f598910f1f8bc8db6b65a0f01b1950ed7c3841 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 26 Jul 2025 16:59:35 +0530 Subject: Add web.view.expose for simple lua->js interop in decorations --- src/widgets/IWebViewMediator.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/widgets/IWebViewMediator.hpp') diff --git a/src/widgets/IWebViewMediator.hpp b/src/widgets/IWebViewMediator.hpp index d20836a..b9af36f 100644 --- a/src/widgets/IWebViewMediator.hpp +++ b/src/widgets/IWebViewMediator.hpp @@ -1,13 +1,15 @@ #pragma once #include "WebViewData.hpp" +#include "widgets/WebView.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; + virtual void expose_rpc_function(const QString &name, const RpcFunc &action, + WebViewId webview_id) = 0; }; -- cgit v1.3.1