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

Issue 12326091: Made notification center notifications collapsed and expandable. (Closed)

Created:
7 years, 10 months ago by dharcourt
Modified:
7 years, 9 months ago
Reviewers:
miket_OOO, stevenjb
CC:
Jun Mukai, Dmitry Titov, chromium-reviews
Visibility:
Public.

Description

Made notification center notifications collapsible and expandable. Implemented collapse/expand for notifications in the notification center. Notifications are collapsed by default and can be expanded by pressing their expand button. Once expanded, they can't be collapsed again. Limitations of this version are: 1) Notifications in alerts/toasts are not affected (they're always expanded). 2) Notifications get expand buttons even if they have no content to expand. 3) Collapsed text is always collapsed to 1 lines (not 2 or 3 as required) and expanded text is always expanded to its full height (not limited to 7 lines as required). 4) Notification expansion is lost when notifications are added to the notification center or when the notification center is closed and opened again. These issues will be addressed in separate change lists. BUG=161098 TBR=stevenjb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186873

Patch Set 1 : #

Total comments: 20

Patch Set 2 : Implemented review suggestions. #

Patch Set 3 : Rebased, which led to many changes. #

Total comments: 12

Patch Set 4 : Implemented review suggestions. #

Total comments: 6

Patch Set 5 : Implemented review suggestions. #

Patch Set 6 : Fixed manually run message_center unit test. #

Total comments: 1

Patch Set 7 : Implemented review suggestions. #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Patch Set 10 : Rebased. #

Patch Set 11 : Rebase, rebase, and rebase again! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+606 lines, -404 lines) Patch
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_apitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/extensions/extension_crash_recovery_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/message_center/web_notification_tray_win_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M ui/message_center/message_center.h View 1 2 3 4 5 6 7 8 5 chunks +22 lines, -15 lines 0 comments Download
ui/message_center/message_center.cc View 1 2 3 4 5 6 7 8 6 chunks +27 lines, -17 lines 0 comments Download
M ui/message_center/message_center.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/message_center/message_center_tray.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/notification.h View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -8 lines 0 comments Download
M ui/message_center/notification.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
A ui/message_center/notification_change_observer.h View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
M ui/message_center/notification_list.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -24 lines 0 comments Download
M ui/message_center/notification_list.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -1 line 0 comments Download
M ui/message_center/notification_list_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -28 lines 0 comments Download
M ui/message_center/views/message_bubble_base.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M ui/message_center/views/message_bubble_base.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M ui/message_center/views/message_center_bubble.h View 1 2 3 4 5 6 7 2 chunks +23 lines, -6 lines 0 comments Download
M ui/message_center/views/message_center_bubble.cc View 1 2 3 4 5 6 7 8 16 chunks +169 lines, -107 lines 0 comments Download
M ui/message_center/views/message_popup_bubble.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M ui/message_center/views/message_popup_bubble.cc View 1 2 3 4 5 6 7 8 chunks +15 lines, -10 lines 0 comments Download
M ui/message_center/views/message_popup_collection.h View 1 2 3 4 5 6 7 4 chunks +6 lines, -6 lines 0 comments Download
M ui/message_center/views/message_popup_collection.cc View 1 2 3 4 5 6 7 8 8 chunks +16 lines, -10 lines 0 comments Download
M ui/message_center/views/message_simple_view.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M ui/message_center/views/message_simple_view.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -6 lines 0 comments Download
M ui/message_center/views/message_view.h View 1 2 3 4 5 6 7 2 chunks +21 lines, -13 lines 0 comments Download
M ui/message_center/views/message_view.cc View 1 2 3 4 5 6 7 11 chunks +46 lines, -21 lines 0 comments Download
M ui/message_center/views/notification_view.h View 1 2 3 4 5 6 7 1 chunk +20 lines, -11 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 1 2 3 4 5 6 7 8 9 10 chunks +144 lines, -83 lines 0 comments Download
M ui/message_center/views/notifier_settings_view.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ui/message_center/views/notifier_settings_view.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
dharcourt
Jun, PTAL. Mike, any suggestions from you would also be very welcome. Thanks! - Charles ...
7 years, 10 months ago (2013-02-23 04:32:00 UTC) #1
Jun Mukai
lgtm lgtm with nits. https://codereview.chromium.org/12326091/diff/2002/ui/message_center/message_center_bubble.cc File ui/message_center/message_center_bubble.cc (right): https://codereview.chromium.org/12326091/diff/2002/ui/message_center/message_center_bubble.cc#newcode296 ui/message_center/message_center_bubble.cc:296: class MessagesView : public views::View ...
7 years, 10 months ago (2013-02-26 02:23:30 UTC) #2
dharcourt
I implemented the review suggestions except that I tried MessageListView instead of MessageContainerView. Let me ...
7 years, 10 months ago (2013-02-26 03:23:30 UTC) #3
Jun Mukai
lgtm++ Please make sure that this doesn't break UI of non --enable-rich-notifications, before the submit ...
7 years, 10 months ago (2013-02-26 04:06:55 UTC) #4
dharcourt
Jun, PTAL and comment/LGTM as appropriate. The last patch has significant changes from the earlier ...
7 years, 9 months ago (2013-03-01 10:17:31 UTC) #5
Jun Mukai
https://codereview.chromium.org/12326091/diff/26001/ui/message_center/message_bubble_base.h File ui/message_center/message_bubble_base.h (right): https://codereview.chromium.org/12326091/diff/26001/ui/message_center/message_bubble_base.h#newcode11 ui/message_center/message_bubble_base.h:11: #include "ui/message_center/notification_list.h" safe to remove this inclusion? https://codereview.chromium.org/12326091/diff/26001/ui/message_center/message_center_bubble.h File ...
7 years, 9 months ago (2013-03-01 21:44:42 UTC) #6
dharcourt
Hi Jun, I implemented your review suggestions. I think this is much cleaner. Please take ...
7 years, 9 months ago (2013-03-02 02:08:02 UTC) #7
Jun Mukai
lgtm https://codereview.chromium.org/12326091/diff/30030/ui/message_center/notification_change_delegate.h File ui/message_center/notification_change_delegate.h (right): https://codereview.chromium.org/12326091/diff/30030/ui/message_center/notification_change_delegate.h#newcode15 ui/message_center/notification_change_delegate.h:15: class MESSAGE_CENTER_EXPORT NotificationChangeDelegate { Sorry I didn't saying ...
7 years, 9 months ago (2013-03-02 02:23:58 UTC) #8
dharcourt
https://codereview.chromium.org/12326091/diff/30030/ui/message_center/message_center.h File ui/message_center/message_center.h (right): https://codereview.chromium.org/12326091/diff/30030/ui/message_center/message_center.h#newcode158 ui/message_center/message_center.h:158: virtual void AllNotificationsWereRemoved(bool by_user) OVERRIDE; It turned out no ...
7 years, 9 months ago (2013-03-04 21:17:52 UTC) #9
dharcourt
Hi Mike, I forgot that Jun is travelling to tokyo and offline for a couple ...
7 years, 9 months ago (2013-03-05 03:24:37 UTC) #10
miket_OOO
LGTM on deltas post-4. https://codereview.chromium.org/12326091/diff/33001/ui/message_center/notification_change_observer.h File ui/message_center/notification_change_observer.h (right): https://codereview.chromium.org/12326091/diff/33001/ui/message_center/notification_change_observer.h#newcode15 ui/message_center/notification_change_observer.h:15: class MESSAGE_CENTER_EXPORT NotificationChangeObserver { If ...
7 years, 9 months ago (2013-03-05 18:41:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12326091/52001
7 years, 9 months ago (2013-03-05 21:03:45 UTC) #12
commit-bot: I haz the power
Failed to apply patch for ui/message_center/views/message_popup_collection.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-05 21:03:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12326091/56001
7 years, 9 months ago (2013-03-05 21:40:06 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-05 22:12:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12326091/61005
7 years, 9 months ago (2013-03-05 23:10:50 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-05 23:49:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12326091/85001
7 years, 9 months ago (2013-03-06 16:41:09 UTC) #18
commit-bot: I haz the power
Presubmit check for 12326091-85001 failed and returned exit status 1. INFO:root:Found 31 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-06 16:41:22 UTC) #19
dharcourt
Hi Steven, Could you do an OWNERS review of ash/system/web_notification/web_notification_tray_unittest.cc? The changes introduced yesterday with ...
7 years, 9 months ago (2013-03-06 16:52:00 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12326091/85001
7 years, 9 months ago (2013-03-07 18:02:51 UTC) #21
commit-bot: I haz the power
Failed to apply patch for ui/message_center/notification.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-07 18:03:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12326091/99001
7 years, 9 months ago (2013-03-07 18:10:49 UTC) #23
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=54321
7 years, 9 months ago (2013-03-07 18:42:05 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12326091/94003
7 years, 9 months ago (2013-03-07 19:10:29 UTC) #25
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-07 20:16:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12326091/123001
7 years, 9 months ago (2013-03-07 22:35:25 UTC) #27
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_net_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=119838
7 years, 9 months ago (2013-03-08 01:32:42 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12326091/123001
7 years, 9 months ago (2013-03-08 01:59:19 UTC) #29
commit-bot: I haz the power
7 years, 9 months ago (2013-03-08 03:55:41 UTC) #30
Message was sent while issue was closed.
Change committed as 186873

Powered by Google App Engine
This is Rietveld 408576698