zxdg_popup_v6: Add ZxdgPopupV6 skeleton class 99/241599/1
authorJunseok, Kim <juns.kim@samsung.com>
Wed, 8 Jul 2020 09:17:39 +0000 (18:17 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:46:17 +0000 (18:46 +0900)
Change-Id: I8199bffe18249fd838b5ce5e56b444da9972550d
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
src/DSWaylandServer/DSWaylandZxdgPopupV6.cpp [new file with mode: 0644]
src/DSWaylandServer/DSWaylandZxdgPopupV6.h [new file with mode: 0644]
src/DSWaylandServer/DSWaylandZxdgPopupV6Private.h [new file with mode: 0644]
src/meson.build
tests/DSWaylandZxdgPopupV6-test.cpp [new file with mode: 0644]
tests/meson.build

diff --git a/src/DSWaylandServer/DSWaylandZxdgPopupV6.cpp b/src/DSWaylandServer/DSWaylandZxdgPopupV6.cpp
new file mode 100644 (file)
index 0000000..b6eed6d
--- /dev/null
@@ -0,0 +1,42 @@
+#include "DSWaylandZxdgPopupV6.h"
+#include "DSWaylandZxdgPopupV6Private.h"
+
+
+namespace display_server
+{
+
+DSWaylandZxdgPopupV6::DSWaylandZxdgPopupV6()
+       : DSObject(), DS_INIT_PRIVATE_PTR(DSWaylandZxdgPopupV6)
+{
+}
+
+DSWaylandZxdgPopupV6::~DSWaylandZxdgPopupV6()
+{
+}
+
+
+DSWaylandZxdgPopupV6Private::DSWaylandZxdgPopupV6Private(DSWaylandZxdgPopupV6 *p_ptr)
+       : DSObjectPrivate(p_ptr), __p_ptr(p_ptr)
+{
+}
+
+DSWaylandZxdgPopupV6Private::~DSWaylandZxdgPopupV6Private()
+{
+}
+
+void DSWaylandZxdgPopupV6Private::zxdg_popup_v6_bind_resource(zxdg_popup_v6::Resource *resource)
+{
+}
+void DSWaylandZxdgPopupV6Private::zxdg_popup_v6_destroy_resource(zxdg_popup_v6::Resource *resource)
+{
+}
+
+void DSWaylandZxdgPopupV6Private::zxdg_popup_v6_destroy(zxdg_popup_v6::Resource *resource)
+{
+}
+void DSWaylandZxdgPopupV6Private::zxdg_popup_v6_grab(zxdg_popup_v6::Resource *resource, struct ::wl_resource *seat, uint32_t serial)
+{
+}
+
+} // namespace display_server
+
diff --git a/src/DSWaylandServer/DSWaylandZxdgPopupV6.h b/src/DSWaylandServer/DSWaylandZxdgPopupV6.h
new file mode 100644 (file)
index 0000000..874a7fe
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef __DS_WAYLAND_ZXDG_POPUP_V6_H__
+#define __DS_WAYLAND_ZXDG_POPUP_V6_H__
+
+#include "DSCore.h"
+#include <DSObject.h>
+
+namespace display_server
+{
+
+class DSWaylandZxdgPopupV6Private;
+
+class DSWaylandZxdgPopupV6 : public DSObject
+{
+DS_PIMPL_USE_PRIVATE(DSWaylandZxdgPopupV6);
+
+public:
+       DSWaylandZxdgPopupV6();
+       virtual ~DSWaylandZxdgPopupV6();
+};
+
+}
+
+#endif // __DS_WAYLAND_ZXDG_POPUP_V6_H__
+
diff --git a/src/DSWaylandServer/DSWaylandZxdgPopupV6Private.h b/src/DSWaylandServer/DSWaylandZxdgPopupV6Private.h
new file mode 100644 (file)
index 0000000..9dbdfca
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef __DS_WAYLAND_ZXDG_POPUP_V6_PRIVATE_H__
+#define __DS_WAYLAND_ZXDG_POPUP_V6_PRIVATE_H__
+
+#include "dswayland-server-xdg-shell-unstable-v6.h"
+#include "DSWaylandZxdgPopupV6.h"
+
+namespace display_server
+{
+
+class DSWaylandZxdgPopupV6Private : public DSObjectPrivate, public DSWaylandServer::zxdg_popup_v6
+{
+DS_PIMPL_USE_PUBLIC(DSWaylandZxdgPopupV6);
+
+public:
+        DSWaylandZxdgPopupV6Private() = delete;
+        DSWaylandZxdgPopupV6Private(DSWaylandZxdgPopupV6 *p_ptr);
+        ~DSWaylandZxdgPopupV6Private() override;
+
+protected:
+        void zxdg_popup_v6_bind_resource(zxdg_popup_v6::Resource *resource) override;
+        void zxdg_popup_v6_destroy_resource(zxdg_popup_v6::Resource *resource) override;
+
+        void zxdg_popup_v6_destroy(zxdg_popup_v6::Resource *resource) override;
+        void zxdg_popup_v6_grab(zxdg_popup_v6::Resource *resource, struct ::wl_resource *seat, uint32_t serial) override;
+
+private:
+};
+
+}
+
+#endif // __DS_WAYLAND_ZXDG_POPUP_V6_PRIVATE_H__
+
index 276db99..f0370b7 100644 (file)
@@ -89,6 +89,9 @@ libds_wayland_srcs = [
        'DSWaylandServer/DSWaylandZxdgToplevelV6.cpp',
        'DSWaylandServer/DSWaylandZxdgToplevelV6.h',
        'DSWaylandServer/DSWaylandZxdgToplevelV6Private.h',
+       'DSWaylandServer/DSWaylandZxdgPopupV6.cpp',
+       'DSWaylandServer/DSWaylandZxdgPopupV6.h',
+       'DSWaylandServer/DSWaylandZxdgPopupV6Private.h',
        ]
 
 libds_srcs += libds_wayland_srcs
diff --git a/tests/DSWaylandZxdgPopupV6-test.cpp b/tests/DSWaylandZxdgPopupV6-test.cpp
new file mode 100644 (file)
index 0000000..49b7d14
--- /dev/null
@@ -0,0 +1,21 @@
+#include "libds-tests.h"
+#include "DSWaylandZxdgPopupV6.h"
+
+using namespace display_server;
+
+class DSWaylandZxdgPopupV6Test : public ::testing::Test
+{
+public:
+       void SetUp(void) override
+       {}
+       void TearDown(void) override
+       {}
+};
+
+TEST_F(DSWaylandZxdgPopupV6Test, NewDSWaylandZxdgPopupV6)
+{
+       DSWaylandZxdgPopupV6 *zxdgPopup = new DSWaylandZxdgPopupV6;
+       delete zxdgPopup;
+       EXPECT_TRUE(true);
+}
+
index 747067a..06296a3 100644 (file)
@@ -24,6 +24,7 @@ libds_tests_srcs = [
        'DSWaylandZxdgPositionerV6-test.cpp',
        'DSWaylandZxdgSurfaceV6-test.cpp',
        'DSWaylandZxdgToplevelV6-test.cpp',
+       'DSWaylandZxdgPopupV6-test.cpp',
        'DSObject-test.cpp',
        'DSEventLoop-test.cpp',
        ]