summaryrefslogtreecommitdiffstats
path: root/views/controls/textfield/textfield.h
diff options
context:
space:
mode:
authorchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-22 17:15:24 +0000
committerchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-22 17:15:24 +0000
commit64dc46a5c7f4f2a9f4436e91d86b33fd64898148 (patch)
tree4bb0276e40f91bcc26453b726adbc116d436250c /views/controls/textfield/textfield.h
parent13c04b4deda5816be724ba8038cc4404db3b5fcf (diff)
downloadchromium_src-64dc46a5c7f4f2a9f4436e91d86b33fd64898148.zip
chromium_src-64dc46a5c7f4f2a9f4436e91d86b33fd64898148.tar.gz
chromium_src-64dc46a5c7f4f2a9f4436e91d86b33fd64898148.tar.bz2
Fix bug with native text field where if there's a visibility change, the native control gets recreated without updating the properties. For chromeos login, the password field becomes a normal textfield.
BUG=chromeos:2023 TEST=during login, we should not show the password in the clear. Review URL: http://codereview.chromium.org/1076008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42229 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/textfield/textfield.h')
-rw-r--r--views/controls/textfield/textfield.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/views/controls/textfield/textfield.h b/views/controls/textfield/textfield.h
index 7b9c393..71bdf49 100644
--- a/views/controls/textfield/textfield.h
+++ b/views/controls/textfield/textfield.h
@@ -184,6 +184,10 @@ class Textfield : public View {
bool draw_border() const { return draw_border_; }
void RemoveBorder();
+ // Updates all properties on the textfield. This is invoked internally.
+ // Users of Textfield never need to invoke this directly.
+ void UpdateAllProperties();
+
// Invoked by the edit control when the value changes. This method set
// the text_ member variable to the value contained in edit control.
// This is important because the edit control can be replaced if it has
@@ -216,10 +220,6 @@ class Textfield : public View {
virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
virtual std::string GetClassName() const;
- // Creates a new native wrapper properly initialized and returns it. Ownership
- // is passed to the caller.
- NativeTextfieldWrapper* CreateWrapper();
-
// The object that actually implements the native text field.
NativeTextfieldWrapper* native_wrapper_;