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

Issue 2849523005: CrOS: Fix appearance of notification toasts when sliding out via gesture (Closed)

Created:
3 years, 7 months ago by Evan Stade
Modified:
3 years, 7 months ago
Reviewers:
yoshiki, *sky
CC:
chromium-reviews, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

CrOS: Fix appearance of notification toasts when sliding out via gesture This converts SlideOutView to SlideOutController, which provides all the same functionality but can be added to any view rather than just those that extend it. It allows the target view to control the layer that's sliding out. For toasts, that is the widget's layer. For notifications inside the message center, that will continue to be the NotificationView itself. BUG=716429 Review-Url: https://codereview.chromium.org/2849523005 Cr-Commit-Position: refs/heads/master@{#468339} Committed: https://chromium.googlesource.com/chromium/src/+/3d7851ff607c370234e4f93ecf66727a8f8498d9

Patch Set 1 #

Total comments: 12

Patch Set 2 : rewrite some annoying tests #

Patch Set 3 : sky review #

Patch Set 4 : update build includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -339 lines) Patch
M ui/message_center/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ui/message_center/views/custom_notification_view_unittest.cc View 1 3 chunks +0 lines, -66 lines 0 comments Download
M ui/message_center/views/message_center_view_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/message_center/views/message_view.h View 1 2 7 chunks +18 lines, -10 lines 0 comments Download
M ui/message_center/views/message_view.cc View 7 chunks +15 lines, -13 lines 0 comments Download
M ui/message_center/views/message_view_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/views/notification_view_unittest.cc View 1 7 chunks +65 lines, -42 lines 0 comments Download
A ui/message_center/views/slide_out_controller.h View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
A + ui/message_center/views/slide_out_controller.cc View 1 2 5 chunks +33 lines, -35 lines 0 comments Download
M ui/views/BUILD.gn View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
D ui/views/controls/slide_out_view.h View 1 chunk +0 lines, -58 lines 0 comments Download
D ui/views/controls/slide_out_view.cc View 1 chunk +0 lines, -111 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
Evan Stade
sky@, ptal. yoshiki@, FYI/optional review.
3 years, 7 months ago (2017-04-28 21:21:06 UTC) #5
sky
https://codereview.chromium.org/2849523005/diff/1/ui/message_center/views/message_view.cc File ui/message_center/views/message_view.cc (right): https://codereview.chromium.org/2849523005/diff/1/ui/message_center/views/message_view.cc#newcode214 ui/message_center/views/message_view.cc:214: return is_nested_ ? layer() : GetWidget()->GetLayer(); Is it possible ...
3 years, 7 months ago (2017-04-28 22:35:36 UTC) #8
Evan Stade
https://codereview.chromium.org/2849523005/diff/1/ui/message_center/views/message_view.cc File ui/message_center/views/message_view.cc (right): https://codereview.chromium.org/2849523005/diff/1/ui/message_center/views/message_view.cc#newcode214 ui/message_center/views/message_view.cc:214: return is_nested_ ? layer() : GetWidget()->GetLayer(); On 2017/04/28 22:35:36, ...
3 years, 7 months ago (2017-04-28 23:18:38 UTC) #9
sky
LGTM
3 years, 7 months ago (2017-05-01 17:05:23 UTC) #16
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/2849523005/60001
3 years, 7 months ago (2017-05-01 17:10:27 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/3d7851ff607c370234e4f93ecf66727a8f8498d9
3 years, 7 months ago (2017-05-01 17:16:03 UTC) #22
sky
3 years, 7 months ago (2017-05-01 20:14:35 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2850153003/ by sky@chromium.org.

The reason for reverting is: This appears to have broken
message_center_unittests on chromium.win/Win10 Tests x64. See
https://uberchromegw.corp.google.com/i/chromium.win/builders/Win10%20Tests%20...
for one example..

Powered by Google App Engine
This is Rietveld 408576698