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

Unified Diff: ui/accessibility/ax_node_data.h

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_enums.idl ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node_data.h
diff --git a/ui/accessibility/ax_node_data.h b/ui/accessibility/ax_node_data.h
index 8d64ef51f39f54003f408e5c0dd17474d1cd1a7f..29e79987433afd6d147c8a08d57ea37a95e008d1 100644
--- a/ui/accessibility/ax_node_data.h
+++ b/ui/accessibility/ax_node_data.h
@@ -86,6 +86,12 @@ struct AX_EXPORT AXNodeData {
bool GetIntListAttribute(AXIntListAttribute attribute,
std::vector<int32_t>* value) const;
+ bool HasStringListAttribute(AXStringListAttribute attribute) const;
+ const std::vector<std::string>& GetStringListAttribute(
+ AXStringListAttribute attribute) const;
+ bool GetStringListAttribute(AXStringListAttribute attribute,
+ std::vector<std::string>* value) const;
+
bool GetHtmlAttribute(const char* attr, base::string16* value) const;
bool GetHtmlAttribute(const char* attr, std::string* value) const;
@@ -97,6 +103,8 @@ struct AX_EXPORT AXNodeData {
void AddBoolAttribute(AXBoolAttribute attribute, bool value);
void AddIntListAttribute(AXIntListAttribute attribute,
const std::vector<int32_t>& value);
+ void AddStringListAttribute(AXStringListAttribute attribute,
+ const std::vector<std::string>& value);
// Convenience functions, mainly for writing unit tests.
// Equivalent to AddStringAttribute(ATTR_NAME, name).
@@ -129,6 +137,8 @@ struct AX_EXPORT AXNodeData {
std::vector<std::pair<AXBoolAttribute, bool>> bool_attributes;
std::vector<std::pair<AXIntListAttribute, std::vector<int32_t>>>
intlist_attributes;
+ std::vector<std::pair<AXStringListAttribute, std::vector<std::string>>>
+ stringlist_attributes;
base::StringPairs html_attributes;
std::vector<int32_t> child_ids;
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698