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

Issue 21308002: Update Mac notification tray behavior. (Closed)

Created:
7 years, 4 months ago by dewittj
Modified:
7 years, 4 months ago
Reviewers:
Nico
CC:
chromium-reviews, oshima+watch_chromium.org
Visibility:
Public.

Description

Update Mac notification tray behavior. Now there are 8 icon resources instead of 2. We will display different icons based on 3 binary attributes: * unread notifications * do not disturb mode * pressed status (message center open/closed) The icon is now a bell (instead of a chat bubble), and we will no longer display unread count with the notification tray icon. Additionally, this patch causes the icon not to be updated while the message center is open, and causes the icon not to be removed after the first notification comes in (to make settings more accessible.) BUG=264798, 264971 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214932

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Now with fewer resources! #

Patch Set 3 : Address comments from #1 #

Total comments: 4

Patch Set 4 : Add removal of old resources. #

Patch Set 5 : Rebase. #

Patch Set 6 : Update tests. #

Patch Set 7 : Fix mac tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -80 lines) Patch
M chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm View 1 2 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/message_center_tray_bridge_unittest.mm View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ui/message_center/cocoa/status_item_view.h View 1 2 3 4 5 6 2 chunks +12 lines, -1 line 0 comments Download
M ui/message_center/cocoa/status_item_view.mm View 1 2 3 4 5 6 6 chunks +25 lines, -41 lines 0 comments Download
M ui/message_center/cocoa/status_item_view_unittest.mm View 1 2 3 4 5 1 chunk +8 lines, -17 lines 0 comments Download
M ui/message_center/notification.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/message_center/notification_list.cc View 1 2 3 4 5 2 chunks +5 lines, -6 lines 0 comments Download
M ui/message_center/notification_list_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
D ui/resources/default_100_percent/mac/tray_icon_pressed.png View 2 3 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/tray_icon_regular.png View 2 3 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/tray_icon_pressed.png View 2 3 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/tray_icon_regular.png View 2 3 Binary file 0 comments Download
M ui/resources/ui_resources.grd View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dewittj
7 years, 4 months ago (2013-07-31 00:04:01 UTC) #1
Nico
You probably want to land the new binary files in a separate CL, else the ...
7 years, 4 months ago (2013-07-31 00:05:25 UTC) #2
dewittj
Neither will the trybots run. Thanks, I'll update this one to only include code.
7 years, 4 months ago (2013-07-31 00:08:04 UTC) #3
Nico
This also removes the unread count from the icon, right? Should probably be mentioned in ...
7 years, 4 months ago (2013-07-31 00:09:41 UTC) #4
dewittj
https://codereview.chromium.org/21308002/diff/18001/chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm File chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm (right): https://codereview.chromium.org/21308002/diff/18001/chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm#newcode89 chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm:89: // Only show the status item if there are ...
7 years, 4 months ago (2013-07-31 00:37:09 UTC) #5
Nico
"This also removes the unread count from the icon, right? Should probably be mentioned in ...
7 years, 4 months ago (2013-07-31 02:40:56 UTC) #6
dewittj
The message had in fact been updated, it's just buried in the middle that we're ...
7 years, 4 months ago (2013-07-31 21:58:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/21308002/54001
7 years, 4 months ago (2013-07-31 22:10:36 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-07-31 23:15:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/21308002/81001
7 years, 4 months ago (2013-08-01 00:51:18 UTC) #10
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 02:50:50 UTC) #11
Message was sent while issue was closed.
Change committed as 214932

Powered by Google App Engine
This is Rietveld 408576698