OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_PLATFORM_WINDOW_X11_X11_WINDOW_BASE_H_ | 5 #ifndef UI_PLATFORM_WINDOW_X11_X11_WINDOW_BASE_H_ |
6 #define UI_PLATFORM_WINDOW_X11_X11_WINDOW_BASE_H_ | 6 #define UI_PLATFORM_WINDOW_X11_X11_WINDOW_BASE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 base::string16 window_title_; | 72 base::string16 window_title_; |
73 | 73 |
74 // The bounds of |xwindow_|. | 74 // The bounds of |xwindow_|. |
75 gfx::Rect bounds_; | 75 gfx::Rect bounds_; |
76 | 76 |
77 bool window_mapped_ = false; | 77 bool window_mapped_ = false; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(X11WindowBase); | 79 DISALLOW_COPY_AND_ASSIGN(X11WindowBase); |
80 }; | 80 }; |
81 | 81 |
82 namespace test { | |
83 | |
84 // Sets the value of the |override_redirect| flag when creating an X11 window. | |
85 // It is necessary to set this flag on for various tests, otherwise the call to | |
86 // X11WindowBase::Show() blocks because it never receives the MapNotify event. | |
87 // It is | |
88 // unclear why this is necessary, but might be related to calls to | |
89 // XInitThreads(). | |
90 X11_WINDOW_EXPORT void SetUseOverrideRedirectWindowByDefault( | |
91 bool override_redirect); | |
92 | |
93 } // namespace test | |
94 | |
95 } // namespace ui | 82 } // namespace ui |
96 | 83 |
97 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_BASE_H_ | 84 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_BASE_H_ |
OLD | NEW |