diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-07-26 16:59:35 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-07-26 16:59:35 +0530 |
| commit | b0f598910f1f8bc8db6b65a0f01b1950ed7c3841 (patch) | |
| tree | 234758ed1c91238b9498fdc6dd4bcccc42bddc36 /src/widgets/IWebViewMediator.hpp | |
| parent | 8ab1f8d796d8f35a65e38fdd03d51824a41d1dab (diff) | |
| download | null-browser-b0f598910f1f8bc8db6b65a0f01b1950ed7c3841.tar.gz null-browser-b0f598910f1f8bc8db6b65a0f01b1950ed7c3841.zip | |
Add web.view.expose for simple lua->js interop in decorations
Diffstat (limited to 'src/widgets/IWebViewMediator.hpp')
| -rw-r--r-- | src/widgets/IWebViewMediator.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; }; |
