diff options
author | Jonah <jonahshafran@gmail.com> | 2022-12-07 19:30:37 -0600 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-01-07 10:51:53 +0000 |
commit | 367b1634fd4a0c3764d1f618b8045a5d15096a07 (patch) | |
tree | 51da839eac518db23070284a1ba9f9ba4788a1f2 /Ladybird | |
parent | a469bbd1786db749e63f081fc7e0fe193f37090b (diff) | |
download | serenity-367b1634fd4a0c3764d1f618b8045a5d15096a07.zip |
LibWebView+WebContent: Expose the Accessibility Tree to Other Processes
This patch also stubs out notify_server_did_get_accessiblity_tree in
ladybird since ViewImplementation now has it. However, this feature
is still immature, so just stubbing out in ladybird for now. Once we
have more robust support in Serenity (namely ARIA properties/state
and accessible names and descriptions) we can port this
functionality over.
Diffstat (limited to 'Ladybird')
-rw-r--r-- | Ladybird/WebContentView.cpp | 5 | ||||
-rw-r--r-- | Ladybird/WebContentView.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index 5dd9e2c7af..2e00479bc0 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -1093,3 +1093,8 @@ void WebContentView::notify_server_did_finish_handling_input_event(bool event_wa // we don't need to do anything here. But we'll need to once we start asking web content first. (void)event_was_accepted; } + +void WebContentView::notify_server_did_get_accessibility_tree(DeprecatedString const&) +{ + dbgln("TODO: support accessibility tree in Ladybird"); +} diff --git a/Ladybird/WebContentView.h b/Ladybird/WebContentView.h index 83abdfb4d7..a4f1cc5c12 100644 --- a/Ladybird/WebContentView.h +++ b/Ladybird/WebContentView.h @@ -144,6 +144,7 @@ public: virtual void notify_server_did_get_source(const AK::URL& url, DeprecatedString const& source) override; virtual void notify_server_did_get_dom_tree(DeprecatedString const& dom_tree) override; virtual void notify_server_did_get_dom_node_properties(i32 node_id, DeprecatedString const& specified_style, DeprecatedString const& computed_style, DeprecatedString const& custom_properties, DeprecatedString const& node_box_sizing) override; + virtual void notify_server_did_get_accessibility_tree(DeprecatedString const& accessibility_tree) override; virtual void notify_server_did_output_js_console_message(i32 message_index) override; virtual void notify_server_did_get_js_console_messages(i32 start_index, Vector<DeprecatedString> const& message_types, Vector<DeprecatedString> const& messages) override; virtual void notify_server_did_change_favicon(Gfx::Bitmap const& favicon) override; |