summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Page/EditEventHandler.h
blob: 503ffcb50dd83a55dd5892280e2ea72c64ce83a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2020-2021, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Types.h>
#include <LibWeb/Forward.h>

namespace Web {

class EditEventHandler {
public:
    explicit EditEventHandler(HTML::BrowsingContext& frame)
        : m_frame(frame)
    {
    }

    virtual ~EditEventHandler() = default;

    virtual void handle_delete_character_after(const DOM::Position&);
    virtual void handle_delete(DOM::Range&);
    virtual void handle_insert(DOM::Position, u32 code_point);

private:
    HTML::BrowsingContext& m_frame;
};

}