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 <linux/input.h> | 7 #include <linux/input.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
8 #include <wayland-server-core.h> | 10 #include <wayland-server-core.h> |
9 #include <wayland-server-protocol-core.h> | 11 #include <wayland-server-protocol-core.h> |
10 #include <xdg-shell-unstable-v5-server-protocol.h> | 12 #include <xdg-shell-unstable-v5-server-protocol.h> |
11 | 13 |
12 #include <algorithm> | 14 #include <algorithm> |
13 | 15 |
14 #include "base/bind.h" | 16 #include "base/bind.h" |
15 #include "base/cancelable_callback.h" | 17 #include "base/cancelable_callback.h" |
| 18 #include "base/macros.h" |
16 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
17 #include "components/exo/buffer.h" | 20 #include "components/exo/buffer.h" |
18 #include "components/exo/display.h" | 21 #include "components/exo/display.h" |
19 #include "components/exo/keyboard.h" | 22 #include "components/exo/keyboard.h" |
20 #include "components/exo/keyboard_delegate.h" | 23 #include "components/exo/keyboard_delegate.h" |
21 #include "components/exo/pointer.h" | 24 #include "components/exo/pointer.h" |
22 #include "components/exo/pointer_delegate.h" | 25 #include "components/exo/pointer_delegate.h" |
23 #include "components/exo/shared_memory.h" | 26 #include "components/exo/shared_memory.h" |
24 #include "components/exo/shell_surface.h" | 27 #include "components/exo/shell_surface.h" |
25 #include "components/exo/sub_surface.h" | 28 #include "components/exo/sub_surface.h" |
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1442 DCHECK(event_loop); | 1445 DCHECK(event_loop); |
1443 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); | 1446 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); |
1444 } | 1447 } |
1445 | 1448 |
1446 void Server::Flush() { | 1449 void Server::Flush() { |
1447 wl_display_flush_clients(wl_display_.get()); | 1450 wl_display_flush_clients(wl_display_.get()); |
1448 } | 1451 } |
1449 | 1452 |
1450 } // namespace wayland | 1453 } // namespace wayland |
1451 } // namespace exo | 1454 } // namespace exo |
OLD | NEW |