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

Issue 100013: Allow words to be wrapped in message box.... (Closed)

Created:
11 years, 8 months ago by hamaji
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Allow words to be wrapped in message box. We use DT_WORDBREK|DT_EDITCONTROL as the argument of DrawText(). With this option, DrawText() try to wrap texts at word-breaks first, then wraps at non-word-breaks if one line is still too long. This change only affects for Labels in MessageBox. If we can always use this policy, please let me know and I'll fix the code. BUG=2441

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M chrome/common/gfx/chrome_canvas.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/gfx/chrome_canvas_win.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/views/controls/label.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/views/controls/label.cc View 1 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/views/controls/message_box_view.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
hamaji
11 years, 8 months ago (2009-04-27 18:18:11 UTC) #1
Ben Goodger (Google)
OK, just nits. http://codereview.chromium.org/100013/diff/1/2 File chrome/common/gfx/chrome_canvas.h (right): http://codereview.chromium.org/100013/diff/1/2#newcode63 Line 63: // Specifies if words can ...
11 years, 8 months ago (2009-04-27 18:31:57 UTC) #2
hamaji
Thanks you for the quick review! I fixed all. http://codereview.chromium.org/100013/diff/1/2 File chrome/common/gfx/chrome_canvas.h (right): http://codereview.chromium.org/100013/diff/1/2#newcode63 Line ...
11 years, 8 months ago (2009-04-27 18:36:54 UTC) #3
hamaji
11 years, 8 months ago (2009-04-27 18:57:09 UTC) #4
FYI, Build bot ran successfully. If there are no more issues, could you check
this in? I don't have chromium account yet.

Thanks!

On 2009/04/27 18:36:54, hamaji wrote:
> Thanks you for the quick review! I fixed all.
> 
> http://codereview.chromium.org/100013/diff/1/2
> File chrome/common/gfx/chrome_canvas.h (right):
> 
> http://codereview.chromium.org/100013/diff/1/2#newcode63
> Line 63: // Specifies if words can be splitted by new lines.
> On 2009/04/27 18:31:57, Ben Goodger wrote:
> > nit: split
> 
> Done.
> 
> http://codereview.chromium.org/100013/diff/1/3
> File chrome/common/gfx/chrome_canvas_win.cc (right):
> 
> http://codereview.chromium.org/100013/diff/1/3#newcode57
> Line 57: if (flags & ChromeCanvas::CHARACTER_BREAK) {
> On 2009/04/27 18:31:57, Ben Goodger wrote:
> > nit: no braces for single line if
> 
> Done.
> 
> http://codereview.chromium.org/100013/diff/1/4
> File chrome/views/controls/label.cc (right):
> 
> http://codereview.chromium.org/100013/diff/1/4#newcode84
> Line 84: if (allow_character_break_) {
> On 2009/04/27 18:31:57, Ben Goodger wrote:
> > nit: no { on single line if
> 
> Done.
> 
> http://codereview.chromium.org/100013/diff/1/5
> File chrome/views/controls/label.h (right):
> 
> http://codereview.chromium.org/100013/diff/1/5#newcode127
> Line 127: // Set whether the label text can be splitted in words.
> On 2009/04/27 18:31:57, Ben Goodger wrote:
> > nit: split on words
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698