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

Unified Diff: ui/accessibility/ax_node_data.cc

Issue 2528103002: Views a11y: Add comment to explain usage of AXNodeData's |state| member. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node_data.cc
diff --git a/ui/accessibility/ax_node_data.cc b/ui/accessibility/ax_node_data.cc
index 66deec361b660a098663da34a9a7490dbd7b4af4..8f8706073dc2deec7acfdbdd038f055b3100baf4 100644
--- a/ui/accessibility/ax_node_data.cc
+++ b/ui/accessibility/ax_node_data.cc
@@ -60,6 +60,8 @@ typename std::vector<std::pair<FirstType, SecondType>>::const_iterator
AXNodeData::AXNodeData()
: id(-1),
role(AX_ROLE_UNKNOWN),
+ // Turn on all flags to more easily catch bugs where no flags are set.
+ // This will be cleared back to a 0-state before use.
state(0xFFFFFFFF),
offset_container_id(-1) {
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698