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

Unified Diff: content/browser/accessibility/accessibility_tree_formatter_win.cc

Issue 2684543002: Finish implementation and tests of 5 ARIA 1.1 attributes. (Closed)
Patch Set: Update expectations Created 3 years, 10 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/browser/accessibility/accessibility_tree_formatter_win.cc
diff --git a/content/browser/accessibility/accessibility_tree_formatter_win.cc b/content/browser/accessibility/accessibility_tree_formatter_win.cc
index 75495b05cfa6d3e112a44341973cf172f7f777d9..487a0d29d6adf7171b0c5c2da29d9ef121b73a53 100644
--- a/content/browser/accessibility/accessibility_tree_formatter_win.cc
+++ b/content/browser/accessibility/accessibility_tree_formatter_win.cc
@@ -84,7 +84,8 @@ const char* const ALL_ATTRIBUTES[] = {
"caret_offset",
"n_selections",
"selection_start",
- "selection_end"
+ "selection_end",
+ "localized_extended_role",
};
namespace {
@@ -327,6 +328,12 @@ void AccessibilityTreeFormatterWin::AddProperties(
}
}
}
+
+ if (SUCCEEDED(ax_object->get_localizedExtendedRole(temp_bstr.Receive()))) {
+ dict->SetString("localized_extended_role", base::string16(temp_bstr,
+ temp_bstr.Length()));
+ }
+ temp_bstr.Reset();
}
base::string16 AccessibilityTreeFormatterWin::ToString(

Powered by Google App Engine
This is Rietveld 408576698