Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: content/renderer/accessibility/blink_ax_tree_source.cc

Issue 736023002: Add conversion rule for aria-grabbed attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Comment Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/accessibility/blink_ax_tree_source.cc
diff --git a/content/renderer/accessibility/blink_ax_tree_source.cc b/content/renderer/accessibility/blink_ax_tree_source.cc
index 03207acec92e2112fe84b65d5edd83a80e94e40d..b6b93c6be142ecb3f30a38c44a2a6b32b19255bd 100644
--- a/content/renderer/accessibility/blink_ax_tree_source.cc
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc
@@ -378,6 +378,12 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src,
}
}
+ blink::WebAXOptionalBool optionalBool = src.isAriaGrabbed();
+ if (optionalBool == blink::WebAXOptionalBoolFalse)
+ dst->AddBoolAttribute(ui::AX_ATTR_GRABBED, false);
+ else if (optionalBool == blink::WebAXOptionalBoolTrue)
+ dst->AddBoolAttribute(ui::AX_ATTR_GRABBED, true);
+
// ARIA role.
if (element.hasAttribute("role")) {
dst->AddStringAttribute(ui::AX_ATTR_ROLE,

Powered by Google App Engine
This is Rietveld 408576698