summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorchaitanyag@chromium.org <chaitanyag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 21:22:55 +0000
committerchaitanyag@chromium.org <chaitanyag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 21:22:55 +0000
commit83d1d571d3eca7d64a03365b803dabfb89407cf5 (patch)
tree0456abbd903fa45f7ff767d69f49d9f302019236 /views
parent8c306d32c47d777be2fa19e292d6e9a774c2a248 (diff)
downloadchromium_src-83d1d571d3eca7d64a03365b803dabfb89407cf5.zip
chromium_src-83d1d571d3eca7d64a03365b803dabfb89407cf5.tar.gz
chromium_src-83d1d571d3eca7d64a03365b803dabfb89407cf5.tar.bz2
Fixing the problem where accessibility events for password fields did not set the password boolean field.
Review URL: http://codereview.chromium.org/3353005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-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();