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

Issue 1979583003: Support notifications with custom content (Closed)

Created:
4 years, 7 months ago by xiyuan
Modified:
4 years, 7 months ago
Reviewers:
yoshiki, achuithb, dewittj
CC:
chromium-reviews, Peter Beverloo, chromium-apps-reviews_chromium.org, mlamouri+watch-notifications_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@messageview-close-button
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support notifications with custom content - Add a NOTIFICATION_TYPE_CUSTOM; - Add a NotificationDelegate::CreateCustomContent; - Add a CustomNotificationView for NOTIFICATION_TYPE_CUSTOM that hosts the View created in NotificationDelegate::CreateCustomContent as its contents; BUG=610767 TEST=CustomNotificationViewTest.* Committed: https://crrev.com/b36c784041e2dd9cd8d953b41dcd997d5be51dae Cr-Commit-Position: refs/heads/master@{#394897}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix nits #

Patch Set 3 : rebase, add MessageViewFactory, update NotificationConversionHelper::MapTypeToString #

Patch Set 4 : make NotificationDelegate::CreateCustomContent chromeos only to fix mac build #

Patch Set 5 : fix mac build, attempt 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+509 lines, -75 lines) Patch
M chrome/browser/extensions/api/autotest_private/autotest_private_api.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_conversion_helper.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/BUILD.gn View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M ui/message_center/message_center.gyp View 1 2 3 4 5 chunks +7 lines, -0 lines 0 comments Download
M ui/message_center/notification_delegate.h View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
A ui/message_center/notification_delegate_views.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M ui/message_center/notification_types.h View 1 chunk +1 line, -0 lines 0 comments Download
A ui/message_center/views/custom_notification_view.h View 1 chunk +40 lines, -0 lines 0 comments Download
A ui/message_center/views/custom_notification_view.cc View 1 1 chunk +70 lines, -0 lines 0 comments Download
A ui/message_center/views/custom_notification_view_unittest.cc View 1 2 1 chunk +242 lines, -0 lines 0 comments Download
M ui/message_center/views/message_center_view.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ui/message_center/views/message_popup_collection.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M ui/message_center/views/message_view.h View 1 chunk +5 lines, -4 lines 0 comments Download
A ui/message_center/views/message_view_factory.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A ui/message_center/views/message_view_factory.cc View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
M ui/message_center/views/notification_view.h View 1 2 2 chunks +5 lines, -18 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 1 2 2 chunks +0 lines, -47 lines 0 comments Download
M ui/message_center/views/notification_view_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 23 (9 generated)
xiyuan
The 3rd one. Note the UI about close button (and maybe a title) is not ...
4 years, 7 months ago (2016-05-13 19:46:57 UTC) #2
xiyuan
+yoshiki fyi
4 years, 7 months ago (2016-05-13 22:34:16 UTC) #4
yoshiki
LGTM with nits. Please add NOTIFICATION_TYPE_CUSTOM to NotificationConversionHelper::MapTypeToString() in C/B/notifications/notification_conversion_helper.cc as well. https://codereview.chromium.org/1979583003/diff/1/ui/message_center/views/custom_notification_view.cc File ui/message_center/views/custom_notification_view.cc ...
4 years, 7 months ago (2016-05-16 03:31:09 UTC) #5
xiyuan
https://codereview.chromium.org/1979583003/diff/1/ui/message_center/views/custom_notification_view.cc File ui/message_center/views/custom_notification_view.cc (right): https://codereview.chromium.org/1979583003/diff/1/ui/message_center/views/custom_notification_view.cc#newcode45 ui/message_center/views/custom_notification_view.cc:45: if (contents_view_->background()) { On 2016/05/16 03:31:09, yoshiki wrote: > ...
4 years, 7 months ago (2016-05-16 16:15:37 UTC) #6
dewittj
lgtm with q https://codereview.chromium.org/1979583003/diff/1/ui/message_center/views/notification_view.cc File ui/message_center/views/notification_view.cc (right): https://codereview.chromium.org/1979583003/diff/1/ui/message_center/views/notification_view.cc#newcode151 ui/message_center/views/notification_view.cc:151: MessageView* NotificationView::Create(MessageCenterController* controller, Seems weird that ...
4 years, 7 months ago (2016-05-16 16:19:28 UTC) #7
xiyuan
https://codereview.chromium.org/1979583003/diff/1/ui/message_center/views/notification_view.cc File ui/message_center/views/notification_view.cc (right): https://codereview.chromium.org/1979583003/diff/1/ui/message_center/views/notification_view.cc#newcode151 ui/message_center/views/notification_view.cc:151: MessageView* NotificationView::Create(MessageCenterController* controller, On 2016/05/16 16:19:28, dewittj wrote: > ...
4 years, 7 months ago (2016-05-16 16:31:06 UTC) #8
dewittj
On 2016/05/16 16:31:06, xiyuan wrote: > https://codereview.chromium.org/1979583003/diff/1/ui/message_center/views/notification_view.cc > File ui/message_center/views/notification_view.cc (right): > > https://codereview.chromium.org/1979583003/diff/1/ui/message_center/views/notification_view.cc#newcode151 > ...
4 years, 7 months ago (2016-05-16 16:33:14 UTC) #9
xiyuan
achuith@, could I get an owner stamp for autotest_private_api.cc? Thanks.
4 years, 7 months ago (2016-05-16 19:59:31 UTC) #11
achuithb
On 2016/05/16 19:59:31, xiyuan wrote: > achuith@, could I get an owner stamp for autotest_private_api.cc? ...
4 years, 7 months ago (2016-05-16 20:32:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1979583003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1979583003/60001
4 years, 7 months ago (2016-05-19 17:22:07 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/114290)
4 years, 7 months ago (2016-05-19 17:28:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1979583003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1979583003/80001
4 years, 7 months ago (2016-05-19 22:25:07 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-19 23:09:33 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 23:10:39 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b36c784041e2dd9cd8d953b41dcd997d5be51dae
Cr-Commit-Position: refs/heads/master@{#394897}

Powered by Google App Engine
This is Rietveld 408576698