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

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

Issue 354963003: Move gfx::ElideText functionality to RenderText. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and rebase. Created 6 years, 5 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/label.cc ('k') | ui/views/examples/text_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/label_example.cc
diff --git a/ui/views/examples/label_example.cc b/ui/views/examples/label_example.cc
index 6521ded0896f3bd56d0c75d6c5cea66e907df258..0ffa7460d9c5fe6022c13452ca4e836519299988 100644
--- a/ui/views/examples/label_example.cc
+++ b/ui/views/examples/label_example.cc
@@ -25,8 +25,8 @@ namespace examples {
namespace {
-const char* kElideBehaviors[] = { "Truncate", "Elide Head", "Elide Middle",
- "Elide Tail", "Elide Email", "Fade Tail" };
+const char* kElideBehaviors[] = { "No Elide", "Truncate", "Elide Head",
+ "Elide Middle", "Elide Tail", "Elide Email", "Fade Tail" };
const char* kAlignments[] = { "Left", "Center", "Right", "Head" };
// A Label with a clamped preferred width to demonstrate eliding or wrapping.
@@ -190,7 +190,7 @@ void LabelExample::AddCustomLabel(View* container) {
layout->StartRow(0, 2);
custom_label_ = new PreferredSizeLabel();
custom_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- custom_label_->SetElideBehavior(gfx::TRUNCATE);
+ custom_label_->SetElideBehavior(gfx::NO_ELIDE);
custom_label_->SetText(textfield_->text());
layout->AddView(custom_label_);
« no previous file with comments | « ui/views/controls/label.cc ('k') | ui/views/examples/text_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698