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

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

Issue 2934993002: MacViews a11y: Allow VoiceOver to read out views::Label word-by-word. (Closed)
Patch Set: Fix TextfieldTest.AccessiblePasswordTest 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
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 708921603b8864092626c4f890f1284da8d0e4cb..1dd4dec9407a1a96b786a28a993744d3ef30442e 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -926,7 +926,8 @@ void Textfield::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->AddState(ui::AX_STATE_EDITABLE);
if (text_input_type_ == ui::TEXT_INPUT_TYPE_PASSWORD) {
node_data->AddState(ui::AX_STATE_PROTECTED);
- node_data->SetValue(base::string16(text().size(), '*'));
+ node_data->SetValue(base::string16(
+ text().size(), gfx::RenderText::kPasswordReplacementChar));
} else {
node_data->SetValue(text());
}
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_mac.mm ('k') | ui/views/controls/textfield/textfield_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698