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

Issue 11410008: Created initial multi-item notification view (Closed)

Created:
8 years, 1 month ago by dharcourt
Modified:
8 years, 1 month ago
Reviewers:
miket_OOO
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, benwells
Visibility:
Public.

Description

Created initial multi-item notification view This view (type="multiple") currently displays a predefined list of notification itmes, with ugly fonts and spacing. It has no notion of a collapsed/expanded state. BUG=161101 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168263

Patch Set 1 #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -0 lines) Patch
M chrome/browser/extensions/api/notification/notification_apitest.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M ui/message_center/message_center.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/message_view_factory.cc View 2 chunks +3 lines, -0 lines 0 comments Download
A ui/message_center/message_view_multiple.h View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A ui/message_center/message_view_multiple.cc View 1 2 3 1 chunk +141 lines, -0 lines 0 comments Download
M ui/message_center/notification_list.h View 1 2 2 chunks +9 lines, -0 lines 1 comment Download
M ui/notifications/notification_types.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/notifications/notification_types.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dharcourt
Not sure if this is enough to commit, but this is where I'm headed with ...
8 years, 1 month ago (2012-11-15 18:14:34 UTC) #1
miket_OOO
Pretty close, but we need a test. Right now the notification_apitest tests are pretty pointless, ...
8 years, 1 month ago (2012-11-15 18:35:32 UTC) #2
benwells
(i just took a quick look to understand the message center a bit better) https://codereview.chromium.org/11410008/diff/2001/ui/message_center/message_view_multiple.cc ...
8 years, 1 month ago (2012-11-15 22:27:08 UTC) #3
dharcourt
Implemented review suggestions (adding a browser test, moving NotificationItem to notification_list.h, and various formatting/typo fixes). ...
8 years, 1 month ago (2012-11-16 02:37:00 UTC) #4
miket_OOO
LGTM https://codereview.chromium.org/11410008/diff/8001/chrome/browser/extensions/api/notification/notification_apitest.cc File chrome/browser/extensions/api/notification/notification_apitest.cc (right): https://codereview.chromium.org/11410008/diff/8001/chrome/browser/extensions/api/notification/notification_apitest.cc#newcode108 chrome/browser/extensions/api/notification/notification_apitest.cc:108: // TODO(dharcourt): [...], items = [{title: foo, message: ...
8 years, 1 month ago (2012-11-16 17:27:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/11410008/10002
8 years, 1 month ago (2012-11-16 17:42:12 UTC) #6
dharcourt
Applied suggested changes and checkes commit! - C= https://codereview.chromium.org/11410008/diff/8001/chrome/browser/extensions/api/notification/notification_apitest.cc File chrome/browser/extensions/api/notification/notification_apitest.cc (right): https://codereview.chromium.org/11410008/diff/8001/chrome/browser/extensions/api/notification/notification_apitest.cc#newcode108 chrome/browser/extensions/api/notification/notification_apitest.cc:108: // ...
8 years, 1 month ago (2012-11-16 17:42:42 UTC) #7
commit-bot: I haz the power
Change committed as 168263
8 years, 1 month ago (2012-11-16 19:40:04 UTC) #8
miket_OOO
8 years, 1 month ago (2012-11-20 23:54:52 UTC) #9
https://chromiumcodereview.appspot.com/11410008/diff/10002/ui/message_center/...
File ui/message_center/notification_list.h (right):

https://chromiumcodereview.appspot.com/11410008/diff/10002/ui/message_center/...
ui/message_center/notification_list.h:57: std::vector<NotificationItem>* items;
Sorry, I must have missed this earlier. I'm not seeing where this pointer gets
freed. Moreover, because the container is a struct, we would look askance at a
destructor that was freeing one of its members.

Change this to a vector<...> rather than a pointer to one, fix the application
code, and you should be in better shape.

Powered by Google App Engine
This is Rietveld 408576698