aboutsummaryrefslogtreecommitdiff
path: root/src/events
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-26 11:59:38 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-26 11:59:38 +0530
commit2078c60477842d7cf6991148e23979565737a8b5 (patch)
tree980e2aea150e85c6b87f2b521fce1006486244d8 /src/events
parent68448538172663279919b29dd09b5faa51e0628a (diff)
downloadnull-browser-2078c60477842d7cf6991148e23979565737a8b5.tar.gz
null-browser-2078c60477842d7cf6991148e23979565737a8b5.zip
Refactor heavy + extras.tabline module (incomplete)
Diffstat (limited to 'src/events')
-rw-r--r--src/events/NotificationReceivedEvent.hpp3
-rw-r--r--src/events/PermissionRequestedEvent.hpp3
-rw-r--r--src/events/UrlChangedEvent.hpp2
3 files changed, 3 insertions, 5 deletions
diff --git a/src/events/NotificationReceivedEvent.hpp b/src/events/NotificationReceivedEvent.hpp
index ade2132..fd5a554 100644
--- a/src/events/NotificationReceivedEvent.hpp
+++ b/src/events/NotificationReceivedEvent.hpp
@@ -16,8 +16,7 @@ public:
}
void lua_push(lua_State *state) const override {
- lua_newtable(state);
- SET_FIELD("type", string, kind.toStdString().c_str())
+ Event::lua_push(state);
SET_FIELD("title", string, notification->title().toStdString().c_str())
SET_FIELD("message", string, notification->message().toStdString().c_str())
SET_FIELD("tag", string, notification->tag().toStdString().c_str())
diff --git a/src/events/PermissionRequestedEvent.hpp b/src/events/PermissionRequestedEvent.hpp
index ec03ea5..f6c102a 100644
--- a/src/events/PermissionRequestedEvent.hpp
+++ b/src/events/PermissionRequestedEvent.hpp
@@ -40,8 +40,7 @@ public:
}
void lua_push(lua_State *state) const override {
- lua_newtable(state);
- SET_FIELD("type", string, kind.toStdString().c_str())
+ Event::lua_push(state);
SET_FIELD("permission_type", string, permission_type())
SET_FIELD("view_id", integer, webview_id)
SET_FIELD("win_id", integer, win_id)
diff --git a/src/events/UrlChangedEvent.hpp b/src/events/UrlChangedEvent.hpp
index ec3980b..29547f2 100644
--- a/src/events/UrlChangedEvent.hpp
+++ b/src/events/UrlChangedEvent.hpp
@@ -3,9 +3,9 @@
#include <QtCore>
#include <lua.hpp>
+#include "WebViewData.hpp"
#include "events/Event.hpp"
#include "widgets/BrowserWindow.hpp"
-#include "widgets/WebViewStack.hpp"
class UrlChangedEvent : public Event {
public: