summaryrefslogtreecommitdiffstats
path: root/views/controls
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls')
-rw-r--r--views/controls/textfield/native_textfield_gtk.cc4
-rw-r--r--views/controls/textfield/native_textfield_gtk.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/views/controls/textfield/native_textfield_gtk.cc b/views/controls/textfield/native_textfield_gtk.cc
index 9cf4832..2a65fbd 100644
--- a/views/controls/textfield/native_textfield_gtk.cc
+++ b/views/controls/textfield/native_textfield_gtk.cc
@@ -255,6 +255,10 @@ void NativeTextfieldGtk::UpdateEnabled() {
SetEnabled(textfield_->IsEnabled());
}
+bool NativeTextfieldGtk::IsPassword() {
+ return textfield_->IsPassword();
+}
+
gfx::Insets NativeTextfieldGtk::CalculateInsets() {
if (!native_view())
return gfx::Insets();
diff --git a/views/controls/textfield/native_textfield_gtk.h b/views/controls/textfield/native_textfield_gtk.h
index b7665a8..60d02de 100644
--- a/views/controls/textfield/native_textfield_gtk.h
+++ b/views/controls/textfield/native_textfield_gtk.h
@@ -41,6 +41,7 @@ class NativeTextfieldGtk : public NativeControlGtk,
virtual void UpdateFont();
virtual void UpdateIsPassword();
virtual void UpdateEnabled();
+ virtual bool IsPassword();
virtual gfx::Insets CalculateInsets();
virtual void SetHorizontalMargins(int left, int right);
virtual void SetFocus();