mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibDevTools: Move message data into a structure
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.
This commit is contained in:
parent
509eaca73d
commit
24a5e4e7d5
Notes:
github-actions[bot]
2025-03-13 20:57:59 +00:00
Author: https://github.com/trflynn89
Commit: 24a5e4e7d5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3920
42 changed files with 162 additions and 146 deletions
|
@ -18,13 +18,13 @@ public:
|
|||
static NonnullRefPtr<RootActor> create(DevToolsServer&, String name);
|
||||
virtual ~RootActor() override;
|
||||
|
||||
virtual void handle_message(StringView type, JsonObject const&) override;
|
||||
|
||||
void send_tab_list_changed_message();
|
||||
|
||||
private:
|
||||
RootActor(DevToolsServer&, String name);
|
||||
|
||||
virtual void handle_message(Message const&) override;
|
||||
|
||||
// https://firefox-source-docs.mozilla.org/devtools/backend/protocol.html#the-request-reply-notify-pattern
|
||||
// the root actor sends at most one "tabListChanged" notification after each "listTabs" request.
|
||||
bool m_has_sent_tab_list_changed_since_last_list_tabs_request { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue