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

Unified Diff: ui/views/controls/textfield/textfield.h

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: rebase Created 9 years, 1 month 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
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index abdd5901ebe787e24533d35130de3281a128420e..eaf9c997f6e5e683d89c3b3395a2048451252e6f 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -63,12 +63,11 @@ class VIEWS_EXPORT Textfield : public View {
bool read_only() const { return read_only_; }
void SetReadOnly(bool read_only);
- // Gets/Sets whether or not this Textfield is a password field.
- // TODO(bryeung): Currently this is only used in
- // chrome/browser/chromeos/options/wifi_config_view.cc, which is being
- // converted to WebUI. Please remove this when that happens.
- bool IsPassword() const;
- void SetPassword(bool password);
+ // Gets whether or not this Textfield is a password field. This property
+ // can be set by calling SetTextInputType.
+ bool IsPassword() const {
+ return style() & STYLE_PASSWORD;
tfarina 2011/11/30 19:32:03 nit: please use style_ here directly. Also I'd pre
benrg 2011/11/30 19:54:24 This was one of my bullet points -- I wanted to ma
oshima 2011/12/01 22:08:22 This one should be in .cc
benrg 2011/12/01 23:36:16 Done.
+ }
// Gets/Sets the input type of this textfield.
ui::TextInputType GetTextInputType() const;
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698