summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Page/EventHandler.h
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-12-01 23:35:47 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-09 21:05:06 +0100
commitbbcc5a93321fa34b537e5b635040357c4d49f5d6 (patch)
treee8644730e5ebfaba52196008883addc372d31598 /Libraries/LibWeb/Page/EventHandler.h
parent82aac98bea5bf69897e63df4f883470ed7cb3012 (diff)
downloadserenity-bbcc5a93321fa34b537e5b635040357c4d49f5d6.zip
LibWeb: Move editing stuff into EditEventHandler.
Diffstat (limited to 'Libraries/LibWeb/Page/EventHandler.h')
-rw-r--r--Libraries/LibWeb/Page/EventHandler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Page/EventHandler.h b/Libraries/LibWeb/Page/EventHandler.h
index 65acfbdbe1..09334a5d44 100644
--- a/Libraries/LibWeb/Page/EventHandler.h
+++ b/Libraries/LibWeb/Page/EventHandler.h
@@ -32,6 +32,7 @@
#include <LibGUI/Forward.h>
#include <LibGfx/Forward.h>
#include <LibWeb/Forward.h>
+#include <LibWeb/Page/EditEventHandler.h>
namespace Web {
@@ -50,6 +51,8 @@ public:
void set_mouse_event_tracking_layout_node(Layout::Node*);
+ void set_edit_event_handler(NonnullOwnPtr<EditEventHandler> value) { m_edit_event_handler = move(value); }
+
private:
bool focus_next_element();
bool focus_previous_element();
@@ -64,6 +67,8 @@ private:
bool m_in_mouse_selection { false };
WeakPtr<Layout::Node> m_mouse_event_tracking_layout_node;
+
+ NonnullOwnPtr<EditEventHandler> m_edit_event_handler;
};
}