mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibDevTools: Stub out a layout inspector actor
The DevTools client will ask for this actor before trying to render any box model or computed style information. We can just stub out this actor for now.
This commit is contained in:
parent
c56bf8ac93
commit
3f8b65e45c
Notes:
github-actions[bot]
2025-02-24 17:06:47 +00:00
Author: https://github.com/trflynn89
Commit: 3f8b65e45c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3666
Reviewed-by: https://github.com/AtkinsSJ
6 changed files with 89 additions and 0 deletions
27
Libraries/LibDevTools/Actors/LayoutInspectorActor.h
Normal file
27
Libraries/LibDevTools/Actors/LayoutInspectorActor.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* 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 LayoutInspectorActor final : public Actor {
|
||||
public:
|
||||
static constexpr auto base_name = "layout-inspector"sv;
|
||||
|
||||
static NonnullRefPtr<LayoutInspectorActor> create(DevToolsServer&, String name);
|
||||
virtual ~LayoutInspectorActor() override;
|
||||
|
||||
virtual void handle_message(StringView type, JsonObject const&) override;
|
||||
|
||||
private:
|
||||
LayoutInspectorActor(DevToolsServer&, String name);
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue