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

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

Issue 1063383005: Chromium side Implementation to expose aria properties - setsize & posinset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updating expectations on android Created 5 years, 8 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 1ad905da7ebaaac4c2f15b974925de4d98b35ce8..c0a1ef58de51b636c0d52b190f8cb7e640d796e3 100644
--- a/content/renderer/accessibility/blink_ax_tree_source.cc
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc
@@ -335,6 +335,12 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src,
src.hierarchicalLevel());
}
+ if (src.setSize())
+ dst->AddIntAttribute(ui::AX_ATTR_SET_SIZE, src.setSize());
+
+ if (src.posInSet())
+ dst->AddIntAttribute(ui::AX_ATTR_POS_IN_SET, src.posInSet());
+
// Treat the active list box item as focused.
if (dst->role == ui::AX_ROLE_LIST_BOX_OPTION &&
src.isSelectedOptionActive()) {

Powered by Google App Engine
This is Rietveld 408576698