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

Issue 2209443006: Show small notification icons in notification tray (Closed)

Created:
4 years, 4 months ago by yoshiki
Modified:
4 years, 4 months ago
Reviewers:
xiyuan, oshima, huangs
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show small notification icons in notification tray This patch shows small notification icons (up to 3) of the current notifications in the notification tray. This also makes the counter show the count of all the notification excluding the visible small icons (previously it was the unread count). See the issue for screenshots. BUG=633399 TEST=manual test (with and without MD mode) Committed: https://crrev.com/42754bb876e40c0c87ed63607452026190e13f78 Cr-Commit-Position: refs/heads/master@{#411019}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed comments #

Total comments: 16

Patch Set 3 : Addressed comments #

Patch Set 4 : Include insets into border (and rename insets to margin) #

Total comments: 6

Patch Set 5 : Rebased and addressed comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -69 lines) Patch
M ash/common/system/tray/tray_background_view.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M ash/common/system/web_notification/web_notification_tray.h View 1 2 3 4 5 chunks +14 lines, -3 lines 0 comments Download
M ash/common/system/web_notification/web_notification_tray.cc View 1 2 3 4 10 chunks +228 lines, -64 lines 3 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 87 (70 generated)
yoshiki
Xiyuan, Oshima, PTAL. Thanks.
4 years, 4 months ago (2016-08-04 12:39:44 UTC) #5
oshima
https://codereview.chromium.org/2209443006/diff/40001/ash/common/system/web_notification/web_notification_tray.cc File ash/common/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2209443006/diff/40001/ash/common/system/web_notification/web_notification_tray.cc#newcode72 ash/common/system/web_notification/web_notification_tray.cc:72: constexpr gfx::Size kTrayItemInnerBellIconSize = gfx::Size(18, 18); I think you ...
4 years, 4 months ago (2016-08-04 18:15:21 UTC) #18
yoshiki
Oshima, Xiyuan, PTAL. https://codereview.chromium.org/2209443006/diff/40001/ash/common/system/web_notification/web_notification_tray.cc File ash/common/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2209443006/diff/40001/ash/common/system/web_notification/web_notification_tray.cc#newcode72 ash/common/system/web_notification/web_notification_tray.cc:72: constexpr gfx::Size kTrayItemInnerBellIconSize = gfx::Size(18, 18); ...
4 years, 4 months ago (2016-08-05 13:30:48 UTC) #44
oshima
https://codereview.chromium.org/2209443006/diff/160001/ash/common/system/web_notification/web_notification_tray.cc File ash/common/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2209443006/diff/160001/ash/common/system/web_notification/web_notification_tray.cc#newcode183 ash/common/system/web_notification/web_notification_tray.cc:183: // Note that other tray items do the same ...
4 years, 4 months ago (2016-08-05 15:08:08 UTC) #47
yoshiki
Oshima-san, PTAL. https://codereview.chromium.org/2209443006/diff/160001/ash/common/system/web_notification/web_notification_tray.cc File ash/common/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2209443006/diff/160001/ash/common/system/web_notification/web_notification_tray.cc#newcode183 ash/common/system/web_notification/web_notification_tray.cc:183: // Note that other tray items do ...
4 years, 4 months ago (2016-08-05 16:15:38 UTC) #54
xiyuan
https://codereview.chromium.org/2209443006/diff/160001/ash/common/system/tray/tray_background_view.cc File ash/common/system/tray/tray_background_view.cc (right): https://codereview.chromium.org/2209443006/diff/160001/ash/common/system/tray/tray_background_view.cc#newcode190 ash/common/system/tray/tray_background_view.cc:190: return views::View::GetInsets() + insets_; Can we use |insets_| and ...
4 years, 4 months ago (2016-08-05 16:18:59 UTC) #55
yoshiki
Xiyuan, Oshima, PTAL https://codereview.chromium.org/2209443006/diff/160001/ash/common/system/tray/tray_background_view.cc File ash/common/system/tray/tray_background_view.cc (right): https://codereview.chromium.org/2209443006/diff/160001/ash/common/system/tray/tray_background_view.cc#newcode190 ash/common/system/tray/tray_background_view.cc:190: return views::View::GetInsets() + insets_; On 2016/08/05 ...
4 years, 4 months ago (2016-08-09 16:43:05 UTC) #68
xiyuan
lgtm https://codereview.chromium.org/2209443006/diff/240001/ash/common/system/web_notification/web_notification_tray.cc File ash/common/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2209443006/diff/240001/ash/common/system/web_notification/web_notification_tray.cc#newcode283 ash/common/system/web_notification/web_notification_tray.cc:283: } We should add a string template to ...
4 years, 4 months ago (2016-08-09 16:50:05 UTC) #69
oshima
lgtm with nits https://codereview.chromium.org/2209443006/diff/240001/ash/common/system/web_notification/web_notification_tray.cc File ash/common/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2209443006/diff/240001/ash/common/system/web_notification/web_notification_tray.cc#newcode81 ash/common/system/web_notification/web_notification_tray.cc:81: static bool disable_animations_for_test = false; nit: ...
4 years, 4 months ago (2016-08-10 06:58:44 UTC) #70
yoshiki
https://codereview.chromium.org/2209443006/diff/240001/ash/common/system/web_notification/web_notification_tray.cc File ash/common/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2209443006/diff/240001/ash/common/system/web_notification/web_notification_tray.cc#newcode81 ash/common/system/web_notification/web_notification_tray.cc:81: static bool disable_animations_for_test = false; On 2016/08/10 06:58:44, oshima ...
4 years, 4 months ago (2016-08-10 10:18:53 UTC) #75
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/2209443006/260001
4 years, 4 months ago (2016-08-10 10:19:29 UTC) #78
commit-bot: I haz the power
Committed patchset #5 (id:260001)
4 years, 4 months ago (2016-08-10 10:24:23 UTC) #80
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/42754bb876e40c0c87ed63607452026190e13f78 Cr-Commit-Position: refs/heads/master@{#411019}
4 years, 4 months ago (2016-08-10 10:26:26 UTC) #82
huangs
I'm suspecting this CL of causing ASAN failure due to memory leak: https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/builds/15200/steps/interactive_ui_tests%20on%20Ubuntu-12.04/logs/stdio Going to ...
4 years, 4 months ago (2016-08-10 13:44:33 UTC) #83
huangs
https://codereview.chromium.org/2209443006/diff/260001/ash/common/system/web_notification/web_notification_tray.cc File ash/common/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/2209443006/diff/260001/ash/common/system/web_notification/web_notification_tray.cc#newcode249 ash/common/system/web_notification/web_notification_tray.cc:249: view_ = new views::ImageView(); Possible memory leak? https://codereview.chromium.org/2209443006/diff/260001/ash/common/system/web_notification/web_notification_tray.cc#newcode266 ash/common/system/web_notification/web_notification_tray.cc:266: ...
4 years, 4 months ago (2016-08-10 13:45:25 UTC) #85
huangs
A revert of this CL (patchset #5 id:260001) has been created in https://codereview.chromium.org/2231003002/ by huangs@chromium.org. ...
4 years, 4 months ago (2016-08-10 13:46:24 UTC) #86
xiyuan
4 years, 4 months ago (2016-08-10 15:21:25 UTC) #87
Message was sent while issue was closed.
https://codereview.chromium.org/2209443006/diff/260001/ash/common/system/web_...
File ash/common/system/web_notification/web_notification_tray.cc (right):

https://codereview.chromium.org/2209443006/diff/260001/ash/common/system/web_...
ash/common/system/web_notification/web_notification_tray.cc:266: view_ = new
views::Label();
On 2016/08/10 13:45:25, huangs wrote:
> Possible memory leak?

This one is the reported leak, happens when SetNotificationCount is not called
to add it to the view hierarchy.

Powered by Google App Engine
This is Rietveld 408576698