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

Issue 2221073002: arc: Custom notification improvements (Closed)

Created:
4 years, 4 months ago by xiyuan
Modified:
4 years, 4 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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Custom notification improvements - Install a pre target event handler to notification surface window to forward events to hosting ArcCustomNotificationView; - Only show close button when mouse hovering; - Add SlideHelper to observe slide transform/animation and swap between a notification surface copy and real surface when a slide starts/stops; BUG=635566, 636625 TEST=Manual. Close button only shows up when mouse hovering. Backspace/delete key dismisses the custom notification. Swipe gesture works as regular Chrome notification. Closing via close button in message list does not crash. Committed: https://crrev.com/416f1f674c873e3b58963e64a2ef01e52dcfbe5e Cr-Commit-Position: refs/heads/master@{#411272}

Patch Set 1 #

Patch Set 2 : fix style #

Total comments: 5

Patch Set 3 : address comments in #2 #

Total comments: 10

Patch Set 4 : for #3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -15 lines) Patch
M ui/arc/BUILD.gn View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M ui/arc/arc.gyp View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/arc/notification/DEPS View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_view.h View 1 2 3 2 chunks +22 lines, -2 lines 0 comments Download
M ui/arc/notification/arc_custom_notification_view.cc View 1 2 3 9 chunks +158 lines, -10 lines 0 comments Download

Messages

Total messages: 35 (19 generated)
xiyuan
4 years, 4 months ago (2016-08-08 17:00:47 UTC) #2
yoshiki
https://codereview.chromium.org/2221073002/diff/20001/ui/arc/notification/arc_custom_notification_view.cc File ui/arc/notification/arc_custom_notification_view.cc (right): https://codereview.chromium.org/2221073002/diff/20001/ui/arc/notification/arc_custom_notification_view.cc#newcode56 ui/arc/notification/arc_custom_notification_view.cc:56: owner_->surface_->window()->layer()->SetOpacity(1.0f); Shouldn't we check if owner_->surface_->window() != null? https://codereview.chromium.org/2221073002/diff/20001/ui/arc/notification/arc_custom_notification_view.cc#newcode92 ...
4 years, 4 months ago (2016-08-09 16:01:57 UTC) #7
xiyuan
Thanks for reviewing in such hour. :) https://codereview.chromium.org/2221073002/diff/20001/ui/arc/notification/arc_custom_notification_view.cc File ui/arc/notification/arc_custom_notification_view.cc (right): https://codereview.chromium.org/2221073002/diff/20001/ui/arc/notification/arc_custom_notification_view.cc#newcode56 ui/arc/notification/arc_custom_notification_view.cc:56: owner_->surface_->window()->layer()->SetOpacity(1.0f); On ...
4 years, 4 months ago (2016-08-09 16:08:10 UTC) #8
yoshiki
lgtm https://codereview.chromium.org/2221073002/diff/20001/ui/arc/notification/arc_custom_notification_view.cc File ui/arc/notification/arc_custom_notification_view.cc (right): https://codereview.chromium.org/2221073002/diff/20001/ui/arc/notification/arc_custom_notification_view.cc#newcode92 ui/arc/notification/arc_custom_notification_view.cc:92: surface_copy_.reset(); On 2016/08/09 16:08:09, xiyuan wrote: > On ...
4 years, 4 months ago (2016-08-09 16:15:01 UTC) #9
xiyuan
sadrul@, please approve adding the following deps for //ui/arc: '+ui/compositor', '+ui/display', '+ui/events', '+ui/wm', Thanks.
4 years, 4 months ago (2016-08-09 16:39:06 UTC) #11
xiyuan
lhchavez@, could you approve //ui/arc/Build.gn change? Thanks.
4 years, 4 months ago (2016-08-09 23:03:43 UTC) #13
Luis Héctor Chávez
rs-lgtm
4 years, 4 months ago (2016-08-09 23:04:51 UTC) #15
sadrul
I went ahead and reviewed the actual usage of the new DEPS too. I have ...
4 years, 4 months ago (2016-08-10 03:26:39 UTC) #16
xiyuan
On 2016/08/10 03:26:39, sadrul wrote: > I went ahead and reviewed the actual usage of ...
4 years, 4 months ago (2016-08-10 15:13:16 UTC) #17
xiyuan
https://codereview.chromium.org/2221073002/diff/40001/ui/arc/BUILD.gn File ui/arc/BUILD.gn (right): https://codereview.chromium.org/2221073002/diff/40001/ui/arc/BUILD.gn#newcode33 ui/arc/BUILD.gn:33: "//ui/compositor:compositor", On 2016/08/10 03:26:39, sadrul wrote: > Just //ui/compositor ...
4 years, 4 months ago (2016-08-10 16:28:08 UTC) #18
Luis Héctor Chávez
removing the wrong lhchavez.
4 years, 4 months ago (2016-08-10 17:38:18 UTC) #22
sadrul
Thanks for the the explanations and links to docs. lgtm
4 years, 4 months ago (2016-08-11 05:11:27 UTC) #27
xiyuan
On 2016/08/11 05:11:27, sadrul wrote: > Thanks for the the explanations and links to docs. ...
4 years, 4 months ago (2016-08-11 05:17:51 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/2221073002/60001
4 years, 4 months ago (2016-08-11 05:18:10 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-11 05:21:29 UTC) #33
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 05:23:07 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/416f1f674c873e3b58963e64a2ef01e52dcfbe5e
Cr-Commit-Position: refs/heads/master@{#411272}

Powered by Google App Engine
This is Rietveld 408576698