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

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

Issue 1015533016: Move allow_character_break property to RenderText. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: line width for truncated words Created 5 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 | « ui/gfx/text_elider.h ('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 03eade981af0e8d38aeb93c7ee45c1b0ca15bb76..10aa9101d161d23e18f4510a53af6e3929152cd1 100644
--- a/ui/views/controls/label.h
+++ b/ui/views/controls/label.h
@@ -86,6 +86,7 @@ class VIEWS_EXPORT Label : public View {
void SetObscured(bool obscured);
// Sets whether multi-line text can wrap mid-word; the default is false.
+ // TODO(mukai): allow specifying WordWrapBehavior.
void SetAllowCharacterBreak(bool allow_character_break);
// Sets the eliding or fading behavior, applied as necessary. The default is
@@ -209,7 +210,6 @@ class VIEWS_EXPORT Label : public View {
bool handles_tooltips_;
// Whether to collapse the label when it's not visible.
bool collapse_when_hidden_;
- bool allow_character_break_;
int max_width_;
// TODO(vadimt): Remove is_first_paint_text_ before crbug.com/431326 is
« no previous file with comments | « ui/gfx/text_elider.h ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698