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

Issue 2398203002: Linux Aura: Fix overlay shadows on notifications (Closed)

Created:
4 years, 2 months ago by Tom (Use chromium acct)
Modified:
4 years ago
Reviewers:
Jun Mukai, sky, dewittj
CC:
chromium-reviews, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org, Julien Isorce Samsung
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Linux Aura: Fix overlay shadows on notifications Linux Aura got support for translucent windows in CL: https://chromium.googlesource.com/chromium/src.git/+/62ba78ffcdf525eb9ed640724e640fcf22fbbf87 Some Chrome widgets used a TRANSLUCENT_WINDOW opacity for widgets that fade in or out, but that don't actually have an alpha mask. This was to support a limitation on MS Windows where windows must be translucent to fade. However, most Linux window managers only draw shadows on opaque windows: that is, windows that do not have an alpha channel. Windows that fade in or out may still have shadows since opacity is set as a property of the toplevel window. Therefore, the solution is to use INFER_OPACITY for fading widgets so it will work across platforms. TRANSLUCENT_WINDOW should only be used on widgets that have alpha masks. BUG=640170 R=sky@chromium.org Committed: https://crrev.com/e35682c33f0e363b498b04d816c86bb16d1f5014 Cr-Commit-Position: refs/heads/master@{#434745}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Only apply change on desktop Linux #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M ui/message_center/views/toast_contents_view.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (20 generated)
Tom (Use chromium acct)
4 years, 2 months ago (2016-10-06 18:48:32 UTC) #8
sky
https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc File ui/message_center/views/toast_contents_view.cc (right): https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc#newcode226 ui/message_center/views/toast_contents_view.cc:226: GetWidget()->SetOpacity( I'm confused, this is changing the opacity. Doesn't ...
4 years, 2 months ago (2016-10-06 21:44:56 UTC) #11
Tom (Use chromium acct)
On 2016/10/06 21:44:56, sky wrote: > https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc > File ui/message_center/views/toast_contents_view.cc (right): > > https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc#newcode226 > ...
4 years, 2 months ago (2016-10-06 22:46:09 UTC) #12
sky
https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc File ui/message_center/views/toast_contents_view.cc (right): https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc#newcode62 ui/message_center/views/toast_contents_view.cc:62: // Sets the transparent background. Then, when the message ...
4 years, 2 months ago (2016-10-07 15:21:09 UTC) #13
Tom (Use chromium acct)
On 2016/10/07 15:21:09, sky wrote: > https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc > File ui/message_center/views/toast_contents_view.cc (right): > > https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc#newcode62 > ...
4 years, 2 months ago (2016-10-07 17:41:08 UTC) #15
dewittj
https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc File ui/message_center/views/toast_contents_view.cc (right): https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc#newcode62 ui/message_center/views/toast_contents_view.cc:62: // Sets the transparent background. Then, when the message ...
4 years, 2 months ago (2016-10-07 18:59:26 UTC) #17
Tom (Use chromium acct)
On 2016/10/07 18:59:26, dewittj wrote: > https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc > File ui/message_center/views/toast_contents_view.cc (right): > > https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc#newcode62 > ...
4 years, 2 months ago (2016-10-07 19:16:57 UTC) #18
Jun Mukai
https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc File ui/message_center/views/toast_contents_view.cc (right): https://codereview.chromium.org/2398203002/diff/20001/ui/message_center/views/toast_contents_view.cc#newcode62 ui/message_center/views/toast_contents_view.cc:62: // Sets the transparent background. Then, when the message ...
4 years, 2 months ago (2016-10-07 20:46:49 UTC) #19
dewittj
I think this is ok to lgtm, but please do a sanity check on a ...
4 years, 2 months ago (2016-10-17 16:01:44 UTC) #20
Tom (Use chromium acct)
On 2016/10/17 16:01:44, dewittj wrote: > I think this is ok to lgtm, but please ...
4 years, 1 month ago (2016-10-26 18:41:45 UTC) #21
sky
On 2016/10/26 18:41:45, Tom Anderson wrote: > On 2016/10/17 16:01:44, dewittj wrote: > > I ...
4 years, 1 month ago (2016-10-26 19:57:27 UTC) #22
Tom (Use chromium acct)
On 2016/10/26 19:57:27, sky wrote: > On 2016/10/26 18:41:45, Tom Anderson wrote: > > On ...
4 years, 1 month ago (2016-10-26 23:27:40 UTC) #23
sky
On 2016/10/26 23:27:40, Tom Anderson wrote: > On 2016/10/26 19:57:27, sky wrote: > > On ...
4 years, 1 month ago (2016-10-26 23:50:07 UTC) #24
Tom (Use chromium acct)
On 2016/10/26 23:50:07, sky wrote: > On 2016/10/26 23:27:40, Tom Anderson wrote: > > On ...
4 years ago (2016-11-28 19:14:55 UTC) #27
sky
LGTM
4 years ago (2016-11-28 20:21:28 UTC) #30
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/2398203002/40001
4 years ago (2016-11-28 21:25:32 UTC) #33
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years ago (2016-11-28 22:41:05 UTC) #36
commit-bot: I haz the power
4 years ago (2016-11-28 22:44:24 UTC) #38
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e35682c33f0e363b498b04d816c86bb16d1f5014
Cr-Commit-Position: refs/heads/master@{#434745}

Powered by Google App Engine
This is Rietveld 408576698