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

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

Issue 100013: Allow words to be wrapped in message box.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « chrome/common/gfx/chrome_canvas_win.cc ('k') | chrome/views/controls/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/controls/label.h
===================================================================
--- chrome/views/controls/label.h (revision 14610)
+++ chrome/views/controls/label.h (working copy)
@@ -121,9 +121,13 @@
RTLAlignmentMode GetRTLAlignmentMode() const;
// Set whether the label text can wrap on multiple lines.
- // Default is false
+ // Default is false.
void SetMultiLine(bool f);
+ // Set whether the label text can be split on words.
+ // Default is false. This only works when is_multi_line is true.
+ void SetAllowCharacterBreak(bool f);
+
// Return whether the label text can wrap on multiple lines
bool IsMultiLine();
@@ -229,6 +233,7 @@
gfx::Size text_size_;
bool text_size_valid_;
bool is_multi_line_;
+ bool allow_character_break_;
bool url_set_;
Alignment horiz_alignment_;
std::wstring tooltip_text_;
« no previous file with comments | « chrome/common/gfx/chrome_canvas_win.cc ('k') | chrome/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698