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

Unified Diff: ui/views/controls/label.cc

Issue 2860883003: A11y: Add/refactor methods for manipulating bitfields on AXNodeData. (Closed)
Patch Set: Delete AXNodeData::Init() and clear bitfields in AXNodeData() instead. 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
Index: ui/views/controls/label.cc
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
index 182d335edde8f591f83c0fb6a9628039830b2cd5..2523f9a8bf5abcabcca1627d937573dd6385f0e1 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -403,7 +403,7 @@ WordLookupClient* Label::GetWordLookupClient() {
void Label::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->role = ui::AX_ROLE_STATIC_TEXT;
- node_data->AddStateFlag(ui::AX_STATE_READ_ONLY);
+ node_data->AddState(ui::AX_STATE_READ_ONLY);
// Note that |render_text_| is never elided (see the comment in Init() too).
node_data->SetName(render_text_->GetDisplayText());
}

Powered by Google App Engine
This is Rietveld 408576698