elm_atspi_app_object: remove all legacy usage from eo files 55/202055/2
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 21 Mar 2019 12:06:09 +0000 (21:06 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 22 Mar 2019 07:10:04 +0000 (07:10 +0000)
this takes the current generated output from eolian for legacy code in
efl and adds it to the tree, then removes legacy references from the
corresponding eo files. in the case where the entire eo file was for
a legacy object, that eo file has been removed from the tree

ref T7724

Change-Id: If3f1819435d4d8dced717b8634e11d026164905f

src/Makefile_Elementary.am
src/lib/elementary/elm_atspi_app_object.c
src/lib/elementary/elm_atspi_app_object.eo [deleted file]
src/lib/elementary/elm_atspi_app_object.h
src/lib/elementary/elm_atspi_app_object_eo.c [new file with mode: 0644]
src/lib/elementary/elm_atspi_app_object_eo.h [new file with mode: 0644]
src/lib/elementary/elm_atspi_app_object_eo.legacy.h [new file with mode: 0644]
src/lib/elementary/elm_priv.h
src/lib/elementary/meson.build

index 46a274b..5f22529 100644 (file)
@@ -145,7 +145,6 @@ elm_public_eolian_files += \
        lib/elementary/elm_interface_scrollable.eo \
        lib/elementary/elm_atspi_bridge.eo \
        lib/elementary/elm_atspi_ewk_wrapper.eo \
-       lib/elementary/elm_atspi_app_object.eo \
        lib/elementary/elm_atspi_proxy.eo \
        lib/elementary/efl_ui_image_zoomable_pan.eo \
        $(NULL)
@@ -266,6 +265,7 @@ lib/elementary/elm_access_eo.c \
 lib/elementary/elm_access_eo.legacy.c \
 lib/elementary/elm_actionslider_eo.c \
 lib/elementary/elm_actionslider_eo.legacy.c \
+lib/elementary/elm_atspi_app_object_eo.c \
 lib/elementary/elm_box_eo.c \
 lib/elementary/elm_box_eo.legacy.c \
 lib/elementary/elm_bubble_eo.c \
@@ -444,6 +444,7 @@ lib/elementary/efl_ui_win_legacy_eo.legacy.h \
 lib/elementary/efl_ui_win_socket_legacy_eo.legacy.h \
 lib/elementary/elm_access_eo.legacy.h \
 lib/elementary/elm_actionslider_eo.legacy.h \
+lib/elementary/elm_atspi_app_object_eo.legacy.h \
 lib/elementary/elm_box_eo.legacy.h \
 lib/elementary/elm_bubble_eo.legacy.h \
 lib/elementary/elm_calendar_eo.legacy.h \
@@ -552,6 +553,7 @@ lib/elementary/efl_ui_win_legacy_eo.h \
 lib/elementary/efl_ui_win_socket_legacy_eo.h \
 lib/elementary/elm_access_eo.h \
 lib/elementary/elm_actionslider_eo.h \
+lib/elementary/elm_atspi_app_object_eo.h \
 lib/elementary/elm_box_eo.h \
 lib/elementary/elm_bubble_eo.h \
 lib/elementary/elm_calendar_eo.h \
index 675ab21..c71064f 100644 (file)
@@ -82,4 +82,4 @@ _elm_atspi_app_object_efl_access_object_role_get(const Eo *obj EINA_UNUSED, Elm_
    return EFL_ACCESS_ROLE_APPLICATION;
 }
 
-#include "elm_atspi_app_object.eo.c"
+#include "elm_atspi_app_object_eo.c"
diff --git a/src/lib/elementary/elm_atspi_app_object.eo b/src/lib/elementary/elm_atspi_app_object.eo
deleted file mode 100644 (file)
index e63e233..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-class Elm.Atspi.App.Object extends Efl.Object implements Efl.Access.Object
-{
-   [[AT-SPI application object class]]
-   data: Elm_Atspi_App_Object_Data;
-   implements {
-      Efl.Object.destructor;
-      Efl.Access.Object.i18n_name { get; }
-      Efl.Access.Object.description { get; set; }
-      Efl.Access.Object.role { get; }
-      Efl.Access.Object.access_children { get; }
-   }
-}
index 3d66198..e67e552 100644 (file)
@@ -1,3 +1,3 @@
-#ifdef EFL_EO_API_SUPPORT
-#include "elm_atspi_app_object.eo.h"
+#ifndef EFL_NOLEGACY_API_SUPPORT
+#include "elm_atspi_app_object_eo.legacy.h"
 #endif
diff --git a/src/lib/elementary/elm_atspi_app_object_eo.c b/src/lib/elementary/elm_atspi_app_object_eo.c
new file mode 100644 (file)
index 0000000..2158c09
--- /dev/null
@@ -0,0 +1,55 @@
+
+void _elm_atspi_app_object_efl_object_destructor(Eo *obj, Elm_Atspi_App_Object_Data *pd);
+
+
+const char *_elm_atspi_app_object_efl_access_object_i18n_name_get(const Eo *obj, Elm_Atspi_App_Object_Data *pd);
+
+
+void _elm_atspi_app_object_efl_access_object_description_set(Eo *obj, Elm_Atspi_App_Object_Data *pd, const char *description);
+
+
+const char *_elm_atspi_app_object_efl_access_object_description_get(const Eo *obj, Elm_Atspi_App_Object_Data *pd);
+
+
+Efl_Access_Role _elm_atspi_app_object_efl_access_object_role_get(const Eo *obj, Elm_Atspi_App_Object_Data *pd);
+
+
+Eina_List *_elm_atspi_app_object_efl_access_object_access_children_get(const Eo *obj, Elm_Atspi_App_Object_Data *pd);
+
+
+static Eina_Bool
+_elm_atspi_app_object_class_initializer(Efl_Class *klass)
+{
+   const Efl_Object_Ops *opsp = NULL;
+
+   const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
+
+#ifndef ELM_ATSPI_APP_OBJECT_EXTRA_OPS
+#define ELM_ATSPI_APP_OBJECT_EXTRA_OPS
+#endif
+
+   EFL_OPS_DEFINE(ops,
+      EFL_OBJECT_OP_FUNC(efl_destructor, _elm_atspi_app_object_efl_object_destructor),
+      EFL_OBJECT_OP_FUNC(efl_access_object_i18n_name_get, _elm_atspi_app_object_efl_access_object_i18n_name_get),
+      EFL_OBJECT_OP_FUNC(efl_access_object_description_set, _elm_atspi_app_object_efl_access_object_description_set),
+      EFL_OBJECT_OP_FUNC(efl_access_object_description_get, _elm_atspi_app_object_efl_access_object_description_get),
+      EFL_OBJECT_OP_FUNC(efl_access_object_role_get, _elm_atspi_app_object_efl_access_object_role_get),
+      EFL_OBJECT_OP_FUNC(efl_access_object_access_children_get, _elm_atspi_app_object_efl_access_object_access_children_get),
+      ELM_ATSPI_APP_OBJECT_EXTRA_OPS
+   );
+   opsp = &ops;
+
+   return efl_class_functions_set(klass, opsp, ropsp);
+}
+
+static const Efl_Class_Description _elm_atspi_app_object_class_desc = {
+   EO_VERSION,
+   "Elm.Atspi.App.Object",
+   EFL_CLASS_TYPE_REGULAR,
+   sizeof(Elm_Atspi_App_Object_Data),
+   _elm_atspi_app_object_class_initializer,
+   NULL,
+   NULL
+};
+
+EFL_DEFINE_CLASS(elm_atspi_app_object_class_get, &_elm_atspi_app_object_class_desc, EFL_OBJECT_CLASS, EFL_ACCESS_OBJECT_MIXIN, NULL);
diff --git a/src/lib/elementary/elm_atspi_app_object_eo.h b/src/lib/elementary/elm_atspi_app_object_eo.h
new file mode 100644 (file)
index 0000000..0dff0ba
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_H_
+#define _ELM_ATSPI_APP_OBJECT_EO_H_
+
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_CLASS_TYPE
+#define _ELM_ATSPI_APP_OBJECT_EO_CLASS_TYPE
+
+typedef Eo Elm_Atspi_App_Object;
+
+#endif
+
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_TYPES
+#define _ELM_ATSPI_APP_OBJECT_EO_TYPES
+
+
+#endif
+/** AT-SPI application object class
+ *
+ * @ingroup Elm_Atspi_App_Object
+ */
+#define ELM_ATSPI_APP_OBJECT_CLASS elm_atspi_app_object_class_get()
+
+EWAPI const Efl_Class *elm_atspi_app_object_class_get(void);
+
+#endif
diff --git a/src/lib/elementary/elm_atspi_app_object_eo.legacy.h b/src/lib/elementary/elm_atspi_app_object_eo.legacy.h
new file mode 100644 (file)
index 0000000..993c311
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_LEGACY_H_
+#define _ELM_ATSPI_APP_OBJECT_EO_LEGACY_H_
+
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_CLASS_TYPE
+#define _ELM_ATSPI_APP_OBJECT_EO_CLASS_TYPE
+
+typedef Eo Elm_Atspi_App_Object;
+
+#endif
+
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_TYPES
+#define _ELM_ATSPI_APP_OBJECT_EO_TYPES
+
+
+#endif
+
+#endif
index 1fbb55e..bde96b9 100644 (file)
@@ -70,6 +70,7 @@
 # include "elm_code_private.h"
 #include "elm_access_eo.h"
 #include "elm_actionslider_eo.h"
+#include "elm_atspi_app_object_eo.h"
 #include "elm_box_eo.h"
 #include "elm_bubble_eo.h"
 #include "elm_calendar_eo.h"
index a18f4d5..2a9ac2f 100644 (file)
@@ -173,7 +173,6 @@ pub_eo_files = [
   'elm_multibuttonentry_part.eo',
   'elm_interface_scrollable.eo',
   'elm_atspi_bridge.eo',
-  'elm_atspi_app_object.eo',
   'efl_ui_image_zoomable_pan.eo',
   'efl_ui_text_part.eo',
   'efl_ui_caching_factory.eo',
@@ -417,6 +416,7 @@ elementary_pub_headers = [
   'elm_actionslider_legacy.h',
   'elm_app.h',
   'elm_atspi_app_object.h',
+  'elm_atspi_app_object_eo.legacy.h',
   'elm_authors.h',
   'elm_bg.h',
   'elm_bg_legacy.h',