1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

Ladybird+LibWebView: Migrate input completions to LibWebView callbacks

This commit is contained in:
Timothy Flynn 2023-08-23 11:19:21 -04:00 committed by Tim Flynn
parent 5116e97a9d
commit edec5b1d91
9 changed files with 9 additions and 21 deletions

View file

@ -82,7 +82,6 @@ private:
// ^WebView::ViewImplementation
virtual void create_client(EnableCallgrindProfiling = EnableCallgrindProfiling::No) override;
virtual void update_zoom() override;
virtual void notify_server_did_finish_handling_input_event(bool event_was_accepted) override;
virtual Gfx::IntRect viewport_rect() const override;
virtual Gfx::IntPoint to_content_position(Gfx::IntPoint widget_position) const override;
@ -91,6 +90,7 @@ private:
using InputEvent = Variant<GUI::KeyEvent, GUI::MouseEvent>;
void enqueue_input_event(InputEvent const&);
void process_next_input_event();
void did_finish_handling_input_event(bool event_was_accepted);
bool m_is_awaiting_response_for_input_event { false };
Queue<InputEvent> m_pending_input_events;