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

Issue 2066853002: arc: Show custom notification via notification surface (Closed)

Created:
4 years, 6 months ago by xiyuan
Modified:
4 years, 6 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@notification-exo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Show custom notification via notification surface - ArcCustomotificationItem to use notification surface to create Chrome notification; - ArcCustomNotificationView to host and show the notification surface; - Add a use_custom_notification property to ArcNotificationData; - ArcNotificationManager choose ArcNotificationItem or ArcCustomNotificationItem based on that property; BUG=b/25816173 Committed: https://crrev.com/241469472d4bef36af0641d428312fd3ab73377c Cr-Commit-Position: refs/heads/master@{#401802}

Patch Set 1 #

Patch Set 2 : clean up #

Total comments: 9

Patch Set 3 : for comments in #2 #

Total comments: 2

Patch Set 4 : update NotificationSurfaceRegistry access and choose custom notification via ArcNotificationData #

Total comments: 2

Patch Set 5 : add comment for use_custom_notification #

Total comments: 4

Patch Set 6 : ArcCustomNotificationView use const * surface_ #

Total comments: 8

Patch Set 7 : nits in #6 #

Patch Set 8 : NotificationSurfaceRegistry move into ui/arc #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -46 lines) Patch
M chrome/browser/chrome_browser_main_extra_parts_exo.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_extra_parts_exo.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M components/arc/common/notifications.mojom View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download
M ui/arc/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M ui/arc/arc.gyp View 1 2 3 4 5 6 7 1 chunk +8 lines, -2 lines 0 comments Download
M ui/arc/notification/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
A ui/arc/notification/arc_custom_notification_item.h View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
A ui/arc/notification/arc_custom_notification_item.cc View 1 2 3 4 5 6 7 1 chunk +116 lines, -0 lines 0 comments Download
A ui/arc/notification/arc_custom_notification_view.h View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A ui/arc/notification/arc_custom_notification_view.cc View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
M ui/arc/notification/arc_notification_item.h View 1 2 3 chunks +29 lines, -2 lines 0 comments Download
M ui/arc/notification/arc_notification_item.cc View 1 2 8 chunks +58 lines, -38 lines 0 comments Download
M ui/arc/notification/arc_notification_manager.cc View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
A ui/arc/notification/arc_notification_surface_manager.h View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A ui/arc/notification/arc_notification_surface_manager.cc View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 32 (10 generated)
xiyuan
The dependent CLs on Android side has not landed but I would like to start ...
4 years, 6 months ago (2016-06-14 17:01:01 UTC) #2
yoshiki
Thank you for doing this! https://codereview.chromium.org/2066853002/diff/20001/ui/arc/notification/arc_notification_item.cc File ui/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/2066853002/diff/20001/ui/arc/notification/arc_notification_item.cc#newcode287 ui/arc/notification/arc_notification_item.cc:287: return; Please call AddToMessageCenter(). ...
4 years, 6 months ago (2016-06-15 11:47:20 UTC) #3
xiyuan
https://codereview.chromium.org/2066853002/diff/20001/ui/arc/notification/arc_notification_item.cc File ui/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/2066853002/diff/20001/ui/arc/notification/arc_notification_item.cc#newcode287 ui/arc/notification/arc_notification_item.cc:287: return; On 2016/06/15 11:47:20, yoshiki wrote: > Please call ...
4 years, 6 months ago (2016-06-15 19:32:44 UTC) #4
yoshiki
https://codereview.chromium.org/2066853002/diff/20001/ui/arc/notification/arc_notification_item.cc File ui/arc/notification/arc_notification_item.cc (right): https://codereview.chromium.org/2066853002/diff/20001/ui/arc/notification/arc_notification_item.cc#newcode287 ui/arc/notification/arc_notification_item.cc:287: return; On 2016/06/15 19:32:44, xiyuan wrote: > On 2016/06/15 ...
4 years, 6 months ago (2016-06-16 02:44:50 UTC) #5
xiyuan
https://codereview.chromium.org/2066853002/diff/40001/ui/arc/notification/arc_notification_manager.cc File ui/arc/notification/arc_notification_manager.cc (right): https://codereview.chromium.org/2066853002/diff/40001/ui/arc/notification/arc_notification_manager.cc#newcode17 ui/arc/notification/arc_notification_manager.cc:17: constexpr bool use_custom_notification = true; On 2016/06/16 02:44:50, yoshiki ...
4 years, 6 months ago (2016-06-20 23:04:58 UTC) #7
yoshiki
LGTM with nit. Thanks! https://codereview.chromium.org/2066853002/diff/60001/components/arc/common/notifications.mojom File components/arc/common/notifications.mojom (right): https://codereview.chromium.org/2066853002/diff/60001/components/arc/common/notifications.mojom#newcode74 components/arc/common/notifications.mojom:74: bool use_custom_notification; nit: please add ...
4 years, 6 months ago (2016-06-21 04:01:07 UTC) #8
xiyuan
https://codereview.chromium.org/2066853002/diff/60001/components/arc/common/notifications.mojom File components/arc/common/notifications.mojom (right): https://codereview.chromium.org/2066853002/diff/60001/components/arc/common/notifications.mojom#newcode74 components/arc/common/notifications.mojom:74: bool use_custom_notification; On 2016/06/21 04:01:07, yoshiki wrote: > nit: ...
4 years, 6 months ago (2016-06-21 14:38:43 UTC) #9
xiyuan
reveman@, fyi and review how notification surface is used: chrome/browser/chrome_browser_main_extra_parts_exo.cc ui/arc/notification/arc_custom_notification_item.cc ui/arc/notification/arc_custom_notification_view.cc elijahtaylor@ for owner ...
4 years, 6 months ago (2016-06-21 14:48:17 UTC) #11
Luis Héctor Chávez
ui/arc/ lgtm with a nit. Thanks for sorting the file names, btw :) https://codereview.chromium.org/2066853002/diff/80001/ui/arc/notification/arc_custom_notification_view.h File ...
4 years, 6 months ago (2016-06-21 16:30:47 UTC) #13
Nico
https://codereview.chromium.org/2066853002/diff/80001/chrome/browser/chrome_browser_main_extra_parts_exo.cc File chrome/browser/chrome_browser_main_extra_parts_exo.cc (right): https://codereview.chromium.org/2066853002/diff/80001/chrome/browser/chrome_browser_main_extra_parts_exo.cc#newcode129 chrome/browser/chrome_browser_main_extra_parts_exo.cc:129: display_->notification_surface_registry()); Does this do any interesting work? This runs ...
4 years, 6 months ago (2016-06-21 18:00:29 UTC) #14
xiyuan
https://codereview.chromium.org/2066853002/diff/80001/chrome/browser/chrome_browser_main_extra_parts_exo.cc File chrome/browser/chrome_browser_main_extra_parts_exo.cc (right): https://codereview.chromium.org/2066853002/diff/80001/chrome/browser/chrome_browser_main_extra_parts_exo.cc#newcode129 chrome/browser/chrome_browser_main_extra_parts_exo.cc:129: display_->notification_surface_registry()); On 2016/06/21 18:00:29, Nico wrote: > Does this ...
4 years, 6 months ago (2016-06-21 18:03:57 UTC) #15
Nico
lgtm (that still causes that code to be swapped in, but ok)
4 years, 6 months ago (2016-06-21 18:05:17 UTC) #16
xiyuan
https://codereview.chromium.org/2066853002/diff/80001/ui/arc/notification/arc_custom_notification_view.h File ui/arc/notification/arc_custom_notification_view.h (right): https://codereview.chromium.org/2066853002/diff/80001/ui/arc/notification/arc_custom_notification_view.h#newcode29 ui/arc/notification/arc_custom_notification_view.h:29: exo::NotificationSurface* surface_; On 2016/06/21 16:30:47, Luis Héctor Chávez wrote: ...
4 years, 6 months ago (2016-06-21 19:39:33 UTC) #17
dcheng
LGTM with a few nits https://codereview.chromium.org/2066853002/diff/100001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (right): https://codereview.chromium.org/2066853002/diff/100001/ui/arc/notification/arc_custom_notification_item.cc#newcode29 ui/arc/notification/arc_custom_notification_item.cc:29: return std::unique_ptr<views::View>(); return nullptr ...
4 years, 6 months ago (2016-06-22 02:23:56 UTC) #18
xiyuan
https://codereview.chromium.org/2066853002/diff/100001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (right): https://codereview.chromium.org/2066853002/diff/100001/ui/arc/notification/arc_custom_notification_item.cc#newcode29 ui/arc/notification/arc_custom_notification_item.cc:29: return std::unique_ptr<views::View>(); On 2016/06/22 02:23:56, dcheng wrote: > return ...
4 years, 6 months ago (2016-06-22 14:36:00 UTC) #19
xiyuan
reveman@, just found that this CL needs your blessing for adding "+components/exo" to ui/arc/notification/DEPS. Please ...
4 years, 6 months ago (2016-06-23 18:16:30 UTC) #20
reveman
ui/arc/notification/DEPS lgtm
4 years, 6 months ago (2016-06-23 18:18:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066853002/160001
4 years, 6 months ago (2016-06-23 21:50:17 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/251633)
4 years, 6 months ago (2016-06-23 23:58:10 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2066853002/160001
4 years, 6 months ago (2016-06-24 00:34:33 UTC) #28
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-24 03:06:32 UTC) #30
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 03:09:03 UTC) #32
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/241469472d4bef36af0641d428312fd3ab73377c
Cr-Commit-Position: refs/heads/master@{#401802}

Powered by Google App Engine
This is Rietveld 408576698