Include non-drawable litho components in AX tree + small sidebar edit
Summary: Fixed issue with DebugComponentDescriptors being left out of accessibility tree so the AX tree now includes all Litho view nodes (not Litho accessibility nodes yet). Litho drawables have no accessibility properties so these are not included. Also changed default for getAXChildAt to do whatever the original view tree does for that node and added a getAXChildCount function to better customize the accessibility tree. Segmented the ax sidebar into properties directly form the view and properties derived from the AccessibilityNodeInfo. Differential Revision: D8861129 fbshipit-source-id: 987683ef45188aa9cb587cc0e5ffba8fbf40136d
This commit is contained in:
committed by
Facebook Github Bot
parent
e83c8d31a2
commit
5ceb3e4ffe
@@ -100,12 +100,17 @@ public abstract class NodeDescriptor<T> {
|
||||
/** @return The number of children this node exposes in the inspector. */
|
||||
public abstract int getChildCount(T node) throws Exception;
|
||||
|
||||
/** Gets child at index for AX tree. Ignores non-view children. */
|
||||
public int getAXChildCount(T node) throws Exception {
|
||||
return getChildCount(node);
|
||||
}
|
||||
|
||||
/** @return The child at index. */
|
||||
public abstract Object getChildAt(T node, int index) throws Exception;
|
||||
|
||||
/** Gets child at index for AX tree. Ignores non-view children. */
|
||||
public @Nullable Object getAXChildAt(T node, int index) throws Exception {
|
||||
return null;
|
||||
return getChildAt(node, index);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user