zxdg_shell.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_EXO_WAYLAND_ZXDG_SHELL_H_
  5. #define COMPONENTS_EXO_WAYLAND_ZXDG_SHELL_H_
  6. #include <stdint.h>
  7. struct wl_client;
  8. namespace exo {
  9. class Display;
  10. namespace wayland {
  11. class SerialTracker;
  12. struct WaylandZxdgShell {
  13. WaylandZxdgShell(Display* display, SerialTracker* serial_tracker)
  14. : display(display), serial_tracker(serial_tracker) {}
  15. WaylandZxdgShell(const WaylandZxdgShell&) = delete;
  16. WaylandZxdgShell& operator=(const WaylandZxdgShell&) = delete;
  17. // Owned by WaylandServerController, which always outlives zxdg_shell.
  18. Display* const display;
  19. // Owned by Server, which always outlives zxdg_shell.
  20. SerialTracker* const serial_tracker;
  21. };
  22. void bind_zxdg_shell_v6(wl_client* client,
  23. void* data,
  24. uint32_t version,
  25. uint32_t id);
  26. } // namespace wayland
  27. } // namespace exo
  28. #endif // COMPONENTS_EXO_WAYLAND_ZXDG_SHELL_H_