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

Unified Diff: ui/aura/window_tree_host_x11.cc

Issue 2683033006: Move SetUseOverrideRedirectWindowByDefault() to //ui/base. (Closed)
Patch Set: g_use_test_config. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window_tree_host_x11.h ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_x11.cc
diff --git a/ui/aura/window_tree_host_x11.cc b/ui/aura/window_tree_host_x11.cc
index 9f669ad74515344cae343925c491930f36060e28..2efa102bb60751a5893ed39bc78c28a0adf32dbe 100644
--- a/ui/aura/window_tree_host_x11.cc
+++ b/ui/aura/window_tree_host_x11.cc
@@ -31,6 +31,7 @@
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/base/cursor/cursor.h"
+#include "ui/base/platform_window_defaults.h"
#include "ui/base/ui_base_switches.h"
#include "ui/base/view_prop.h"
#include "ui/base/x/x11_util.h"
@@ -109,8 +110,6 @@ void SelectXInput2EventsForRootWindow(XDisplay* display, ::Window root_window) {
#endif
}
-bool default_override_redirect = false;
-
} // namespace
////////////////////////////////////////////////////////////////////////////////
@@ -128,7 +127,7 @@ WindowTreeHostX11::WindowTreeHostX11(const gfx::Rect& bounds)
memset(&swa, 0, sizeof(swa));
swa.background_pixmap = None;
swa.bit_gravity = NorthWestGravity;
- swa.override_redirect = default_override_redirect;
+ swa.override_redirect = ui::UseTestConfigForPlatformWindows();
xwindow_ = XCreateWindow(
xdisplay_, x_root_window_,
bounds.x(), bounds.y(), bounds.width(), bounds.height(),
@@ -575,11 +574,4 @@ WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds_in_pixels) {
return new WindowTreeHostX11(bounds_in_pixels);
}
-namespace test {
-
-void SetUseOverrideRedirectWindowByDefault(bool override_redirect) {
- default_override_redirect = override_redirect;
-}
-
-} // namespace test
} // namespace aura
« no previous file with comments | « ui/aura/window_tree_host_x11.h ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698