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

Issue 2870283002: Move message_center::CustomNotificationView to arc::ArcNotificationView (Closed)

Created:
3 years, 7 months ago by yoshiki
Modified:
3 years, 7 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, Peter Beverloo, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, victorhsieh+watch_chromium.org, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move message_center::CustomNotificationView to arc::ArcNotificationView We're having message_center::CustomNotificationView in ui/message_center separated from ui/arc, but it causes a lot of complexity of delegate. In other words, we have two abstraction layer: MessageView and CustomNotificationContentViewDelegate. But CustomNotificationView and CustomNotificationContentViewDelegate are only used by ARC so the later abstraction layer can be removed.. Currently CustomNotificationView is only used by ARC. So this CL moves it to ui/arc and renames it to ArcNotificationView to make the code simper in succeeding CLs. This CL is just a refactoring so doesn't change any behavior. BUG=697359 TEST=none Review-Url: https://codereview.chromium.org/2870283002 Cr-Commit-Position: refs/heads/master@{#474693} Committed: https://chromium.googlesource.com/chromium/src/+/4e9fc10cf30e41afad38069847381cd725c2acbe

Patch Set 1 #

Patch Set 2 : Fixed test #

Total comments: 22

Patch Set 3 : wip #

Patch Set 4 : Fix the comple error #

Patch Set 5 : Fixed compile error in test #

Total comments: 4

Patch Set 6 : rebased #

Patch Set 7 : Addressed comment and fixed BUILD.gn #

Total comments: 2

Patch Set 8 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -898 lines) Patch
M testing/buildbot/gn_isolate_map.pyl View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M ui/arc/BUILD.gn View 1 2 3 4 5 6 3 chunks +10 lines, -0 lines 0 comments Download
M ui/arc/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_view.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_view.cc View 1 2 3 4 5 7 chunks +9 lines, -15 lines 0 comments Download
A ui/arc/notification/arc_notification_content_view_delegate.h View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
M ui/arc/notification/arc_notification_delegate.h View 1 2 1 chunk +12 lines, -4 lines 0 comments Download
M ui/arc/notification/arc_notification_delegate.cc View 1 2 2 chunks +14 lines, -5 lines 0 comments Download
M ui/arc/notification/arc_notification_item.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/arc/notification/arc_notification_item_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/arc/notification/arc_notification_item_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A + ui/arc/notification/arc_notification_view.h View 1 2 3 4 5 2 chunks +21 lines, -21 lines 0 comments Download
A + ui/arc/notification/arc_notification_view.cc View 1 2 3 4 5 6 5 chunks +44 lines, -40 lines 0 comments Download
A + ui/arc/notification/arc_notification_view_unittest.cc View 1 2 3 4 5 13 chunks +64 lines, -58 lines 0 comments Download
M ui/arc/test/run_all_unittests.cc View 1 1 chunk +21 lines, -2 lines 0 comments Download
M ui/message_center/BUILD.gn View 2 chunks +0 lines, -5 lines 0 comments Download
M ui/message_center/notification_delegate.h View 2 chunks +9 lines, -7 lines 0 comments Download
M ui/message_center/notification_delegate_views.cc View 1 chunk +4 lines, -2 lines 0 comments Download
D ui/message_center/views/custom_notification_content_view_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -46 lines 0 comments Download
D ui/message_center/views/custom_notification_content_view_delegate.cc View 1 chunk +0 lines, -18 lines 0 comments Download
D ui/message_center/views/custom_notification_view.h View 1 2 3 4 5 1 chunk +0 lines, -72 lines 0 comments Download
D ui/message_center/views/custom_notification_view.cc View 1 2 3 4 5 1 chunk +0 lines, -165 lines 0 comments Download
D ui/message_center/views/custom_notification_view_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -429 lines 0 comments Download
M ui/message_center/views/message_view.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M ui/message_center/views/message_view_factory.cc View 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 75 (59 generated)
yoshiki
Hidehiko-san, PTAL. Eliot, Hanada-san, FYI.
3 years, 7 months ago (2017-05-10 13:22:01 UTC) #27
hidehiko
Sorry for delay. Direction looks good. Mostly minor comments or document requests. https://codereview.chromium.org/2870283002/diff/50001/ui/arc/notification/arc_custom_notification_view.h File ui/arc/notification/arc_custom_notification_view.h ...
3 years, 7 months ago (2017-05-11 14:22:47 UTC) #28
yoshiki
Thanks! PTAL. https://codereview.chromium.org/2870283002/diff/50001/ui/arc/notification/arc_custom_notification_view.h File ui/arc/notification/arc_custom_notification_view.h (right): https://codereview.chromium.org/2870283002/diff/50001/ui/arc/notification/arc_custom_notification_view.h#newcode40 ui/arc/notification/arc_custom_notification_view.h:40: // TODO(yoshiki): Rename this class to ArcNotificationContentsView. ...
3 years, 7 months ago (2017-05-12 08:42:38 UTC) #31
hidehiko
LGTM with minor comment. For ASAN failure, it looks crbug.com/722123, but please re-run and verify ...
3 years, 7 months ago (2017-05-15 13:52:17 UTC) #42
yoshiki
https://codereview.chromium.org/2870283002/diff/110001/ui/arc/notification/arc_notification_view.cc File ui/arc/notification/arc_notification_view.cc (right): https://codereview.chromium.org/2870283002/diff/110001/ui/arc/notification/arc_notification_view.cc#newcode33 ui/arc/notification/arc_notification_view.cc:33: contents_view_(contents_view.release()), On 2017/05/15 13:52:16, hidehiko wrote: > Please use ...
3 years, 7 months ago (2017-05-15 15:48:53 UTC) #43
hidehiko
https://codereview.chromium.org/2870283002/diff/110001/ui/arc/notification/arc_notification_view.cc File ui/arc/notification/arc_notification_view.cc (right): https://codereview.chromium.org/2870283002/diff/110001/ui/arc/notification/arc_notification_view.cc#newcode33 ui/arc/notification/arc_notification_view.cc:33: contents_view_(contents_view.release()), On 2017/05/15 15:48:53, yoshiki wrote: > On 2017/05/15 ...
3 years, 7 months ago (2017-05-16 11:16:28 UTC) #44
yoshiki
https://codereview.chromium.org/2870283002/diff/110001/ui/arc/notification/arc_notification_view.cc File ui/arc/notification/arc_notification_view.cc (right): https://codereview.chromium.org/2870283002/diff/110001/ui/arc/notification/arc_notification_view.cc#newcode33 ui/arc/notification/arc_notification_view.cc:33: contents_view_(contents_view.release()), On 2017/05/16 11:16:28, hidehiko wrote: > On 2017/05/15 ...
3 years, 7 months ago (2017-05-24 00:36:40 UTC) #53
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/2870283002/150001
3 years, 7 months ago (2017-05-24 00:38:36 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/445678)
3 years, 7 months ago (2017-05-24 00:51:04 UTC) #58
yoshiki
kbr@, could you approve depending on ui/gl? We're calling some GL method from ui/arc/test/run_all_unittests.cc.
3 years, 7 months ago (2017-05-24 02:40:15 UTC) #61
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2870283002/diff/150001/ui/arc/DEPS File ui/arc/DEPS (right): https://codereview.chromium.org/2870283002/diff/150001/ui/arc/DEPS#newcode4 ui/arc/DEPS:4: "+ui/gl", Rather than adding this dependency, which could lead ...
3 years, 7 months ago (2017-05-24 20:48:11 UTC) #62
yoshiki
kbr@, PTAL again? Thanks. https://codereview.chromium.org/2870283002/diff/150001/ui/arc/DEPS File ui/arc/DEPS (right): https://codereview.chromium.org/2870283002/diff/150001/ui/arc/DEPS#newcode4 ui/arc/DEPS:4: "+ui/gl", On 2017/05/24 20:48:10, Ken ...
3 years, 7 months ago (2017-05-25 07:27:29 UTC) #67
Ken Russell (switch to Gerrit)
lgtm
3 years, 7 months ago (2017-05-25 17:35:18 UTC) #68
yoshiki
Thanks!
3 years, 7 months ago (2017-05-25 17:40:09 UTC) #69
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/2870283002/170001
3 years, 7 months ago (2017-05-25 17:41:12 UTC) #72
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 17:46:26 UTC) #75
Message was sent while issue was closed.
Committed patchset #8 (id:170001) as
https://chromium.googlesource.com/chromium/src/+/4e9fc10cf30e41afad3806984738...

Powered by Google App Engine
This is Rietveld 408576698