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

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

Issue 9117012: Rename visual style "password" to "obscured" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 11 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/native_textfield_views.cc
diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
index 5f2ac4f0540759027ba9540704a6f6b57b2f7c17..3d162e180c3ea2e20c427ef7b3662507bcd65539 100644
--- a/ui/views/controls/textfield/native_textfield_views.cc
+++ b/ui/views/controls/textfield/native_textfield_views.cc
@@ -408,8 +408,8 @@ void NativeTextfieldViews::UpdateFont() {
#endif
}
-void NativeTextfieldViews::UpdateIsPassword() {
- model_->set_is_password(textfield_->IsPassword());
+void NativeTextfieldViews::UpdateIsObscured() {
+ model_->set_is_obscured(textfield_->IsObscured());
OnCaretBoundsChanged();
SchedulePaint();
OnTextInputTypeChanged();
@@ -715,8 +715,8 @@ bool NativeTextfieldViews::HasCompositionText() {
}
bool NativeTextfieldViews::GetTextRange(ui::Range* range) {
- // We don't allow the input method to retrieve or delete content from a
- // password box.
+ // We don't allow the input method to retrieve or delete content from an
+ // obscured textfield.
if (GetTextInputType() != ui::TEXT_INPUT_TYPE_TEXT)
return false;
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views.h ('k') | ui/views/controls/textfield/native_textfield_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698