DescriptionMove SetUseOverrideRedirectWindowByDefault() to //ui/base.
There is a test related function SetUseOverrideRedirectWindowByDefault()
that is called from a various tests to change the override redirect
attribute when creating an XWindow. We normally want this attribute to
be false, except in some tests where it needs to be true. Not setting
this true causes problems depending on the X window manager and test
failures with Xvfb.
The calls to SetUseOverrideRedirectWindowByDefault() were guarded by
ifdef for USE_X11. This doesn't work for Ozone X11 because USE_X11=0. We
can't check at compile time if we need to call the function because the
Ozone platform isn't decided until runtime.
Instead, SetUseOverrideRedirectWindowByDefault() is moved into
//ui/base. All the function does is set a bool that can be queried when
creating a XWindow. X11WindowBase and WindowTreeHostX11 check the value.
In all other instances the bool is never used and has no effect.
BUG=690156
Review-Url: https://codereview.chromium.org/2683033006
Cr-Commit-Position: refs/heads/master@{#449767}
Committed: https://chromium.googlesource.com/chromium/src/+/e4030aee4483c7f90258ceb80c89bc3336ad92c3
Patch Set 1 #Patch Set 2 : Rename files. #
Total comments: 2
Patch Set 3 : Rename. #Patch Set 4 : Fix comment. #Patch Set 5 : Rename again. #
Total comments: 2
Patch Set 6 : g_use_test_config. #
Messages
Total messages: 22 (13 generated)
|