aboutsummaryrefslogtreecommitdiff
path: root/src/LuaRuntime.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-25 20:26:40 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-25 20:26:40 +0530
commit1284f8cf39e8ba44e837d4dac0bace89cb7a0c26 (patch)
tree58ff313869ca62b335a8412289e3bbec1c104f47 /src/LuaRuntime.hpp
parent4cbaaae7c55e71d2d4db591029394812077eb844 (diff)
downloadnull-browser-1284f8cf39e8ba44e837d4dac0bace89cb7a0c26.tar.gz
null-browser-1284f8cf39e8ba44e837d4dac0bace89cb7a0c26.zip
Refactor webview index with id + add web.tabs.close
Diffstat (limited to 'src/LuaRuntime.hpp')
-rw-r--r--src/LuaRuntime.hpp5
1 files changed, 3 insertions, 2 deletions
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()>);
+ void keymap_added(QString mode, QString keyseq, std::function<void()>);
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;