aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/BrowserWindow.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-08-04 22:36:56 +0530
committerAkshay Nair <phenax5@gmail.com>2025-08-04 22:36:56 +0530
commitc7e105ee4254d00f591c4c002f32c223f4c2448a (patch)
tree17ebadd5dc1a5e148c4b2f5ed1c70b7c7e54fe1a /src/widgets/BrowserWindow.hpp
parent0d1258aee3f39c8d5348588a87e804ec8cd27bd5 (diff)
downloadnull-browser-c7e105ee4254d00f591c4c002f32c223f4c2448a.tar.gz
null-browser-c7e105ee4254d00f591c4c002f32c223f4c2448a.zip
Add on_result callback for web.view.run_js
Diffstat (limited to 'src/widgets/BrowserWindow.hpp')
-rw-r--r--src/widgets/BrowserWindow.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/BrowserWindow.hpp b/src/widgets/BrowserWindow.hpp
index de48c6e..2842983 100644
--- a/src/widgets/BrowserWindow.hpp
+++ b/src/widgets/BrowserWindow.hpp
@@ -38,7 +38,8 @@ public:
bool has_webview(WebViewId webview_id);
void open_url(const QUrl &url, OpenType open_type, WebViewId webview_id);
void set_html(const QString &html, WebViewId webview_id);
- void run_javascript(const QString &js_code, WebViewId webview_id);
+ void run_javascript(const QString &js_code, WebViewId webview_id,
+ const JsOnResultFunc &on_result);
void expose_rpc_function(const QString &name, const RpcFunc &action, WebViewId webview_id);
void reload(WebViewId webview_id);