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

Issue 2269403004: arc: Defer notification surface creation (Closed)

Created:
4 years, 4 months ago by xiyuan
Modified:
4 years, 3 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, viettrungluu+watch_chromium.org, hidehiko+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, lhchavez+watch_chromium.org, darin (slow to review), qsr+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Defer notification surface creation - Add Create/CloseNotificationWindow to NotificationsInstance; - ArcCustomNotificationItem tracks a window count for the views and sends Create/CloseNotificationWindow based on the count; - ArcCustomNotificationItem initializes the view with snapshot image; - ArcCustomNotificationView observes surface manager and dynamically switch from snapshot to live surface; BUG=640305, 640356 BUG=b/30864565 TEST=Manual. Custom notification works as before and CTS passes. Committed: https://crrev.com/a21cae6cb172afe362f8a6d12f6e64ce56347b65 Cr-Commit-Position: refs/heads/master@{#415887}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase and fix compile #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -79 lines) Patch
M components/arc/common/notifications.mojom View 3 chunks +14 lines, -1 line 0 comments Download
M components/arc/test/fake_notifications_instance.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/test/fake_notifications_instance.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_item.h View 2 chunks +16 lines, -13 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_item.cc View 6 chunks +22 lines, -36 lines 4 comments Download
M ui/arc/notification/arc_custom_notification_view.h View 4 chunks +19 lines, -8 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_view.cc View 1 8 chunks +93 lines, -20 lines 0 comments Download
M ui/arc/notification/arc_notification_item.h View 2 chunks +3 lines, -1 line 0 comments Download
M ui/arc/notification/arc_notification_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/arc/notification/arc_notification_manager.cc View 2 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (16 generated)
xiyuan
4 years, 4 months ago (2016-08-24 22:52:43 UTC) #2
xiyuan
ping?
4 years, 3 months ago (2016-08-26 05:08:49 UTC) #4
yoshiki
lgtm. sorry for late.
4 years, 3 months ago (2016-08-26 15:36:24 UTC) #5
xiyuan
On 2016/08/26 15:36:24, yoshiki wrote: > lgtm. sorry for late. No problem. Thanks for the ...
4 years, 3 months ago (2016-08-26 16:15:32 UTC) #6
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/2269403004/20001
4 years, 3 months ago (2016-08-26 16:16:12 UTC) #8
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/247080)
4 years, 3 months ago (2016-08-26 16:23:26 UTC) #10
xiyuan
dcheng@, could you review notifications.mojom change? Thanks.
4 years, 3 months ago (2016-08-26 16:46:43 UTC) #12
xiyuan
On 2016/08/26 16:46:43, xiyuan wrote: > dcheng@, could you review notifications.mojom change? Thanks. ping?
4 years, 3 months ago (2016-08-29 19:16:16 UTC) #17
kinaba
drive-by. It looks components/arc/ OWNER as a reviewer looks needed, too On 2016/08/29 19:16:16, xiyuan ...
4 years, 3 months ago (2016-08-30 01:25:55 UTC) #18
xiyuan
+lhchavez, could you help with owner's review for components/arc/test/fake_notifications_instance.* ? Thanks.
4 years, 3 months ago (2016-08-30 15:38:57 UTC) #20
Luis Héctor Chávez
components/arc/test lgtm
4 years, 3 months ago (2016-08-30 15:48:32 UTC) #22
Luis Héctor Chávez
(-the wrong lhchavez as well)
4 years, 3 months ago (2016-08-30 15:51:13 UTC) #24
dcheng
https://codereview.chromium.org/2269403004/diff/40001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (right): https://codereview.chromium.org/2269403004/diff/40001/ui/arc/notification/arc_custom_notification_item.cc#newcode89 ui/arc/notification/arc_custom_notification_item.cc:89: data.snapshot_image.To<SkBitmap>(), data.snapshot_image_scale)); Do we have a bug filed to ...
4 years, 3 months ago (2016-08-31 05:57:54 UTC) #25
xiyuan
https://codereview.chromium.org/2269403004/diff/40001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (right): https://codereview.chromium.org/2269403004/diff/40001/ui/arc/notification/arc_custom_notification_item.cc#newcode122 ui/arc/notification/arc_custom_notification_item.cc:122: manager()->CloseNotificationWindow(notification_key()); On 2016/08/31 05:57:54, dcheng wrote: > So I ...
4 years, 3 months ago (2016-08-31 14:01:55 UTC) #26
dcheng
OK, I don't think I can honestly follow the logic for managing the notifications UI. ...
4 years, 3 months ago (2016-08-31 23:52:04 UTC) #27
xiyuan
https://codereview.chromium.org/2269403004/diff/40001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (right): https://codereview.chromium.org/2269403004/diff/40001/ui/arc/notification/arc_custom_notification_item.cc#newcode89 ui/arc/notification/arc_custom_notification_item.cc:89: data.snapshot_image.To<SkBitmap>(), data.snapshot_image_scale)); On 2016/08/31 05:57:54, dcheng wrote: > Do ...
4 years, 3 months ago (2016-09-01 04:29:15 UTC) #28
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/2269403004/40001
4 years, 3 months ago (2016-09-01 04:29:41 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-01 04:58:04 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 05:01:02 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a21cae6cb172afe362f8a6d12f6e64ce56347b65
Cr-Commit-Position: refs/heads/master@{#415887}

Powered by Google App Engine
This is Rietveld 408576698