exo: Add aura-shell interface

Desktop / Chromium - David Reveman [chromium.org] - 5 September 2017 23:23 EDT

This adds a first version of aura-shell and removes the wl_shell hacks that exists in wayland bindings in favor of using this protocol instead for compositor side window decorations.

It also updates wayland clients to use this new interface.

Bug: 631961 Test: wayland_*_client Change-Id: If00a53ae270be1643daa8eeca378686365ba3fa0 Reviewed-on: https://chromium-review.googlesource.com/648548

93f67c0 exo: Add aura-shell interface.
components/exo/shell_surface.cc | 32 +--
components/exo/shell_surface.h | 4 +-
components/exo/shell_surface_unittest.cc | 10 +-
components/exo/sub_surface.h | 1 +
components/exo/surface.cc | 7 +
components/exo/surface.h | 5 +-
components/exo/surface_delegate.h | 6 +
components/exo/surface_tree_host.h | 1 +
components/exo/wayland/BUILD.gn | 23 +++
.../exo/wayland/aura-shell-client-protocol.h | 224 +++++++++++++++++++++
components/exo/wayland/aura-shell-protocol.c | 58 ++++++
.../exo/wayland/aura-shell-server-protocol.h | 175 ++++++++++++++++
components/exo/wayland/clients/client_base.cc | 19 ++
components/exo/wayland/clients/client_base.h | 1 +
components/exo/wayland/clients/client_helper.cc | 2 +
components/exo/wayland/clients/client_helper.h | 3 +
components/exo/wayland/protocol/aura-shell.xml | 78 +++++++
components/exo/wayland/server.cc | 119 +++++++++--
18 files changed, 732 insertions(+), 36 deletions(-)

Upstream: git.chromium.org


  • Share