mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
33 lines
744 B
C++
33 lines
744 B
C++
/*
|
|
* Copyright (c) 2020-2021, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <LibJS/Forward.h>
|
|
#include <LibWeb/Forward.h>
|
|
|
|
namespace Web {
|
|
|
|
class EditEventHandler {
|
|
public:
|
|
explicit EditEventHandler(HTML::Navigable& navigable)
|
|
: m_navigable(navigable)
|
|
{
|
|
}
|
|
|
|
virtual ~EditEventHandler() = default;
|
|
|
|
virtual void handle_delete_character_after(JS::NonnullGCPtr<DOM::Position>);
|
|
virtual void handle_delete(DOM::Range&);
|
|
virtual void handle_insert(JS::NonnullGCPtr<DOM::Position>, u32 code_point);
|
|
virtual void handle_insert(JS::NonnullGCPtr<DOM::Position>, String);
|
|
|
|
private:
|
|
JS::NonnullGCPtr<HTML::Navigable> m_navigable;
|
|
};
|
|
|
|
}
|