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

Issue 2268973004: Fix missing shadows for tooltip and menu (Closed)

Created:
4 years, 4 months ago by Julien Isorce Samsung
Modified:
4 years, 3 months ago
Reviewers:
sadrul, piman
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix missing shadows for tooltip and menu When using a transparent visual the window manager does not draw any shadow by default (ex: 'Compiz' WM). Note that this default behavior is WM dependent. So the solution is to not use a transparent visual for any window type which is not TYPE_DRAG and not TYPE_WINDOW. Keep trying to use a transparent visual for type TYPE_DRAG or TYPE_WINDOW because of crbug.com/593256 and crbug.com/369209. BUG=640170 R=piman@chromium.org, sadrul@chromium.org

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -17 lines) Patch
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 chunk +23 lines, -17 lines 1 comment Download

Messages

Total messages: 10 (5 generated)
Julien Isorce Samsung
On 2016/08/24 11:33:31, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 4 months ago (2016-08-24 12:01:06 UTC) #5
piman
https://codereview.chromium.org/2268973004/diff/1/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/2268973004/diff/1/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode1166 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:1166: ui::ChooseVisualForWindow(enable_transparent_visuals, &visual, &depth); Ignoring the statics for a second, ...
4 years, 4 months ago (2016-08-24 17:21:50 UTC) #6
Julien Isorce Samsung
On 2016/08/24 17:21:50, piman OOO back 2016-08-29 wrote: > https://codereview.chromium.org/2268973004/diff/1/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc > File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): > ...
4 years, 3 months ago (2016-08-25 09:39:57 UTC) #7
Julien Isorce Samsung
On 2016/08/25 09:39:57, Julien Isorce wrote: > On 2016/08/24 17:21:50, piman OOO back 2016-08-29 wrote: ...
4 years, 3 months ago (2016-08-25 22:19:27 UTC) #8
Julien Isorce Samsung
4 years, 3 months ago (2016-08-25 22:19:58 UTC) #9
On 2016/08/25 22:19:27, Julien Isorce wrote:
> On 2016/08/25 09:39:57, Julien Isorce wrote:
> > On 2016/08/24 17:21:50, piman OOO back 2016-08-29 wrote:
> > >
> >
>
https://codereview.chromium.org/2268973004/diff/1/ui/views/widget/desktop_aur...
> > > File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/2268973004/diff/1/ui/views/widget/desktop_aur...
> > > ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:1166:
> > > ui::ChooseVisualForWindow(enable_transparent_visuals, &visual, &depth);
> > > Ignoring the statics for a second, ChooseVisualForWindow would return the
> root
> > > window's (i.e. the parent's) visual if enable_transparent_visuals is
false.
> > > 
> > > So, could we fix ChooseVisualForWindow to cache separately the visuals for
> > > transparent and opaque? I think it would make more sense:
> > ChooseVisualForWindow
> > > would choose the right visual based on enable_transparent_visuals,
> independent
> > > of how it was called before. That way, we don't need to distribute the
logic
> > > between there and here.
> > 
> > Hi Antoine, thx for the suggestion. Actually I thought about it as per
comment
> > #4
> > https://bugs.chromium.org/p/chromium/issues/detail?id=640170#c4 but when I
> tried
> > it ends up to make ui::ChooseVisualForWindow over complicated and not easy
to
> > read.
> > But I will have another go and I will upload the result in another CL so
that
> we
> > can compare. Maybe I have not did it the exact way you are thinking. So
let's
> > check. Thx.
> 
> Done here https://codereview.chromium.org/2268973004/ .
> I still prefer the first version I uploaded.

Oups here https://codereview.chromium.org/2280433004/

Powered by Google App Engine
This is Rietveld 408576698