diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 17:38:03 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 17:38:03 +0000 |
commit | 9f221e935d57a911844598748f9fde346a96e464 (patch) | |
tree | 29cfd69f5219511e8e67a109e3f33c6b78e1b3c8 /views/examples | |
parent | bf1ca900cb966149e6c08a48a27d4fa2120f6631 (diff) | |
download | chromium_src-9f221e935d57a911844598748f9fde346a96e464.zip chromium_src-9f221e935d57a911844598748f9fde346a96e464.tar.gz chromium_src-9f221e935d57a911844598748f9fde346a96e464.tar.bz2 |
Adds the ability to display text in a textfield when the text is
empty.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1155008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42353 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/examples')
-rw-r--r-- | views/examples/textfield_example.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/views/examples/textfield_example.h b/views/examples/textfield_example.h index a348cd3..1a03b05 100644 --- a/views/examples/textfield_example.h +++ b/views/examples/textfield_example.h @@ -32,6 +32,7 @@ class TextfieldExample : public ExampleBase, virtual void CreateExampleView(views::View* container) { name_ = new Textfield(); password_ = new Textfield(Textfield::STYLE_PASSWORD); + password_->set_text_to_display_when_empty(ASCIIToUTF16("password")); show_password_ = new views::TextButton(this, L"Show password"); clear_all_ = new views::TextButton(this, L"Clear All"); append_ = new views::TextButton(this, L"Append"); |