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

Unified Diff: views/examples/textfield_example.h

Issue 1155008: Adds the ability to display text in a textfield when the text is (Closed)
Patch Set: Updates Created 10 years, 9 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 | « views/controls/textfield/textfield.h ('k') | views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/textfield_example.h
diff --git a/views/examples/textfield_example.h b/views/examples/textfield_example.h
index a348cd32fbd22d7226bfddfc0ffad150269e0273..1a03b05c4c2fd315bd6c3e4b0a8fb05db6545b53 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");
« no previous file with comments | « views/controls/textfield/textfield.h ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698