OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/exo/wayland/server.h" | 5 #include "components/exo/wayland/server.h" |
6 | 6 |
7 #include <grp.h> | 7 #include <grp.h> |
8 #include <linux/input.h> | 8 #include <linux/input.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 #include <viewporter-server-protocol.h> | 11 #include <viewporter-server-protocol.h> |
12 #include <wayland-server-core.h> | 12 #include <wayland-server-core.h> |
13 #include <wayland-server-protocol-core.h> | 13 #include <wayland-server-protocol-core.h> |
14 | 14 |
15 // Note: core wayland headers need to be included before protocol headers. | 15 // Note: core wayland headers need to be included before protocol headers. |
16 #include <alpha-compositing-unstable-v1-server-protocol.h> // NOLINT | 16 #include <alpha-compositing-unstable-v1-server-protocol.h> // NOLINT |
17 #include <remote-shell-unstable-v1-server-protocol.h> // NOLINT | 17 #include <remote-shell-unstable-v1-server-protocol.h> // NOLINT |
18 #include <scaler-server-protocol.h> // NOLINT | 18 #include <scaler-server-protocol.h> // NOLINT |
19 #include <secure-output-unstable-v1-server-protocol.h> // NOLINT | 19 #include <secure-output-unstable-v1-server-protocol.h> // NOLINT |
20 #include <xdg-shell-unstable-v5-server-protocol.h> // NOLINT | 20 #include <xdg-shell-unstable-v5-server-protocol.h> // NOLINT |
21 | 21 |
22 #include <algorithm> | 22 #include <algorithm> |
23 #include <iterator> | 23 #include <iterator> |
24 #include <string> | 24 #include <string> |
25 #include <utility> | 25 #include <utility> |
26 | 26 |
27 #include "ash/common/wm/wm_shell_window_ids.h" | 27 #include "ash/common/shell_window_ids.h" |
28 #include "ash/display/display_info.h" | 28 #include "ash/display/display_info.h" |
29 #include "ash/display/display_manager.h" | 29 #include "ash/display/display_manager.h" |
30 #include "ash/shell.h" | 30 #include "ash/shell.h" |
31 #include "ash/shell_observer.h" | 31 #include "ash/shell_observer.h" |
32 #include "base/bind.h" | 32 #include "base/bind.h" |
33 #include "base/cancelable_callback.h" | 33 #include "base/cancelable_callback.h" |
34 #include "base/files/file_path.h" | 34 #include "base/files/file_path.h" |
35 #include "base/macros.h" | 35 #include "base/macros.h" |
36 #include "base/memory/free_deleter.h" | 36 #include "base/memory/free_deleter.h" |
37 #include "base/memory/ptr_util.h" | 37 #include "base/memory/ptr_util.h" |
(...skipping 2569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2607 DCHECK(event_loop); | 2607 DCHECK(event_loop); |
2608 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); | 2608 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); |
2609 } | 2609 } |
2610 | 2610 |
2611 void Server::Flush() { | 2611 void Server::Flush() { |
2612 wl_display_flush_clients(wl_display_.get()); | 2612 wl_display_flush_clients(wl_display_.get()); |
2613 } | 2613 } |
2614 | 2614 |
2615 } // namespace wayland | 2615 } // namespace wayland |
2616 } // namespace exo | 2616 } // namespace exo |
OLD | NEW |