OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h" | 5 #include "ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <X11/keysym.h> |
7 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
8 #include <X11/keysym.h> | |
9 #include <utility> | 10 #include <utility> |
10 | 11 |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/macros.h" |
12 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
13 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
14 #include "ui/aura/client/capture_client.h" | 16 #include "ui/aura/client/capture_client.h" |
15 #include "ui/aura/env.h" | 17 #include "ui/aura/env.h" |
16 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
17 #include "ui/aura/window_event_dispatcher.h" | 19 #include "ui/aura/window_event_dispatcher.h" |
18 #include "ui/aura/window_tree_host.h" | 20 #include "ui/aura/window_tree_host.h" |
19 #include "ui/base/x/x11_util.h" | 21 #include "ui/base/x/x11_util.h" |
20 #include "ui/events/event.h" | 22 #include "ui/events/event.h" |
21 #include "ui/events/event_utils.h" | 23 #include "ui/events/event_utils.h" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 DefaultRootWindow(display), | 269 DefaultRootWindow(display), |
268 -100, -100, 10, 10, | 270 -100, -100, 10, 10, |
269 0, CopyFromParent, InputOnly, CopyFromParent, | 271 0, CopyFromParent, InputOnly, CopyFromParent, |
270 attribute_mask, &swa); | 272 attribute_mask, &swa); |
271 XMapRaised(display, window); | 273 XMapRaised(display, window); |
272 ui::X11EventSource::GetInstance()->BlockUntilWindowMapped(window); | 274 ui::X11EventSource::GetInstance()->BlockUntilWindowMapped(window); |
273 return window; | 275 return window; |
274 } | 276 } |
275 | 277 |
276 } // namespace views | 278 } // namespace views |
OLD | NEW |