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

Issue 2547433002: Transfer responsibility for providing a close button for a notification to each implementation of M… (Closed)

Created:
4 years ago by yhanada
Modified:
4 years ago
Reviewers:
xiyuan, yoshiki
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, lhchavez+watch_chromium.org, hidehiko+watch_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Transfer responsibility for providing a close button for a notification to each implementation of MessageView. Because content of |CustomNotificationView| covers a close button that is owned by |MessageView|, |CustomNotificationView| provides their own close button. This causes inconsistent behavior of the close buttons between normal notifications and custom notifications. - Transfer the close button which is owned by |MessageView| to |NotificationView| - Introduce |CustomNotificationContentViewDelegate| class for delegating handling of a close button to a content view hosted by |CustomNotificationView| BUG=661105 TEST=Manual test. The keyboard focus is moved to a close button of a custom notification when the close button of the next notification is focused and the next notification is removed. Committed: https://crrev.com/a53dbe07cd6f4abd9ce526cc07c118518654a440 Cr-Commit-Position: refs/heads/master@{#436827}

Patch Set 1 #

Patch Set 2 : Delete debug logs #

Total comments: 5

Patch Set 3 : address the review comments #

Total comments: 13

Patch Set 4 : address the comments #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : WrapUnique -> MakeUnique #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -106 lines) Patch
M ui/arc/notification/arc_custom_notification_item.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_view.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_view.cc View 1 2 4 chunks +42 lines, -1 line 0 comments Download
M ui/message_center/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/notification_delegate.h View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M ui/message_center/notification_delegate_views.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A ui/message_center/views/custom_notification_content_view_delegate.h View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A ui/message_center/views/custom_notification_content_view_delegate.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M ui/message_center/views/custom_notification_view.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M ui/message_center/views/custom_notification_view.cc View 1 2 3 2 chunks +23 lines, -3 lines 0 comments Download
M ui/message_center/views/custom_notification_view_unittest.cc View 1 2 3 4 5 3 chunks +11 lines, -14 lines 0 comments Download
M ui/message_center/views/message_view.h View 6 chunks +4 lines, -12 lines 0 comments Download
M ui/message_center/views/message_view.cc View 8 chunks +0 lines, -64 lines 0 comments Download
M ui/message_center/views/notification_view.h View 5 chunks +11 lines, -0 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 6 chunks +61 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (15 generated)
yhanada
Hi yoshiki@, PTAL.
4 years ago (2016-12-01 06:55:33 UTC) #6
yoshiki
+xiyuan may have other comments. https://codereview.chromium.org/2547433002/diff/20001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (right): https://codereview.chromium.org/2547433002/diff/20001/ui/arc/notification/arc_custom_notification_item.cc#newcode30 ui/arc/notification/arc_custom_notification_item.cc:30: std::tuple< Instead of using ...
4 years ago (2016-12-02 12:15:48 UTC) #9
xiyuan
Overall approach looks good. https://codereview.chromium.org/2547433002/diff/20001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (right): https://codereview.chromium.org/2547433002/diff/20001/ui/arc/notification/arc_custom_notification_item.cc#newcode30 ui/arc/notification/arc_custom_notification_item.cc:30: std::tuple< On 2016/12/02 12:15:48, yoshiki ...
4 years ago (2016-12-02 17:45:53 UTC) #10
yhanada
Thank you all for reviewing! I created a new struct |CustomContent| for holding the view ...
4 years ago (2016-12-06 02:48:08 UTC) #11
yoshiki
https://codereview.chromium.org/2547433002/diff/40001/ui/arc/notification/arc_custom_notification_view.cc File ui/arc/notification/arc_custom_notification_view.cc (right): https://codereview.chromium.org/2547433002/diff/40001/ui/arc/notification/arc_custom_notification_view.cc#newcode207 ui/arc/notification/arc_custom_notification_view.cc:207: ArcCustomNotificationView::CreateContentViewDelegate() { Shouldn't we need to add 4-space indent? ...
4 years ago (2016-12-06 05:28:28 UTC) #12
yhanada
https://codereview.chromium.org/2547433002/diff/40001/ui/arc/notification/arc_custom_notification_view.cc File ui/arc/notification/arc_custom_notification_view.cc (right): https://codereview.chromium.org/2547433002/diff/40001/ui/arc/notification/arc_custom_notification_view.cc#newcode207 ui/arc/notification/arc_custom_notification_view.cc:207: ArcCustomNotificationView::CreateContentViewDelegate() { On 2016/12/06 05:28:27, yoshiki wrote: > Shouldn't ...
4 years ago (2016-12-06 06:41:26 UTC) #13
yoshiki
lgtm >?>984234444444444444444444444445123`111111111111111111111111111111111111111111111111111111111111432qwerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrewwwwwwwwwwwwewqqqqqqqqqqqqqqqqqqqqwqqqeeeeeeeeeeeeeadfsqqqqqqqqqqqqqqqqqqqqqqqqqqqwerrtrte
4 years ago (2016-12-06 08:31:55 UTC) #15
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/2547433002/60001
4 years ago (2016-12-06 08:32:19 UTC) #16
yoshiki
Sorry, I was cleaning the keyboard. The patch lgtm.
4 years ago (2016-12-06 08:34:48 UTC) #19
yoshiki
Sorry, I was cleaning the keyboard. The patch lgtm.
4 years ago (2016-12-06 08:34:50 UTC) #20
xiyuan
lgtm https://codereview.chromium.org/2547433002/diff/60001/ui/message_center/views/custom_notification_view_unittest.cc File ui/message_center/views/custom_notification_view_unittest.cc (right): https://codereview.chromium.org/2547433002/diff/60001/ui/message_center/views/custom_notification_view_unittest.cc#newcode84 ui/message_center/views/custom_notification_view_unittest.cc:84: base::WrapUnique(new TestContentViewDelegate)); nit: WrapUnique -> MakeUnique
4 years ago (2016-12-06 17:11:16 UTC) #21
yhanada
Thank you for reviewing! https://codereview.chromium.org/2547433002/diff/60001/ui/message_center/views/custom_notification_view_unittest.cc File ui/message_center/views/custom_notification_view_unittest.cc (right): https://codereview.chromium.org/2547433002/diff/60001/ui/message_center/views/custom_notification_view_unittest.cc#newcode84 ui/message_center/views/custom_notification_view_unittest.cc:84: base::WrapUnique(new TestContentViewDelegate)); On 2016/12/06 17:11:16, ...
4 years ago (2016-12-07 00:23:25 UTC) #22
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/2547433002/100001
4 years ago (2016-12-07 00:24:05 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-07 01:40:15 UTC) #28
commit-bot: I haz the power
4 years ago (2016-12-07 01:42:43 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a53dbe07cd6f4abd9ce526cc07c118518654a440
Cr-Commit-Position: refs/heads/master@{#436827}

Powered by Google App Engine
This is Rietveld 408576698