| 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 <scaler-server-protocol.h> | 9 #include <scaler-server-protocol.h> |
| 10 #include <secure-output-unstable-v1-server-protocol.h> | 10 #include <secure-output-unstable-v1-server-protocol.h> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "ui/views/widget/widget_observer.h" | 53 #include "ui/views/widget/widget_observer.h" |
| 54 | 54 |
| 55 #if defined(USE_OZONE) | 55 #if defined(USE_OZONE) |
| 56 #include <drm_fourcc.h> | 56 #include <drm_fourcc.h> |
| 57 #include <linux-dmabuf-unstable-v1-server-protocol.h> | 57 #include <linux-dmabuf-unstable-v1-server-protocol.h> |
| 58 #include <wayland-drm-server-protocol.h> | 58 #include <wayland-drm-server-protocol.h> |
| 59 #endif | 59 #endif |
| 60 | 60 |
| 61 #if defined(USE_XKBCOMMON) | 61 #if defined(USE_XKBCOMMON) |
| 62 #include <xkbcommon/xkbcommon.h> | 62 #include <xkbcommon/xkbcommon.h> |
| 63 #include "ui/events/keycodes/scoped_xkb.h" | 63 #include "ui/events/keycodes/scoped_xkb.h" // nogncheck |
| 64 #endif | 64 #endif |
| 65 | 65 |
| 66 DECLARE_WINDOW_PROPERTY_TYPE(wl_resource*); | 66 DECLARE_WINDOW_PROPERTY_TYPE(wl_resource*); |
| 67 | 67 |
| 68 namespace exo { | 68 namespace exo { |
| 69 namespace wayland { | 69 namespace wayland { |
| 70 namespace { | 70 namespace { |
| 71 | 71 |
| 72 // Default wayland socket name. | 72 // Default wayland socket name. |
| 73 const base::FilePath::CharType kSocketName[] = FILE_PATH_LITERAL("wayland-0"); | 73 const base::FilePath::CharType kSocketName[] = FILE_PATH_LITERAL("wayland-0"); |
| (...skipping 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2141 DCHECK(event_loop); | 2141 DCHECK(event_loop); |
| 2142 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); | 2142 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); |
| 2143 } | 2143 } |
| 2144 | 2144 |
| 2145 void Server::Flush() { | 2145 void Server::Flush() { |
| 2146 wl_display_flush_clients(wl_display_.get()); | 2146 wl_display_flush_clients(wl_display_.get()); |
| 2147 } | 2147 } |
| 2148 | 2148 |
| 2149 } // namespace wayland | 2149 } // namespace wayland |
| 2150 } // namespace exo | 2150 } // namespace exo |
| OLD | NEW |