mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
This is enough for Firefox to display the Accessibility tab, containing our accessibility tree which can be inspected. Most information is blank for now. There's quite a bit of duplication between AccessibilityWalkerActor and WalkerActor - it might be worth trying to make a base class once the details are figured out. Frustratingly, the two don't work quite the same: for a lot of messages that would be sent to WalkerActor, the accessibility equivalent is sent to the AccessibilityNodeActor instead. Co-authored-by: Tim Flynn <trflynn89@pm.me>
28 lines
650 B
C++
28 lines
650 B
C++
/*
|
|
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/NonnullRefPtr.h>
|
|
#include <LibDevTools/Actor.h>
|
|
#include <LibDevTools/Forward.h>
|
|
|
|
namespace DevTools {
|
|
|
|
class DEVTOOLS_API ParentAccessibilityActor final : public Actor {
|
|
public:
|
|
static constexpr auto base_name = "parent-accessibility"sv;
|
|
|
|
static NonnullRefPtr<ParentAccessibilityActor> create(DevToolsServer&, String name);
|
|
virtual ~ParentAccessibilityActor() override;
|
|
|
|
private:
|
|
ParentAccessibilityActor(DevToolsServer&, String name);
|
|
|
|
virtual void handle_message(Message const&) override;
|
|
};
|
|
|
|
}
|