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

Unified Diff: ui/accessibility/ax_tree.cc

Issue 2873373005: Add custom action support (Closed)
Patch Set: Fix a few files. Created 3 years, 7 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
« ui/accessibility/ax_enums.idl ('K') | « 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 b2c0833204d2c7a415cda0442a467b8406b3a531..b95ac57ab895bc1cd8762a9d617211dd7af3b25e 100644
--- a/ui/accessibility/ax_tree.cc
+++ b/ui/accessibility/ax_tree.cc
@@ -407,6 +407,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,
« ui/accessibility/ax_enums.idl ('K') | « ui/accessibility/ax_tree.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698