| 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 <alpha-compositing-unstable-v1-server-protocol.h> | 7 #include <alpha-compositing-unstable-v1-server-protocol.h> |
| 8 #include <gaming-input-unstable-v1-server-protocol.h> | 8 #include <gaming-input-unstable-v1-server-protocol.h> |
| 9 #include <grp.h> | 9 #include <grp.h> |
| 10 #include <keyboard-configuration-unstable-v1-server-protocol.h> | 10 #include <keyboard-configuration-unstable-v1-server-protocol.h> |
| (...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1972 gfx::Rect content_bounds(x, y, width, height); | 1972 gfx::Rect content_bounds(x, y, width, height); |
| 1973 shell_surface->SetRectangularSurfaceShadow(content_bounds); | 1973 shell_surface->SetRectangularSurfaceShadow(content_bounds); |
| 1974 } | 1974 } |
| 1975 | 1975 |
| 1976 void remote_surface_ack_configure(wl_client* client, | 1976 void remote_surface_ack_configure(wl_client* client, |
| 1977 wl_resource* resource, | 1977 wl_resource* resource, |
| 1978 uint32_t serial) { | 1978 uint32_t serial) { |
| 1979 NOTIMPLEMENTED(); | 1979 NOTIMPLEMENTED(); |
| 1980 } | 1980 } |
| 1981 | 1981 |
| 1982 void remote_surface_set_moving(wl_client* client, wl_resource* resource) { | 1982 void remote_surface_move(wl_client* client, wl_resource* resource) { |
| 1983 NOTIMPLEMENTED(); | 1983 NOTIMPLEMENTED(); |
| 1984 } | 1984 } |
| 1985 | 1985 |
| 1986 void remote_surface_unset_moving(wl_client* client, wl_resource* resource) { | |
| 1987 NOTIMPLEMENTED(); | |
| 1988 } | |
| 1989 | |
| 1990 const struct zcr_remote_surface_v1_interface remote_surface_implementation = { | 1986 const struct zcr_remote_surface_v1_interface remote_surface_implementation = { |
| 1991 remote_surface_destroy, | 1987 remote_surface_destroy, |
| 1992 remote_surface_set_app_id, | 1988 remote_surface_set_app_id, |
| 1993 remote_surface_set_window_geometry, | 1989 remote_surface_set_window_geometry, |
| 1994 remote_surface_set_scale, | 1990 remote_surface_set_scale, |
| 1995 remote_surface_set_rectangular_shadow_DEPRECATED, | 1991 remote_surface_set_rectangular_shadow_DEPRECATED, |
| 1996 remote_surface_set_rectangular_shadow_background_opacity, | 1992 remote_surface_set_rectangular_shadow_background_opacity, |
| 1997 remote_surface_set_title, | 1993 remote_surface_set_title, |
| 1998 remote_surface_set_top_inset, | 1994 remote_surface_set_top_inset, |
| 1999 remote_surface_activate, | 1995 remote_surface_activate, |
| 2000 remote_surface_maximize, | 1996 remote_surface_maximize, |
| 2001 remote_surface_minimize, | 1997 remote_surface_minimize, |
| 2002 remote_surface_restore, | 1998 remote_surface_restore, |
| 2003 remote_surface_fullscreen, | 1999 remote_surface_fullscreen, |
| 2004 remote_surface_unfullscreen, | 2000 remote_surface_unfullscreen, |
| 2005 remote_surface_pin, | 2001 remote_surface_pin, |
| 2006 remote_surface_unpin, | 2002 remote_surface_unpin, |
| 2007 remote_surface_set_system_modal, | 2003 remote_surface_set_system_modal, |
| 2008 remote_surface_unset_system_modal, | 2004 remote_surface_unset_system_modal, |
| 2009 remote_surface_set_rectangular_surface_shadow, | 2005 remote_surface_set_rectangular_surface_shadow, |
| 2010 remote_surface_ack_configure, | 2006 remote_surface_ack_configure, |
| 2011 remote_surface_set_moving, | 2007 remote_surface_move}; |
| 2012 remote_surface_unset_moving}; | |
| 2013 | 2008 |
| 2014 //////////////////////////////////////////////////////////////////////////////// | 2009 //////////////////////////////////////////////////////////////////////////////// |
| 2015 // notification_surface_interface: | 2010 // notification_surface_interface: |
| 2016 | 2011 |
| 2017 void notification_surface_destroy(wl_client* client, wl_resource* resource) { | 2012 void notification_surface_destroy(wl_client* client, wl_resource* resource) { |
| 2018 wl_resource_destroy(resource); | 2013 wl_resource_destroy(resource); |
| 2019 } | 2014 } |
| 2020 | 2015 |
| 2021 const struct zcr_notification_surface_v1_interface | 2016 const struct zcr_notification_surface_v1_interface |
| 2022 notification_surface_implementation = {notification_surface_destroy}; | 2017 notification_surface_implementation = {notification_surface_destroy}; |
| (...skipping 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3738 DCHECK(event_loop); | 3733 DCHECK(event_loop); |
| 3739 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); | 3734 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); |
| 3740 } | 3735 } |
| 3741 | 3736 |
| 3742 void Server::Flush() { | 3737 void Server::Flush() { |
| 3743 wl_display_flush_clients(wl_display_.get()); | 3738 wl_display_flush_clients(wl_display_.get()); |
| 3744 } | 3739 } |
| 3745 | 3740 |
| 3746 } // namespace wayland | 3741 } // namespace wayland |
| 3747 } // namespace exo | 3742 } // namespace exo |
| OLD | NEW |