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

Issue 2683033006: Move SetUseOverrideRedirectWindowByDefault() to //ui/base. (Closed)

Created:
3 years, 10 months ago by kylechar
Modified:
3 years, 10 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, rjkroege, kalyank, jam, sadrul, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -62 lines) Patch
M ash/test/ash_test_helper.cc View 1 2 3 4 3 chunks +2 lines, -7 lines 0 comments Download
M content/public/test/browser_test_base.cc View 1 2 3 4 3 chunks +2 lines, -6 lines 0 comments Download
M services/ui/service.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M ui/aura/test/aura_test_helper.cc View 1 2 3 4 3 chunks +2 lines, -4 lines 0 comments Download
M ui/aura/window_tree_host_x11.h View 1 chunk +0 lines, -7 lines 0 comments Download
M ui/aura/window_tree_host_x11.cc View 1 2 3 4 4 chunks +2 lines, -10 lines 0 comments Download
M ui/base/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A ui/base/platform_window_defaults.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A ui/base/platform_window_defaults.cc View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
M ui/gl/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/test/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/test/gl_surface_test_support.cc View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M ui/platform_window/x11/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/platform_window/x11/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M ui/platform_window/x11/x11_window_base.h View 1 chunk +0 lines, -13 lines 0 comments Download
M ui/platform_window/x11/x11_window_base.cc View 1 2 3 4 4 chunks +2 lines, -10 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
kylechar
3 years, 10 months ago (2017-02-09 19:38:11 UTC) #4
sadrul
https://codereview.chromium.org/2683033006/diff/40001/ui/base/platform_window_defaults.h File ui/base/platform_window_defaults.h (right): https://codereview.chromium.org/2683033006/diff/40001/ui/base/platform_window_defaults.h#newcode24 ui/base/platform_window_defaults.h:24: UI_BASE_EXPORT void SetUseOverrideRedirectWindowByDefault( Maybe call this something different? like ...
3 years, 10 months ago (2017-02-09 21:49:35 UTC) #5
kylechar
https://codereview.chromium.org/2683033006/diff/40001/ui/base/platform_window_defaults.h File ui/base/platform_window_defaults.h (right): https://codereview.chromium.org/2683033006/diff/40001/ui/base/platform_window_defaults.h#newcode24 ui/base/platform_window_defaults.h:24: UI_BASE_EXPORT void SetUseOverrideRedirectWindowByDefault( On 2017/02/09 21:49:35, sadrul wrote: > ...
3 years, 10 months ago (2017-02-10 15:31:03 UTC) #8
kylechar
Changed the name as per IRC conversation. +sky for ash/*, content/* and services/ui/*
3 years, 10 months ago (2017-02-10 20:10:00 UTC) #10
sadrul
lgtm https://codereview.chromium.org/2683033006/diff/130001/ui/base/platform_window_defaults.cc File ui/base/platform_window_defaults.cc (right): https://codereview.chromium.org/2683033006/diff/130001/ui/base/platform_window_defaults.cc#newcode10 ui/base/platform_window_defaults.cc:10: bool g_override_redirect = false; g_use_test_config!
3 years, 10 months ago (2017-02-10 20:44:42 UTC) #11
sky
LGTM
3 years, 10 months ago (2017-02-10 21:11:23 UTC) #12
kylechar
https://codereview.chromium.org/2683033006/diff/130001/ui/base/platform_window_defaults.cc File ui/base/platform_window_defaults.cc (right): https://codereview.chromium.org/2683033006/diff/130001/ui/base/platform_window_defaults.cc#newcode10 ui/base/platform_window_defaults.cc:10: bool g_override_redirect = false; On 2017/02/10 20:44:42, sadrul wrote: ...
3 years, 10 months ago (2017-02-10 21:15:30 UTC) #13
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/2683033006/150001
3 years, 10 months ago (2017-02-10 22:16:34 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 22:36:45 UTC) #22
Message was sent while issue was closed.
Committed patchset #6 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/e4030aee4483c7f90258ceb80c89...

Powered by Google App Engine
This is Rietveld 408576698