mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
Our "frame" concept very closely matches what the web specs call a "browsing context", so let's rename it to that. :^) The "main frame" becomes the "top-level browsing context", and "sub-frames" are now "nested browsing contexts".
31 lines
582 B
C++
31 lines
582 B
C++
/*
|
|
* 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(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:
|
|
BrowsingContext& m_frame;
|
|
};
|
|
|
|
}
|