/src/serenity/Userland/Libraries/LibWeb/Page/EditEventHandler.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2020-2021, the SerenityOS developers. |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #pragma once |
8 | | |
9 | | #include <AK/Types.h> |
10 | | #include <LibJS/Forward.h> |
11 | | #include <LibJS/Heap/GCPtr.h> |
12 | | #include <LibWeb/Forward.h> |
13 | | |
14 | | namespace Web { |
15 | | |
16 | | class EditEventHandler { |
17 | | public: |
18 | | explicit EditEventHandler() |
19 | 0 | { |
20 | 0 | } |
21 | | |
22 | | ~EditEventHandler() = default; |
23 | | |
24 | | void handle_delete_character_after(JS::NonnullGCPtr<DOM::Document>, JS::NonnullGCPtr<DOM::Position>); |
25 | | void handle_delete(JS::NonnullGCPtr<DOM::Document>, DOM::Range&); |
26 | | void handle_insert(JS::NonnullGCPtr<DOM::Document>, JS::NonnullGCPtr<DOM::Position>, u32 code_point); |
27 | | void handle_insert(JS::NonnullGCPtr<DOM::Document>, JS::NonnullGCPtr<DOM::Position>, String); |
28 | | }; |
29 | | |
30 | | } |