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

Issue 1913433004: Supporting shrinking/enlarging for notifications (Closed)

Created:
4 years, 8 months ago by dyaroshev
Modified:
4 years, 7 months ago
Reviewers:
stevenjb, Jun Mukai, dewittj
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Supporting shrinking/enlarging for notifications Extensions have api to update text of a displayed notification. Due to such update, notification recalculates it's size. However, there was a bug in toast_contents_view, that updating preferred_size_ didn't trigger update of corresponding widget. Not updating widget lead to a visual glitch. BUG=605656 R=dewittj@chromium.com Committed: https://crrev.com/2f78eb16262f1442e4c2b0cc9a03689e5cc47353 Cr-Commit-Position: refs/heads/master@{#392906}

Patch Set 1 #

Total comments: 14

Patch Set 2 : review, test for many notifications #

Total comments: 3

Patch Set 3 : Attempt to create a good test, small review fixes #

Patch Set 4 : test fix #

Patch Set 5 : review, enlarging notifications with animation #

Patch Set 6 : rebase on master #

Patch Set 7 : rebase on master 2 #

Patch Set 8 : compilation: stl variations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -35 lines) Patch
M ui/message_center/views/message_popup_collection_unittest.cc View 1 2 3 4 5 6 7 9 chunks +227 lines, -21 lines 0 comments Download
M ui/message_center/views/toast_contents_view.h View 1 2 3 4 chunks +10 lines, -1 line 0 comments Download
M ui/message_center/views/toast_contents_view.cc View 1 2 3 4 5 4 chunks +35 lines, -13 lines 0 comments Download

Messages

Total messages: 48 (17 generated)
dyaroshev
4 years, 8 months ago (2016-04-22 14:01:40 UTC) #1
dyaroshev
On 2016/04/22 14:01:40, dyaroshev wrote: PTAL stevenjb, Jun Mukai, dewittj
4 years, 7 months ago (2016-05-04 09:14:33 UTC) #4
dewittj
any chance you can add a test with multiple notifications to ensure that the popup ...
4 years, 7 months ago (2016-05-04 16:49:15 UTC) #5
Jun Mukai
https://codereview.chromium.org/1913433004/diff/1/ui/message_center/views/message_popup_collection_unittest.cc File ui/message_center/views/message_popup_collection_unittest.cc (right): https://codereview.chromium.org/1913433004/diff/1/ui/message_center/views/message_popup_collection_unittest.cc#newcode10 ui/message_center/views/message_popup_collection_unittest.cc:10: #include <memory> Is this necessary? https://codereview.chromium.org/1913433004/diff/1/ui/message_center/views/message_popup_collection_unittest.cc#newcode547 ui/message_center/views/message_popup_collection_unittest.cc:547: std::string id ...
4 years, 7 months ago (2016-05-04 17:00:09 UTC) #6
stevenjb
https://codereview.chromium.org/1913433004/diff/1/ui/message_center/views/message_popup_collection_unittest.cc File ui/message_center/views/message_popup_collection_unittest.cc (right): https://codereview.chromium.org/1913433004/diff/1/ui/message_center/views/message_popup_collection_unittest.cc#newcode558 ui/message_center/views/message_popup_collection_unittest.cc:558: }; Should we also test a smaller notification after ...
4 years, 7 months ago (2016-05-04 23:39:02 UTC) #7
dyaroshev
https://codereview.chromium.org/1913433004/diff/1/ui/message_center/views/message_popup_collection_unittest.cc File ui/message_center/views/message_popup_collection_unittest.cc (right): https://codereview.chromium.org/1913433004/diff/1/ui/message_center/views/message_popup_collection_unittest.cc#newcode10 ui/message_center/views/message_popup_collection_unittest.cc:10: #include <memory> On 2016/05/04 17:00:09, Jun Mukai wrote: > ...
4 years, 7 months ago (2016-05-05 14:13:19 UTC) #8
dyaroshev
On 2016/05/04 16:49:15, dewittj wrote: > any chance you can add a test with multiple ...
4 years, 7 months ago (2016-05-05 14:13:58 UTC) #9
stevenjb
owner lgtm (but please wait for lg from mukai@)
4 years, 7 months ago (2016-05-05 16:03:13 UTC) #10
Jun Mukai
https://codereview.chromium.org/1913433004/diff/1/ui/message_center/views/toast_contents_view.cc File ui/message_center/views/toast_contents_view.cc (right): https://codereview.chromium.org/1913433004/diff/1/ui/message_center/views/toast_contents_view.cc#newcode148 ui/message_center/views/toast_contents_view.cc:148: if (new_bounds == GetWidget()->GetWindowBoundsInScreen()) On 2016/05/05 14:13:19, dyaroshev wrote: ...
4 years, 7 months ago (2016-05-05 18:01:51 UTC) #11
Jun Mukai
On 2016/05/05 14:13:58, dyaroshev wrote: > On 2016/05/04 16:49:15, dewittj wrote: > > any chance ...
4 years, 7 months ago (2016-05-05 18:05:23 UTC) #12
dyaroshev
On 2016/05/05 18:05:23, Jun Mukai wrote: > On 2016/05/05 14:13:58, dyaroshev wrote: > > On ...
4 years, 7 months ago (2016-05-06 16:51:02 UTC) #13
dyaroshev
On 2016/05/06 16:51:02, dyaroshev wrote: > On 2016/05/05 18:05:23, Jun Mukai wrote: > > On ...
4 years, 7 months ago (2016-05-06 17:32:36 UTC) #14
dyaroshev
On 2016/05/05 18:05:23, Jun Mukai wrote: > On 2016/05/05 14:13:58, dyaroshev wrote: > > On ...
4 years, 7 months ago (2016-05-09 14:42:28 UTC) #15
Jun Mukai
On 2016/05/09 14:42:28, dyaroshev wrote: > On 2016/05/05 18:05:23, Jun Mukai wrote: > > On ...
4 years, 7 months ago (2016-05-09 17:14:47 UTC) #16
Jun Mukai
On 2016/05/09 17:14:47, Jun Mukai wrote: > On 2016/05/09 14:42:28, dyaroshev wrote: > > On ...
4 years, 7 months ago (2016-05-09 17:22:45 UTC) #17
dyaroshev
On 2016/05/09 17:22:45, Jun Mukai wrote: > On 2016/05/09 17:14:47, Jun Mukai wrote: > > ...
4 years, 7 months ago (2016-05-09 18:00:08 UTC) #18
Jun Mukai
On 2016/05/09 18:00:08, dyaroshev wrote: > On 2016/05/09 17:22:45, Jun Mukai wrote: > > On ...
4 years, 7 months ago (2016-05-09 18:22:30 UTC) #19
dyaroshev
On 2016/05/09 18:22:30, Jun Mukai wrote: > On 2016/05/09 18:00:08, dyaroshev wrote: > > On ...
4 years, 7 months ago (2016-05-10 18:59:27 UTC) #20
Jun Mukai
LGTM
4 years, 7 months ago (2016-05-10 19:30:46 UTC) #21
dewittj
looks great, thanks, lgtm
4 years, 7 months ago (2016-05-10 19:33:01 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1913433004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1913433004/80001
4 years, 7 months ago (2016-05-10 19:36:43 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/3235) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-10 19:40:21 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1913433004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1913433004/80001
4 years, 7 months ago (2016-05-10 20:07:00 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/3258) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-10 20:10:00 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1913433004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1913433004/100001
4 years, 7 months ago (2016-05-11 07:59:55 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/198702) linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 7 months ago (2016-05-11 08:14:50 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1913433004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1913433004/120001
4 years, 7 months ago (2016-05-11 10:07:58 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/146191)
4 years, 7 months ago (2016-05-11 10:33:08 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1913433004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1913433004/140001
4 years, 7 months ago (2016-05-11 11:26:13 UTC) #44
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-11 13:03:36 UTC) #46
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 13:05:31 UTC) #48
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2f78eb16262f1442e4c2b0cc9a03689e5cc47353
Cr-Commit-Position: refs/heads/master@{#392906}

Powered by Google App Engine
This is Rietveld 408576698