OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_BASE_PLATFORM_WINDOW_DEFAULTS_H_ | |
6 #define UI_BASE_PLATFORM_WINDOW_DEFAULTS_H_ | |
7 | |
8 #include "ui/base/ui_base_export.h" | |
9 | |
10 namespace ui { | |
11 | |
12 // Gets the |override_redirect| flag used when creating an X11 window. | |
13 UI_BASE_EXPORT bool GetUseOverrideRedirectWindowByDefault(); | |
14 | |
15 namespace test { | |
16 | |
17 // Sets the value of the |override_redirect| flag when creating an X11 window. | |
18 // It is necessary to set this flag on for various tests, otherwise the call to | |
19 // Show() blocks because it never receives the MapNotify event. It is unclear | |
20 // why this is necessary, but might be related to calls to XInitThreads(). | |
21 // | |
22 // This can be called safely on all platforms. For non-X11 platforms it will | |
23 // have no effect. | |
24 UI_BASE_EXPORT void SetUseOverrideRedirectWindowByDefault( | |
sadrul
2017/02/09 21:49:35
Maybe call this something different? like EnableTe
kylechar
2017/02/10 15:31:03
Done.
| |
25 bool override_redirect); | |
26 | |
27 } // namespace test | |
28 } // namespace ui | |
29 | |
30 #endif // UI_BASE_PLATFORM_WINDOW_DEFAULTS_H_ | |
OLD | NEW |