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

Unified Diff: ui/views/controls/label.h

Issue 10834207: aura: Long launcher tooltips should elide at end. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « ash/launcher/launcher_tooltip_manager.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.h
diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h
index 3881e8fa613073f0ff9253bc76612649e6ce7ae6..536bfcecf2556eb188e18dd9db12ef06fdafd7f6 100644
--- a/ui/views/controls/label.h
+++ b/ui/views/controls/label.h
@@ -166,6 +166,8 @@ class VIEWS_EXPORT Label : public View {
}
bool paint_as_focused() const { return paint_as_focused_; }
+ void set_elide_at_end(bool elide_at_end) { elide_at_end_ = elide_at_end; }
+
void SetHasFocusBorder(bool has_focus_border);
// Overridden from View:
@@ -266,6 +268,7 @@ class VIEWS_EXPORT Label : public View {
bool is_multi_line_;
bool allow_character_break_;
bool elide_in_middle_;
sky 2012/08/07 19:41:59 Can we use ElideBehavior directly instead of two b
varunjain 2012/08/07 20:24:10 Done.
+ bool elide_at_end_;
bool is_email_;
Alignment horiz_alignment_;
string16 tooltip_text_;
« no previous file with comments | « ash/launcher/launcher_tooltip_manager.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698