DescriptionAdded text line limits to collapsed and expanded notifications.
This is done through a new BoundedLabel views::Label subclass that
supports a max_lines value. This class comes with unit tests covering
its basic functionality.
Also, the Notifications Galore! test app was updated to include test
notifications with long titles, long messages, and long items which can
be used for manual tests of the line limits.
As with the rest of the collapse/expand functionality currently
committed, this only applies to the notification center. Notification
toasts are currently still always expanded and text line limits have not
been tested for them.
There are some known issues with incorrect notification card sizes in
the notification center after some sequence of create/destroy
operations, and these will be addressed in a separate change list.
BUG=161098, 168939, 168940
R=dewittj@chromium.org
TBR=mukai@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188637
Patch Set 1 #
Total comments: 4
Patch Set 2 : #
Total comments: 1
Patch Set 3 : Rebase #
Total comments: 3
Patch Set 4 : #
Total comments: 2
Patch Set 5 : #Patch Set 6 : Fixed build break on windows. #Patch Set 7 : Fixed Mac build problem. #Patch Set 8 : #
Total comments: 3
Messages
Total messages: 22 (0 generated)
|