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

Side by Side Diff: ui/platform_window/x11/x11_window_base.h

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 unified diff | Download patch
« no previous file with comments | « ui/platform_window/x11/DEPS ('k') | ui/platform_window/x11/x11_window_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/platform_window/x11/DEPS ('k') | ui/platform_window/x11/x11_window_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698