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

Issue 2805143002: Don't shrink the message center height while open (Closed)

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

Description

Don't shrink the message center height while open Previously, the height of the message center shrank if necessary. But this patch changed this behavior and made it not shrank while the message center opens. This patch also changes animation. Previously, the notifications above the target were animated. With this patch, the notifications below the target are animated. This is because now we don't update the height of message center so animating below is natural. The reason why we don't use AnimateNotificationsBelowTarget() is that it has a bug on removing notification. BUG=709337 BUG=b/36517819 TEST=manual TEST=unittests pass Review-Url: https://codereview.chromium.org/2805143002 Cr-Commit-Position: refs/heads/master@{#465184} Committed: https://chromium.googlesource.com/chromium/src/+/8057405c22f4ca9727ab53b845ee87ed1d865a73

Patch Set 1 #

Patch Set 2 : . #

Total comments: 10

Patch Set 3 : Addressed comments #

Total comments: 8

Patch Set 4 : Addressed comments #

Patch Set 5 : Remove debug code #

Patch Set 6 : Fixed issue with expanded notification above #

Patch Set 7 : Addressed offline comment #

Total comments: 14

Patch Set 8 : Addressed comments #

Total comments: 2

Patch Set 9 : Remove unnecessary include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -110 lines) Patch
M ui/message_center/views/message_center_view.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M ui/message_center/views/message_center_view_unittest.cc View 7 chunks +13 lines, -13 lines 0 comments Download
M ui/message_center/views/message_list_view.h View 1 2 3 4 5 6 5 chunks +12 lines, -3 lines 0 comments Download
M ui/message_center/views/message_list_view.cc View 1 2 3 4 5 6 7 8 10 chunks +62 lines, -24 lines 0 comments Download
M ui/message_center/views/message_list_view_unittest.cc View 1 chunk +70 lines, -70 lines 0 comments Download

Messages

Total messages: 82 (63 generated)
yoshiki
Eliot, PTAL. Thanks.
3 years, 8 months ago (2017-04-07 05:15:10 UTC) #11
Eliot Courtney
https://codereview.chromium.org/2805143002/diff/20001/ui/message_center/views/message_center_view.cc File ui/message_center/views/message_center_view.cc (right): https://codereview.chromium.org/2805143002/diff/20001/ui/message_center/views/message_center_view.cc#newcode401 ui/message_center/views/message_center_view.cc:401: // Skip if the view is a custom view. ...
3 years, 8 months ago (2017-04-11 00:58:26 UTC) #12
yoshiki
Eliot, PTAL. Thanks. https://codereview.chromium.org/2805143002/diff/20001/ui/message_center/views/message_center_view.cc File ui/message_center/views/message_center_view.cc (right): https://codereview.chromium.org/2805143002/diff/20001/ui/message_center/views/message_center_view.cc#newcode401 ui/message_center/views/message_center_view.cc:401: // Skip if the view is ...
3 years, 8 months ago (2017-04-11 07:46:26 UTC) #19
Eliot Courtney
I patched this in but it seems like if a notification above the hovered notification ...
3 years, 8 months ago (2017-04-12 06:16:19 UTC) #22
yoshiki
Currently we don't change the scroll position so if the height is changed by expansion, ...
3 years, 8 months ago (2017-04-14 04:37:06 UTC) #23
yoshiki
Eliot, I fixed the issue we talked offline. PTAL again?
3 years, 8 months ago (2017-04-14 06:44:51 UTC) #35
yoshiki
Eliot, I fixed again. PTAL. Thanks.
3 years, 8 months ago (2017-04-14 12:11:00 UTC) #50
Eliot Courtney
Thanks~! Here are some mostly nits. https://codereview.chromium.org/2805143002/diff/200001/ui/message_center/views/message_list_view.cc File ui/message_center/views/message_list_view.cc (right): https://codereview.chromium.org/2805143002/diff/200001/ui/message_center/views/message_list_view.cc#newcode181 ui/message_center/views/message_list_view.cc:181: int min_height; nit: ...
3 years, 8 months ago (2017-04-17 03:39:02 UTC) #51
yoshiki
Eliot, PTAL. Thanks. https://codereview.chromium.org/2805143002/diff/200001/ui/message_center/views/message_list_view.cc File ui/message_center/views/message_list_view.cc (right): https://codereview.chromium.org/2805143002/diff/200001/ui/message_center/views/message_list_view.cc#newcode181 ui/message_center/views/message_list_view.cc:181: int min_height; On 2017/04/17 03:39:01, Eliot ...
3 years, 8 months ago (2017-04-17 08:41:52 UTC) #58
yoshiki
Eliot, I removed the latest patch set as we discussed offline. PTAL? Thanks.
3 years, 8 months ago (2017-04-17 14:18:41 UTC) #62
Eliot Courtney
lgtm
3 years, 8 months ago (2017-04-18 02:30:51 UTC) #63
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/2805143002/220001
3 years, 8 months ago (2017-04-18 03:54:47 UTC) #65
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-18 03:54:50 UTC) #67
yoshiki
Hanada-san, could you take a look as a committer? Thanks.
3 years, 8 months ago (2017-04-18 04:35:15 UTC) #69
yoshiki
Hanada-san, could you take a look as a committer? Thanks.
3 years, 8 months ago (2017-04-18 04:35:17 UTC) #70
yhanada
lgtm https://codereview.chromium.org/2805143002/diff/220001/ui/message_center/views/message_center_view.cc File ui/message_center/views/message_center_view.cc (right): https://codereview.chromium.org/2805143002/diff/220001/ui/message_center/views/message_center_view.cc#newcode25 ui/message_center/views/message_center_view.cc:25: #include "ui/message_center/views/custom_notification_view.h" nit: remove?
3 years, 8 months ago (2017-04-18 05:12:31 UTC) #71
yoshiki
Thanks! https://codereview.chromium.org/2805143002/diff/220001/ui/message_center/views/message_center_view.cc File ui/message_center/views/message_center_view.cc (right): https://codereview.chromium.org/2805143002/diff/220001/ui/message_center/views/message_center_view.cc#newcode25 ui/message_center/views/message_center_view.cc:25: #include "ui/message_center/views/custom_notification_view.h" On 2017/04/18 05:12:30, yhanada wrote: > ...
3 years, 8 months ago (2017-04-18 06:33:38 UTC) #74
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/2805143002/260001
3 years, 8 months ago (2017-04-18 09:17:08 UTC) #79
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 09:20:43 UTC) #82
Message was sent while issue was closed.
Committed patchset #9 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/8057405c22f4ca9727ab53b845ee...

Powered by Google App Engine
This is Rietveld 408576698