mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 20:26:53 +00:00
LibDevTools+LibWebView: Port DevTools to String
This commit is contained in:
parent
9879ac0893
commit
4791ec35bf
Notes:
github-actions[bot]
2025-02-21 00:29:06 +00:00
Author: https://github.com/trflynn89
Commit: 4791ec35bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631
Reviewed-by: https://github.com/awesomekling ✅
35 changed files with 99 additions and 98 deletions
|
@ -7,21 +7,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibDevTools/Actor.h>
|
||||
|
||||
namespace DevTools {
|
||||
|
||||
struct TabDescription {
|
||||
u64 id { 0 };
|
||||
ByteString title;
|
||||
ByteString url;
|
||||
String title;
|
||||
String url;
|
||||
};
|
||||
|
||||
class TabActor final : public Actor {
|
||||
public:
|
||||
static constexpr auto base_name = "tab"sv;
|
||||
|
||||
static NonnullRefPtr<TabActor> create(DevToolsServer&, ByteString name, TabDescription);
|
||||
static NonnullRefPtr<TabActor> create(DevToolsServer&, String name, TabDescription);
|
||||
virtual ~TabActor() override;
|
||||
|
||||
virtual void handle_message(StringView type, JsonObject const&) override;
|
||||
|
@ -30,7 +31,7 @@ public:
|
|||
JsonObject serialize_description() const;
|
||||
|
||||
private:
|
||||
TabActor(DevToolsServer&, ByteString name, TabDescription);
|
||||
TabActor(DevToolsServer&, String name, TabDescription);
|
||||
|
||||
TabDescription m_description;
|
||||
WeakPtr<WatcherActor> m_watcher;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue