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

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

Issue 692643005: ARIA state/property(aria-relevant,aria-busy) are not exposed correctly on MAC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 b7092e33c4b35450e24868419735da7dd8b0e211..ffc82e366e8fd806f22a3816c4e750efb3956cc1 100644
--- a/content/renderer/accessibility/blink_ax_tree_source.cc
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc
@@ -372,14 +372,14 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src,
if (src.isInLiveRegion()) {
dst->AddBoolAttribute(ui::AX_ATTR_LIVE_ATOMIC, src.liveRegionAtomic());
dst->AddBoolAttribute(ui::AX_ATTR_LIVE_BUSY, src.liveRegionBusy());
+ if (src.liveRegionBusy())
+ dst->state |= (1 << ui::AX_STATE_BUSY);
dst->AddStringAttribute(ui::AX_ATTR_LIVE_STATUS,
UTF16ToUTF8(src.liveRegionStatus()));
dst->AddStringAttribute(ui::AX_ATTR_LIVE_RELEVANT,
UTF16ToUTF8(src.liveRegionRelevant()));
dst->AddBoolAttribute(ui::AX_ATTR_CONTAINER_LIVE_ATOMIC,
src.containerLiveRegionAtomic());
- dst->AddBoolAttribute(ui::AX_ATTR_CONTAINER_LIVE_BUSY,
dmazzoni 2014/11/19 17:17:27 Why are you deleting this? AX_STATE_BUSY is not t
- src.containerLiveRegionBusy());
dst->AddStringAttribute(ui::AX_ATTR_CONTAINER_LIVE_STATUS,
UTF16ToUTF8(src.containerLiveRegionStatus()));
dst->AddStringAttribute(ui::AX_ATTR_CONTAINER_LIVE_RELEVANT,

Powered by Google App Engine
This is Rietveld 408576698