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

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

Created:
4 years, 3 months ago by Julien Isorce Samsung
Modified:
4 years, 3 months ago
Reviewers:
sadrul, piman
CC:
chromium-reviews, tfarina, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org
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 TEST=python testing/xvfb.py ./out/build/ ./out/build/views_unittests --gtest_filter=*WidgetTest.Transparency* ./out/build/ui_base_unittests --gtest_filter=*ChooseVisualForWindow* Committed: https://crrev.com/fa6da651020b236ab9dc8b4d9f1198dc1d1049ca Cr-Commit-Position: refs/heads/master@{#418221}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add tests #

Patch Set 3 : Fix build if not X11 #

Patch Set 4 : Fixed tests when running with --single-process-tests #

Patch Set 5 : Rebase and add missing deps for gn build on chromeos #

Patch Set 6 : Attempt to fix osx and win test failures #

Patch Set 7 : Only do TYPE_WINDOW on OS_WIN as before, and fix Linux test failures #

Patch Set 8 : Fixed test failures on mus (views_mus_unittests) #

Patch Set 9 : Just rebase #

Total comments: 10

Patch Set 10 : Rebase and addressed remarks #

Patch Set 11 : Forgot to re-add x11_util_unittest.cc because git cl patch failed so I had to use git apply (-gyp) #

Patch Set 12 : Rebase #

Patch Set 13 : Just rebase #

Patch Set 14 : Rebase #

Patch Set 15 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -64 lines) Patch
M ui/base/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 3 4 5 6 7 8 9 2 chunks +28 lines, -17 lines 0 comments Download
A ui/base/x/x11_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
M ui/views/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/test/views_test_base.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ui/views/test/views_test_base.cc View 1 2 3 2 chunks +37 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -4 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +66 lines, -41 lines 0 comments Download

Messages

Total messages: 73 (61 generated)
Julien Isorce Samsung
Hi Antoine, please have a look. But note that I prefer the first version I ...
4 years, 3 months ago (2016-08-25 22:22:05 UTC) #3
piman
non-OWNER lgtm
4 years, 3 months ago (2016-08-25 22:57:41 UTC) #4
sadrul
lgtm
4 years, 3 months ago (2016-08-26 02:12:07 UTC) #7
Julien Isorce Samsung
On 2016/08/26 02:12:07, sadrul wrote: > lgtm Thx you both for the review. Before to ...
4 years, 3 months ago (2016-08-26 15:27:47 UTC) #8
Julien Isorce Samsung
On 2016/08/26 15:27:47, Julien Isorce wrote: > On 2016/08/26 02:12:07, sadrul wrote: > > lgtm ...
4 years, 3 months ago (2016-08-30 16:48:04 UTC) #12
Julien Isorce Samsung
On 2016/08/30 16:48:04, Julien Isorce wrote: >> Dry run: This issue passed the CQ dry ...
4 years, 3 months ago (2016-09-01 09:54:02 UTC) #39
sadrul
https://codereview.chromium.org/2280433004/diff/1/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/2280433004/diff/1/ui/base/x/x11_util.cc#newcode1452 ui/base/x/x11_util.cc:1452: XWindowAttributes windowAttribs; window_attribs, or attribs. Sorry, missed this in ...
4 years, 3 months ago (2016-09-02 19:53:24 UTC) #44
Julien Isorce Samsung
Thx for the review. https://codereview.chromium.org/2280433004/diff/1/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/2280433004/diff/1/ui/base/x/x11_util.cc#newcode1452 ui/base/x/x11_util.cc:1452: XWindowAttributes windowAttribs; On 2016/09/02 19:53:24, ...
4 years, 3 months ago (2016-09-02 20:59:08 UTC) #45
Julien Isorce Samsung
I am committing the CL because it is a priority 1 issue. Also the fix ...
4 years, 3 months ago (2016-09-13 12:17:08 UTC) #66
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/2280433004/280001
4 years, 3 months ago (2016-09-13 12:17:30 UTC) #69
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 3 months ago (2016-09-13 12:21:55 UTC) #71
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 12:23:56 UTC) #73
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/fa6da651020b236ab9dc8b4d9f1198dc1d1049ca
Cr-Commit-Position: refs/heads/master@{#418221}

Powered by Google App Engine
This is Rietveld 408576698