From 1284f8cf39e8ba44e837d4dac0bace89cb7a0c26 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 25 Mar 2025 20:26:40 +0530 Subject: Refactor webview index with id + add web.tabs.close --- src/LuaRuntime.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/LuaRuntime.hpp') diff --git a/src/LuaRuntime.hpp b/src/LuaRuntime.hpp index c90049e..a13fe1e 100644 --- a/src/LuaRuntime.hpp +++ b/src/LuaRuntime.hpp @@ -42,10 +42,10 @@ signals: void url_opened(QString url, OpenType open_type); void evaluation_completed(QVariant value); void evaluation_failed(QString value); - void keymap_add_requested(QString mode, QString keyseq, - std::function); + void keymap_added(QString mode, QString keyseq, std::function); void history_back_requested(WebViewId webview_id, qsizetype history_index); void history_forward_requested(WebViewId webview_id, qsizetype history_index); + void webview_closed(WebViewId webview_id); // void output_produced(QVariant value); protected: @@ -58,6 +58,7 @@ protected: static int lua_get_current_tab_id(lua_State *state); static int lua_history_back(lua_State *state); static int lua_history_forward(lua_State *state); + static int lua_tab_closed(lua_State *state); private: lua_State *state; -- cgit v1.3.1