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

Side by Side Diff: ui/base/platform_window_defaults.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/base/BUILD.gn ('k') | ui/base/platform_window_defaults.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 // Returns true if PlatformWindow should use test configuration. Will return
13 // false by default, unless test::EnableTestConfigForPlatformWindows() has been
14 // called, then it will return true.
15 UI_BASE_EXPORT bool UseTestConfigForPlatformWindows();
16
17 namespace test {
18
19 // Sets that PlatformWindow should use test configuration. This can safely be
20 // called on all platforms but only has an effect for X11.
21
22 // For X11 this sets the value of the |override_redirect| attribute used when
23 // creating an X11 window to true. It is necessary to set this flag on for
24 // various tests, otherwise the call to Show() blocks because it never receives
25 // the MapNotify event. It is unclear why this is necessary, but might be
26 // related to calls to XInitThreads().
27 UI_BASE_EXPORT void EnableTestConfigForPlatformWindows();
28
29 } // namespace test
30 } // namespace ui
31
32 #endif // UI_BASE_PLATFORM_WINDOW_DEFAULTS_H_
OLDNEW
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/platform_window_defaults.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698