未验证 提交 d92c42f3 编写于 作者: N Nolan Scobie 提交者: GitHub

Minor a11y documentation breadcrumbs (#20330)

Adds a reference to RenderObject.describeSemanticsClip to
`SemanticsFlag.isHidden` and a hint that lets readers know that the
`SemanticsNode` rect is specified in local coordinates.
上级 94af181a
...@@ -479,6 +479,10 @@ class SemanticsFlag { ...@@ -479,6 +479,10 @@ class SemanticsFlag {
/// the semantics tree altogether. Hidden elements are only included in the /// the semantics tree altogether. Hidden elements are only included in the
/// semantics tree to work around platform limitations and they are mainly /// semantics tree to work around platform limitations and they are mainly
/// used to implement accessibility scrolling on iOS. /// used to implement accessibility scrolling on iOS.
///
/// See also:
///
/// * [RenderObject.describeSemanticsClip]
static const SemanticsFlag isHidden = SemanticsFlag._(_kIsHiddenIndex); static const SemanticsFlag isHidden = SemanticsFlag._(_kIsHiddenIndex);
/// Whether the semantics node represents an image. /// Whether the semantics node represents an image.
......
...@@ -119,8 +119,8 @@ struct SemanticsNode { ...@@ -119,8 +119,8 @@ struct SemanticsNode {
std::string decreasedValue; std::string decreasedValue;
int32_t textDirection = 0; // 0=unknown, 1=rtl, 2=ltr int32_t textDirection = 0; // 0=unknown, 1=rtl, 2=ltr
SkRect rect = SkRect::MakeEmpty(); SkRect rect = SkRect::MakeEmpty(); // Local space, relative to parent.
SkM44 transform = SkM44{}; // Identity SkM44 transform = SkM44{}; // Identity
std::vector<int32_t> childrenInTraversalOrder; std::vector<int32_t> childrenInTraversalOrder;
std::vector<int32_t> childrenInHitTestOrder; std::vector<int32_t> childrenInHitTestOrder;
std::vector<int32_t> customAccessibilityActions; std::vector<int32_t> customAccessibilityActions;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册