aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/Decorations.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-26 16:59:35 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-26 16:59:35 +0530
commitb0f598910f1f8bc8db6b65a0f01b1950ed7c3841 (patch)
tree234758ed1c91238b9498fdc6dd4bcccc42bddc36 /src/widgets/Decorations.hpp
parent8ab1f8d796d8f35a65e38fdd03d51824a41d1dab (diff)
downloadnull-browser-b0f598910f1f8bc8db6b65a0f01b1950ed7c3841.tar.gz
null-browser-b0f598910f1f8bc8db6b65a0f01b1950ed7c3841.zip
Add web.view.expose for simple lua->js interop in decorations
Diffstat (limited to 'src/widgets/Decorations.hpp')
-rw-r--r--src/widgets/Decorations.hpp4
1 files changed, 3 insertions, 1 deletions
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<WebViewId> 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;