Chromium Code Reviews
DescriptionNotification: Implement two-leveled notification.
The new-style notification should have two states: Collapsed(default) and Expanded.
To implement the feature, this CL does:
* Create NotificationHeaderView which is responsible to keeps app_icon, app_name, expand_button, settings_button, and close_button.
* When the expand_button is clicked, some view's visibility and message_view's line limit is modified to have "expanded" view.
For simplicity, I avoided dynamic creation/deletion of views on expanded state change. The expanded state only changes the existing view's property.
If it hit noticeable performance regression, I'll update the way to change the view.
BUG=728500, 726242
TEST=manually tested expand/collapse function on following notifications using --enabled-new-style-notification
* A basic notification with one-line message (This doesn't have expand icon.)
* A basic notificatoin with two-line message
* A basic notification with two buttons
* A image notification
Review-Url: https://codereview.chromium.org/2925263003
Cr-Commit-Position: refs/heads/master@{#478587}
Committed: https://chromium.googlesource.com/chromium/src/+/63a16add8253bc6a138329c648ba82a5492f11f0
Patch Set 1 #
Total comments: 10
Patch Set 2 : Address review comments. #Patch Set 3 : Move image out of left container, etc #Patch Set 4 : Remove an unused function. #
Messages
Total messages: 14 (5 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||