ax_dump_tree

Desktop / Chromium - Aaron Leventhal [chromium.org] - 17 October 2017 16:00 UTC

Standalone executable tool that helps developers view IAccessible2 object trees from any application. This tool is an alternative to AccProbe, which is buggy, and AViewer, which is not feature rich. The first version of is barebones and simply displays events on console, but has a lot of room for future expansion (e.g., serve info to a GUI, dump the tree structure etc.). The tool is similar is use to ax_dump_events.

As an example of how this makes easier, when there is a bug with NVDA/JAWS in Chrome that doesn't occur with Firefox, we can look at the object tree emitted by Firefox for the same content.

The tool shares code and formatting with the DumpAccessibilityTree browsertests.

Use as follows:--pid=[processid]--window=[hwnd] (start with 0x to use hex value)

Bug: 771747 Change-Id: I330d2aba8b004e679e9a8d15b1c288ae5460e83e Reviewed-on: https://chromium-review.googlesource.com/700725 Commit-Queue: Aaron Leventhal

9675416 ax_dump_tree
BUILD.gn | 4 +
.../accessibility_event_recorder_win.cc | 2 +
.../accessibility/accessibility_tree_formatter.cc | 9 +-
.../accessibility/accessibility_tree_formatter.h | 13 ++
.../accessibility_tree_formatter_browser.cc | 14 ++
.../accessibility_tree_formatter_browser.h | 6 +
.../accessibility_tree_formatter_win.cc | 195 +++++++++++++++------
.../dump_accessibility_tree_browsertest.cc | 6 +-
tools/accessibility/inspect/BUILD.gn | 19 ++
tools/accessibility/inspect/ax_dump_events.cc | 22 ++-
tools/accessibility/inspect/ax_dump_tree.cc | 52 ++++++
tools/accessibility/inspect/ax_tree_server.cc | 68 +++++++
tools/accessibility/inspect/ax_tree_server.h | 28 +++
13 files changed, 378 insertions(+), 60 deletions(-)

Upstream: git.chromium.org


  • Share