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

Issue 2925263003: Notification: Implement two-leveled notification. (Closed)

Created:
3 years, 6 months ago by fukino
Modified:
3 years, 6 months ago
Reviewers:
yoshiki
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Notification: 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+499 lines, -178 lines) Patch
M ui/message_center/BUILD.gn View 2 chunks +6 lines, -2 lines 0 comments Download
A ui/message_center/vector_icons/notification_expand_less.icon View 1 chunk +13 lines, -0 lines 0 comments Download
A ui/message_center/vector_icons/notification_expand_more.icon View 1 chunk +13 lines, -0 lines 0 comments Download
A ui/message_center/views/notification_header_view.h View 1 chunk +57 lines, -0 lines 0 comments Download
A ui/message_center/views/notification_header_view.cc View 1 chunk +162 lines, -0 lines 0 comments Download
M ui/message_center/views/notification_view_md.h View 1 2 3 3 chunks +25 lines, -22 lines 0 comments Download
M ui/message_center/views/notification_view_md.cc View 1 2 3 12 chunks +223 lines, -154 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
fukino
PTAL. Thanks!
3 years, 6 months ago (2017-06-08 22:03:47 UTC) #3
fukino
https://codereview.chromium.org/2925263003/diff/1/ui/message_center/views/notification_view_md.h File ui/message_center/views/notification_view_md.h (right): https://codereview.chromium.org/2925263003/diff/1/ui/message_center/views/notification_view_md.h#newcode89 ui/message_center/views/notification_view_md.h:89: NotificationHeaderView* header_row_ = nullptr; I renamed top_view_, main_view_, and ...
3 years, 6 months ago (2017-06-08 22:05:48 UTC) #4
yoshiki
Thank you for doing this! I did an initial look. https://codereview.chromium.org/2925263003/diff/1/ui/message_center/views/notification_view_md.cc File ui/message_center/views/notification_view_md.cc (right): https://codereview.chromium.org/2925263003/diff/1/ui/message_center/views/notification_view_md.cc#newcode389 ...
3 years, 6 months ago (2017-06-09 08:48:25 UTC) #5
fukino
Thank you! https://codereview.chromium.org/2925263003/diff/1/ui/message_center/views/notification_view_md.cc File ui/message_center/views/notification_view_md.cc (right): https://codereview.chromium.org/2925263003/diff/1/ui/message_center/views/notification_view_md.cc#newcode389 ui/message_center/views/notification_view_md.cc:389: delete image_container_; On 2017/06/09 08:48:25, yoshiki wrote: ...
3 years, 6 months ago (2017-06-09 09:26:33 UTC) #6
fukino
yoshiki@, could you take another look? To make the behavior more consistent with Android notifications, ...
3 years, 6 months ago (2017-06-12 09:07:38 UTC) #7
yoshiki
lgtm. Thanks.
3 years, 6 months ago (2017-06-12 09:33:17 UTC) #8
fukino
On 2017/06/12 09:33:17, yoshiki wrote: > lgtm. Thanks. Thank you for the review!
3 years, 6 months ago (2017-06-12 09:36:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2925263003/60001
3 years, 6 months ago (2017-06-12 09:36:28 UTC) #11
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 10:56:34 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/63a16add8253bc6a138329c648ba...

Powered by Google App Engine
This is Rietveld 408576698