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/Decorations.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/widgets/Decorations.hpp') diff --git a/src/widgets/Decorations.hpp b/src/widgets/Decorations.hpp index ef81c19..9788359 100644 --- a/src/widgets/Decorations.hpp +++ b/src/widgets/Decorations.hpp @@ -27,8 +27,10 @@ public: std::optional get_view_id(DecorationType type); bool has_webview(WebViewId view_id) override; - void open_url(const QUrl &url, OpenType /*unused*/, WebViewId view_id) override; + void open_url(const QUrl &url, OpenType open_type, WebViewId view_id) override; void set_html(const QString &html, WebViewId view_id) override; + void expose_rpc_function(const QString &name, const RpcFunc &action, + WebViewId webview_id) override; private: EdgeDecoration *decoration_top; -- cgit v1.3.1