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

Unified Diff: ui/views/examples/multiline_example.cc

Issue 120503005: Merge NativeTextfieldViews into views::Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix touch drag and drop unit test. Created 6 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
Index: ui/views/examples/multiline_example.cc
diff --git a/ui/views/examples/multiline_example.cc b/ui/views/examples/multiline_example.cc
index 275a0a5de4a33b18976c2186c4aed9af69866e21..865c4db0ff3a036df323294dbfa93d6deb7b0ed9 100644
--- a/ui/views/examples/multiline_example.cc
+++ b/ui/views/examples/multiline_example.cc
@@ -156,7 +156,7 @@ bool MultilineExample::HandleKeyEvent(Textfield* sender,
void MultilineExample::ButtonPressed(Button* sender, const ui::Event& event) {
DCHECK_EQ(sender, label_checkbox_);
- label_->SetText(label_checkbox_->checked() ? textfield_->text() :
+ label_->SetText(label_checkbox_->checked() ? textfield_->GetText() :
base::string16());
container()->Layout();
container()->SchedulePaint();

Powered by Google App Engine
This is Rietveld 408576698