From bd7d21657b89ee4ac2b795b3b0fba236d78ec1b3 Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Wed, 8 Jul 2020 16:43:10 +0900 Subject: [PATCH] zxdg_shell_v6: Add ZxdgShellV6 skeleton class Change-Id: If899ec750b4ac6de84e504fff910680f23351761 --- src/DSWaylandServer/DSWaylandZxdgShellV6.cpp | 48 +++++++++++++++++++++++ src/DSWaylandServer/DSWaylandZxdgShellV6.h | 25 ++++++++++++ src/DSWaylandServer/DSWaylandZxdgShellV6Private.h | 34 ++++++++++++++++ src/meson.build | 3 ++ tests/DSWaylandZxdgShellV6-test.cpp | 21 ++++++++++ tests/meson.build | 1 + 6 files changed, 132 insertions(+) create mode 100644 src/DSWaylandServer/DSWaylandZxdgShellV6.cpp create mode 100644 src/DSWaylandServer/DSWaylandZxdgShellV6.h create mode 100644 src/DSWaylandServer/DSWaylandZxdgShellV6Private.h create mode 100644 tests/DSWaylandZxdgShellV6-test.cpp diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp b/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp new file mode 100644 index 0000000..3c2333c --- /dev/null +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp @@ -0,0 +1,48 @@ +#include "DSWaylandZxdgShellV6.h" +#include "DSWaylandZxdgShellV6Private.h" + + +namespace display_server +{ + +DSWaylandZxdgShellV6::DSWaylandZxdgShellV6() + : DSObject(), DS_INIT_PRIVATE_PTR(DSWaylandZxdgShellV6) +{ +} + +DSWaylandZxdgShellV6::~DSWaylandZxdgShellV6() +{ +} + + +DSWaylandZxdgShellV6Private::DSWaylandZxdgShellV6Private(DSWaylandZxdgShellV6 *p_ptr) + : DSObjectPrivate(p_ptr), __p_ptr(p_ptr) +{ +} + +DSWaylandZxdgShellV6Private::~DSWaylandZxdgShellV6Private() +{ +} + +void DSWaylandZxdgShellV6Private::zxdg_shell_v6_bind_resource(zxdg_shell_v6::Resource *resource) +{ +} +void DSWaylandZxdgShellV6Private::zxdg_shell_v6_destroy_resource(zxdg_shell_v6::Resource *resource) +{ +} + +void DSWaylandZxdgShellV6Private::zxdg_shell_v6_destroy(zxdg_shell_v6::Resource *resource) +{ +} +void DSWaylandZxdgShellV6Private::zxdg_shell_v6_create_positioner(zxdg_shell_v6::Resource *resource, uint32_t id) +{ +} +void DSWaylandZxdgShellV6Private::zxdg_shell_v6_get_xdg_surface(zxdg_shell_v6::Resource *resource, uint32_t id, struct ::wl_resource *surface) +{ +} +void DSWaylandZxdgShellV6Private::zxdg_shell_v6_pong(zxdg_shell_v6::Resource *resource, uint32_t serial) +{ +} + +} // namespace display_server + diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6.h b/src/DSWaylandServer/DSWaylandZxdgShellV6.h new file mode 100644 index 0000000..903dbf7 --- /dev/null +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6.h @@ -0,0 +1,25 @@ +#ifndef __DS_WAYLAND_ZXDG_SHELL_V6_H__ +#define __DS_WAYLAND_ZXDG_SHELL_V6_H__ + +#include "DSCore.h" +#include + +namespace display_server +{ + +class DSWaylandZxdgShellV6Private; + +class DSWaylandZxdgShellV6 : public DSObject +{ +DS_PIMPL_USE_PRIVATE(DSWaylandZxdgShellV6); + +public: + DSWaylandZxdgShellV6(); + virtual ~DSWaylandZxdgShellV6(); + +}; + +} + +#endif // __DS_WAYLAND_ZXDG_SHELL_V6_H__ + diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h b/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h new file mode 100644 index 0000000..6a773d5 --- /dev/null +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h @@ -0,0 +1,34 @@ +#ifndef __DS_WAYLAND_ZXDG_SHELL_V6_PRIVATE_H__ +#define __DS_WAYLAND_ZXDG_SHELL_V6_PRIVATE_H__ + +#include "dswayland-server-xdg-shell-unstable-v6.h" +#include "DSWaylandZxdgShellV6.h" + +namespace display_server +{ + +class DSWaylandZxdgShellV6Private : public DSObjectPrivate, public DSWaylandServer::zxdg_shell_v6 +{ +DS_PIMPL_USE_PUBLIC(DSWaylandZxdgShellV6); + +public: + DSWaylandZxdgShellV6Private() = delete; + DSWaylandZxdgShellV6Private(DSWaylandZxdgShellV6 *p_ptr); + ~DSWaylandZxdgShellV6Private() override; + +protected: + void zxdg_shell_v6_bind_resource(Resource *resource) override; + void zxdg_shell_v6_destroy_resource(Resource *resource) override; + + void zxdg_shell_v6_destroy(Resource *resource) override; + void zxdg_shell_v6_create_positioner(Resource *resource, uint32_t id) override; + void zxdg_shell_v6_get_xdg_surface(Resource *resource, uint32_t id, struct ::wl_resource *surface) override; + void zxdg_shell_v6_pong(Resource *resource, uint32_t serial) override; + +private: +}; + +} + +#endif // __DS_WAYLAND_ZXDG_SHELL_V6_PRIVATE_H__ + diff --git a/src/meson.build b/src/meson.build index 8c5ef20..6e0262d 100644 --- a/src/meson.build +++ b/src/meson.build @@ -77,6 +77,9 @@ libds_wayland_srcs = [ 'DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp', 'DSWaylandServer/DSWaylandTizenInputDeviceManager.h', 'DSWaylandServer/DSWaylandTizenInputDeviceManagerPrivate.h', + 'DSWaylandServer/DSWaylandZxdgShellV6.cpp', + 'DSWaylandServer/DSWaylandZxdgShellV6.h', + 'DSWaylandServer/DSWaylandZxdgShellV6Private.h', ] libds_srcs += libds_wayland_srcs diff --git a/tests/DSWaylandZxdgShellV6-test.cpp b/tests/DSWaylandZxdgShellV6-test.cpp new file mode 100644 index 0000000..0108f15 --- /dev/null +++ b/tests/DSWaylandZxdgShellV6-test.cpp @@ -0,0 +1,21 @@ +#include "libds-tests.h" +#include "DSWaylandZxdgShellV6.h" + +using namespace display_server; + +class DSWaylandZxdgShellV6Test : public ::testing::Test +{ +public: + void SetUp(void) override + {} + void TearDown(void) override + {} +}; + +TEST_F(DSWaylandZxdgShellV6Test, NewDSWaylandZxdgShellV6) +{ + DSWaylandZxdgShellV6 *zxdgShell = new DSWaylandZxdgShellV6; + delete zxdgShell; + EXPECT_TRUE(true); +} + diff --git a/tests/meson.build b/tests/meson.build index 08ee43a..e78fd70 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -20,6 +20,7 @@ libds_tests_srcs = [ 'DSWaylandSurface-test.cpp', 'DSWaylandTizenInputDeviceManager-test.cpp', 'DSWaylandTizenInputDevice-test.cpp', + 'DSWaylandZxdgShellV6-test.cpp', 'DSObject-test.cpp', 'DSEventLoop-test.cpp', ] -- 2.7.4