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

Unified Diff: ui/accessibility/ax_tree.cc

Issue 2873373005: Add custom action support (Closed)
Patch Set: Migrate to DataObjectBuilder. Created 3 years, 6 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
« no previous file with comments | « ui/accessibility/ax_tree.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_tree.cc
diff --git a/ui/accessibility/ax_tree.cc b/ui/accessibility/ax_tree.cc
index 43e635af1a207bede9fe8d71f0e0ef1e3e5da326..a77b221cb184bd50528f9bb1fbad233e02cb4759 100644
--- a/ui/accessibility/ax_tree.cc
+++ b/ui/accessibility/ax_tree.cc
@@ -466,6 +466,17 @@ void AXTree::CallNodeChangeCallbacks(AXNode* node, const AXNodeData& new_data) {
CallIfAttributeValuesChanged(old_data.intlist_attributes,
new_data.intlist_attributes,
std::vector<int32_t>(), intlist_callback);
+
+ auto stringlist_callback =
+ [this, node](AXStringListAttribute attr,
+ const std::vector<std::string>& old_stringlist,
+ const std::vector<std::string>& new_stringlist) {
+ delegate_->OnStringListAttributeChanged(this, node, attr,
+ old_stringlist, new_stringlist);
+ };
+ CallIfAttributeValuesChanged(old_data.stringlist_attributes,
+ new_data.stringlist_attributes,
+ std::vector<std::string>(), stringlist_callback);
}
void AXTree::DestroySubtree(AXNode* node,
« no previous file with comments | « ui/accessibility/ax_tree.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698