| 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 <wayland-server-core.h> | 7 #include <wayland-server-core.h> |
| 8 #include <wayland-server-protocol-core.h> | 8 #include <wayland-server-protocol-core.h> |
| 9 #include <xdg-shell-unstable-v5-server-protocol.h> | 9 #include <xdg-shell-unstable-v5-server-protocol.h> |
| 10 | 10 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 uint32_t serial) { | 751 uint32_t serial) { |
| 752 NOTIMPLEMENTED(); | 752 NOTIMPLEMENTED(); |
| 753 } | 753 } |
| 754 | 754 |
| 755 void xdg_surface_set_window_geometry(wl_client* client, | 755 void xdg_surface_set_window_geometry(wl_client* client, |
| 756 wl_resource* resource, | 756 wl_resource* resource, |
| 757 int32_t x, | 757 int32_t x, |
| 758 int32_t y, | 758 int32_t y, |
| 759 int32_t width, | 759 int32_t width, |
| 760 int32_t height) { | 760 int32_t height) { |
| 761 NOTIMPLEMENTED(); | 761 GetUserDataAs<ShellSurface>(resource) |
| 762 ->SetGeometry(gfx::Rect(x, y, width, height)); |
| 762 } | 763 } |
| 763 | 764 |
| 764 void xdg_surface_set_maximized(wl_client* client, wl_resource* resource) { | 765 void xdg_surface_set_maximized(wl_client* client, wl_resource* resource) { |
| 765 NOTIMPLEMENTED(); | 766 NOTIMPLEMENTED(); |
| 766 } | 767 } |
| 767 | 768 |
| 768 void xdg_surface_unset_maximized(wl_client* client, wl_resource* resource) { | 769 void xdg_surface_unset_maximized(wl_client* client, wl_resource* resource) { |
| 769 NOTIMPLEMENTED(); | 770 NOTIMPLEMENTED(); |
| 770 } | 771 } |
| 771 | 772 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 DCHECK(event_loop); | 929 DCHECK(event_loop); |
| 929 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); | 930 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); |
| 930 } | 931 } |
| 931 | 932 |
| 932 void Server::Flush() { | 933 void Server::Flush() { |
| 933 wl_display_flush_clients(wl_display_.get()); | 934 wl_display_flush_clients(wl_display_.get()); |
| 934 } | 935 } |
| 935 | 936 |
| 936 } // namespace wayland | 937 } // namespace wayland |
| 937 } // namespace exo | 938 } // namespace exo |
| OLD | NEW |