mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 13:37:10 +09:00

This is to prepare for an upcoming change where we will need to track replies to messages by ID. We will be able to add parameters to this structure without having to edit every single actor subclass header file.
31 lines
706 B
C++
31 lines
706 B
C++
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/NonnullRefPtr.h>
|
|
#include <LibDevTools/Actor.h>
|
|
|
|
namespace DevTools {
|
|
|
|
class HighlighterActor final : public Actor {
|
|
public:
|
|
static constexpr auto base_name = "highlighter"sv;
|
|
|
|
static NonnullRefPtr<HighlighterActor> create(DevToolsServer&, String name, WeakPtr<InspectorActor>);
|
|
virtual ~HighlighterActor() override;
|
|
|
|
JsonValue serialize_highlighter() const;
|
|
|
|
private:
|
|
HighlighterActor(DevToolsServer&, String name, WeakPtr<InspectorActor>);
|
|
|
|
virtual void handle_message(Message const&) override;
|
|
|
|
WeakPtr<InspectorActor> m_inspector;
|
|
};
|
|
|
|
}
|