Chromium Code Reviews| Index: ui/platform_window/x11/x11_window.h |
| diff --git a/ui/platform_window/x11/x11_window.h b/ui/platform_window/x11/x11_window.h |
| index b964b89476c2701349b6223654a7d542c63c86bc..e3b81adb412f683a37419d0067e5bdc75c676477 100644 |
| --- a/ui/platform_window/x11/x11_window.h |
| +++ b/ui/platform_window/x11/x11_window.h |
| @@ -66,6 +66,17 @@ class X11_WINDOW_EXPORT X11Window : public PlatformWindow, |
| DISALLOW_COPY_AND_ASSIGN(X11Window); |
| }; |
| +namespace test { |
| + |
| +// Sets the value of the |override_redirect| flag when creating an X11 window. |
| +// It is necessary to set this flag on for various tests, otherwise the call to |
| +// X11Window::Show() blocks because it never receives the MapNotify event. It is |
| +// unclear why this is necessary, but might be related to calls to |
| +// XInitThreads(). |
| +X11_WINDOW_EXPORT void SetUseOverrideRedirectWindowByDefault( |
| + bool override_redirect); |
| +} // namespace test |
|
msw
2015/07/16 20:02:44
nit: blank line before closing the namespace, to m
sadrul
2015/07/17 05:11:53
Done.
|
| + |
| } // namespace ui |
| #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_ |