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

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

Issue 8748001: Make text input type and password visibility bit independent in Textfield (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Textfield(STYLE_OBSCURED) sets TEXT_INPUT_TYPE_PASSWORD Created 9 years 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_gtk.cc
diff --git a/ui/views/controls/textfield/native_textfield_gtk.cc b/ui/views/controls/textfield/native_textfield_gtk.cc
index 3bab2a10df2f1c9574c112cf3348ba2fcf195cf6..dd6011a00195a01f2d67696bcb25542ea341ad33 100644
--- a/ui/views/controls/textfield/native_textfield_gtk.cc
+++ b/ui/views/controls/textfield/native_textfield_gtk.cc
@@ -166,10 +166,10 @@ void NativeTextfieldGtk::UpdateFont() {
pango_font_description_free(pfd);
}
-void NativeTextfieldGtk::UpdateIsPassword() {
+void NativeTextfieldGtk::UpdateIsObscured() {
if (!native_view())
return;
- gtk_entry_set_visibility(GTK_ENTRY(native_view()), !textfield_->IsPassword());
+ gtk_entry_set_visibility(GTK_ENTRY(native_view()), !textfield_->IsObscured());
}
void NativeTextfieldGtk::UpdateEnabled() {
@@ -420,8 +420,8 @@ void NativeTextfieldGtk::NativeControlCreated(GtkWidget* widget) {
G_CALLBACK(OnKeyPressEventAfterThunk), this);
}
-bool NativeTextfieldGtk::IsPassword() {
- return textfield_->IsPassword();
+bool NativeTextfieldGtk::IsObscured() {
+ return textfield_->IsObscured();
}
///////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698