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

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

Issue 9117012: Rename visual style "password" to "obscured" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 11 months 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/textfield.cc ('k') | ui/views/controls/textfield/textfield_views_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield_views_model.h
diff --git a/ui/views/controls/textfield/textfield_views_model.h b/ui/views/controls/textfield/textfield_views_model.h
index 51a4ea45833a8374d80901a38347947751c12bcc..7aceb667ef479cee9d6d39cfee6ecb7233116287 100644
--- a/ui/views/controls/textfield/textfield_views_model.h
+++ b/ui/views/controls/textfield/textfield_views_model.h
@@ -65,8 +65,8 @@ class VIEWS_EXPORT TextfieldViewsModel {
explicit TextfieldViewsModel(Delegate* delegate);
virtual ~TextfieldViewsModel();
- void set_is_password(bool is_password) {
- is_password_ = is_password;
+ void set_is_obscured(bool is_obscured) {
+ is_obscured_ = is_obscured;
}
// Edit related methods.
@@ -183,7 +183,7 @@ class VIEWS_EXPORT TextfieldViewsModel {
// Redo edit. Returns true if redo changed the text.
bool Redo();
- // Returns visible text. If the field is password, it returns the
+ // Returns visible text. If the field is obscured, it returns the
// sequence of "*".
string16 GetVisibleText() const;
@@ -304,8 +304,8 @@ class VIEWS_EXPORT TextfieldViewsModel {
// The stylized text, cursor, selection, and the visual layout model.
scoped_ptr<gfx::RenderText> render_text_;
- // True if the text is the password.
- bool is_password_;
+ // True if the text is obscured (e.g., a password).
+ bool is_obscured_;
typedef std::list<internal::Edit*> EditHistory;
EditHistory edit_history_;
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/controls/textfield/textfield_views_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698