DescriptionMake Label's NO_ELIDE setting actually not elide, and change the default
behavior to ELIDE_AT_END. This makes the content settings banner in the
omnibox look better, since it now just chops the end of the text off while it's
animating in instead of eliding it.
For non-Linux, non-multiline labels, this means that instead of calling
ui::ElideText(..., ui::ELIDE_AT_END) indirectly from
Canvas::DrawStringWithShadows(), we now call it in
Label::CalculateDrawStringParams(). Presumably this makes no difference, unless
there's something weirdly different about the bounds supplied to the ElideText()
calls in those two places.
For OS_LINUX, this means that non-multiline LTR Labels will now be elided using
ui::ElideText() (and thus will use an ellipsis) by default, instead of being
faded at the right edge. I don't know how many such elided labels exist on
Linux, so it's hard for me to evaluate the impact of this change. Note that
callers directly to the canvas string-drawing functions are unaffected by this.
BUG=none
TEST=none
R=sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200850
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Messages
Total messages: 8 (0 generated)
|