elm_atspi_bridge: remove all legacy usage from eo files 56/202056/2
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 21 Mar 2019 12:29:00 +0000 (21:29 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 22 Mar 2019 07:10:26 +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: I1913b42365336fab29b8d59aa992b26f22fe39b0

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

index 5f22529..ee24acb 100644 (file)
@@ -143,7 +143,6 @@ elm_public_eolian_files += \
        lib/elementary/efl_ui_progressbar_legacy_part.eo \
        lib/elementary/elm_multibuttonentry_part.eo \
        lib/elementary/elm_interface_scrollable.eo \
-       lib/elementary/elm_atspi_bridge.eo \
        lib/elementary/elm_atspi_ewk_wrapper.eo \
        lib/elementary/elm_atspi_proxy.eo \
        lib/elementary/efl_ui_image_zoomable_pan.eo \
@@ -266,6 +265,8 @@ 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_atspi_bridge_eo.c \
+lib/elementary/elm_atspi_bridge_eo.legacy.c \
 lib/elementary/elm_box_eo.c \
 lib/elementary/elm_box_eo.legacy.c \
 lib/elementary/elm_bubble_eo.c \
@@ -445,6 +446,7 @@ 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_atspi_bridge_eo.legacy.h \
 lib/elementary/elm_box_eo.legacy.h \
 lib/elementary/elm_bubble_eo.legacy.h \
 lib/elementary/elm_calendar_eo.legacy.h \
@@ -554,6 +556,7 @@ 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_atspi_bridge_eo.h \
 lib/elementary/elm_box_eo.h \
 lib/elementary/elm_bubble_eo.h \
 lib/elementary/elm_calendar_eo.h \
@@ -658,7 +661,6 @@ includesdir = $(includedir)/elementary-@VMAJ@
 includesunstable_HEADERS = \
        lib/elementary/efl_ui_animation_view_private.h \
        lib/elementary/elm_gen_common.h \
-       lib/elementary/elm_atspi_bridge.h \
        lib/elementary/efl_access_object.h \
        lib/elementary/efl_access_text.h \
        lib/elementary/efl_access_widget_action.h \
@@ -823,6 +825,7 @@ includesub_HEADERS = \
        lib/elementary/efl_ui_animation_view_eo.legacy.h \
        lib/elementary/elm_app.h \
        lib/elementary/elm_atspi_app_object.h \
+       lib/elementary/elm_atspi_bridge.h \
         lib/elementary/elm_atspi_proxy.h \
        lib/elementary/elm_authors.h \
        lib/elementary/elm_bg.h \
index 82beab4..f9d8861 100644 (file)
@@ -7527,4 +7527,4 @@ EAPI Eina_Bool elm_atspi_bridge_utils_is_screen_reader_enabled(void)
 }
 //
 
-#include "elm_atspi_bridge.eo.c"
+#include "elm_atspi_bridge_eo.c"
diff --git a/src/lib/elementary/elm_atspi_bridge.eo b/src/lib/elementary/elm_atspi_bridge.eo
deleted file mode 100644 (file)
index 766b6de..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-class Elm.Atspi.Bridge extends Efl.Object
-{
-   [[AT-SPI bridge class]]
-   eo_prefix: elm_obj_atspi_bridge;
-   event_prefix: elm_atspi_bridge;
-   methods {
-      @property connected {
-         get {
-            [[Indicate if connection with AT-SPI2 bus has been established.
-
-              \@internal
-            ]]
-            values {
-               ret: bool; [[$true if connection has been established, $false otherwise]]
-            }
-         }
-      }
-      //TIZEN_ONLY(20171108): make atspi_proxy work
-      @property root {
-         get {
-            [[Get root object of accessible object hierarchy
-
-              \@internal
-            ]]
-            values {
-               return: Efl.Object;
-            }
-         }
-      }
-      //
-   }
-   implements {
-      Efl.Object.constructor;
-      Efl.Object.destructor;
-   }
-   events {
-      connected: void; [[Connected with AT-SPI2 bus]]
-      disconnected: void; [[Disconnected from AT-SPI2 bus]]
-   }
-}
index db37c65..c1025b2 100644 (file)
@@ -1,8 +1,7 @@
-#ifdef EFL_BETA_API_SUPPORT
-#ifdef EFL_EO_API_SUPPORT
-#include "elm_atspi_bridge.eo.h"
-#endif
+#ifndef EFL_NOLEGACY_API_SUPPORT
+#include "elm_atspi_bridge_eo.legacy.h"
 #endif
+
 /**
  * @defgroup Elm_Atspi_Bridge Atspi Bridge
  * @ingroup elm_accessibility_group
diff --git a/src/lib/elementary/elm_atspi_bridge_eo.c b/src/lib/elementary/elm_atspi_bridge_eo.c
new file mode 100644 (file)
index 0000000..a6bb65c
--- /dev/null
@@ -0,0 +1,71 @@
+EWAPI const Efl_Event_Description _ELM_ATSPI_BRIDGE_EVENT_CONNECTED =
+   EFL_EVENT_DESCRIPTION("connected");
+EWAPI const Efl_Event_Description _ELM_ATSPI_BRIDGE_EVENT_DISCONNECTED =
+   EFL_EVENT_DESCRIPTION("disconnected");
+
+Eina_Bool _elm_atspi_bridge_connected_get(const Eo *obj, Elm_Atspi_Bridge_Data *pd);
+
+
+static Eina_Value
+__eolian_elm_atspi_bridge_connected_get_reflect(Eo *obj)
+{
+   Eina_Bool val = elm_obj_atspi_bridge_connected_get(obj);
+   return eina_value_bool_init(val);
+}
+
+EOAPI EFL_FUNC_BODY_CONST(elm_obj_atspi_bridge_connected_get, Eina_Bool, 0);
+
+Efl_Object *_elm_atspi_bridge_root_get(const Eo *obj, Elm_Atspi_Bridge_Data *pd);
+
+EOAPI EFL_FUNC_BODY_CONST(elm_obj_atspi_bridge_root_get, Efl_Object *, NULL);
+
+Efl_Object *_elm_atspi_bridge_efl_object_constructor(Eo *obj, Elm_Atspi_Bridge_Data *pd);
+
+
+void _elm_atspi_bridge_efl_object_destructor(Eo *obj, Elm_Atspi_Bridge_Data *pd);
+
+
+static Eina_Bool
+_elm_atspi_bridge_class_initializer(Efl_Class *klass)
+{
+   const Efl_Object_Ops *opsp = NULL;
+
+   const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
+
+#ifndef ELM_ATSPI_BRIDGE_EXTRA_OPS
+#define ELM_ATSPI_BRIDGE_EXTRA_OPS
+#endif
+
+   EFL_OPS_DEFINE(ops,
+      EFL_OBJECT_OP_FUNC(elm_obj_atspi_bridge_connected_get, _elm_atspi_bridge_connected_get),
+      EFL_OBJECT_OP_FUNC(elm_obj_atspi_bridge_root_get, _elm_atspi_bridge_root_get),
+      EFL_OBJECT_OP_FUNC(efl_constructor, _elm_atspi_bridge_efl_object_constructor),
+      EFL_OBJECT_OP_FUNC(efl_destructor, _elm_atspi_bridge_efl_object_destructor),
+      ELM_ATSPI_BRIDGE_EXTRA_OPS
+   );
+   opsp = &ops;
+
+   static const Efl_Object_Property_Reflection refl_table[] = {
+      {"connected", NULL, __eolian_elm_atspi_bridge_connected_get_reflect},
+   };
+   static const Efl_Object_Property_Reflection_Ops rops = {
+      refl_table, EINA_C_ARRAY_LENGTH(refl_table)
+   };
+   ropsp = &rops;
+
+   return efl_class_functions_set(klass, opsp, ropsp);
+}
+
+static const Efl_Class_Description _elm_atspi_bridge_class_desc = {
+   EO_VERSION,
+   "Elm.Atspi.Bridge",
+   EFL_CLASS_TYPE_REGULAR,
+   sizeof(Elm_Atspi_Bridge_Data),
+   _elm_atspi_bridge_class_initializer,
+   NULL,
+   NULL
+};
+
+EFL_DEFINE_CLASS(elm_atspi_bridge_class_get, &_elm_atspi_bridge_class_desc, EFL_OBJECT_CLASS, NULL);
+
+#include "elm_atspi_bridge_eo.legacy.c"
diff --git a/src/lib/elementary/elm_atspi_bridge_eo.h b/src/lib/elementary/elm_atspi_bridge_eo.h
new file mode 100644 (file)
index 0000000..d65e844
--- /dev/null
@@ -0,0 +1,63 @@
+#ifndef _ELM_ATSPI_BRIDGE_EO_H_
+#define _ELM_ATSPI_BRIDGE_EO_H_
+
+#ifndef _ELM_ATSPI_BRIDGE_EO_CLASS_TYPE
+#define _ELM_ATSPI_BRIDGE_EO_CLASS_TYPE
+
+typedef Eo Elm_Atspi_Bridge;
+
+#endif
+
+#ifndef _ELM_ATSPI_BRIDGE_EO_TYPES
+#define _ELM_ATSPI_BRIDGE_EO_TYPES
+
+
+#endif
+/** AT-SPI bridge class
+ *
+ * @ingroup Elm_Atspi_Bridge
+ */
+#define ELM_ATSPI_BRIDGE_CLASS elm_atspi_bridge_class_get()
+
+EWAPI const Efl_Class *elm_atspi_bridge_class_get(void);
+
+/**
+ * @brief Indicate if connection with AT-SPI2 bus has been established.
+ *
+ * @internal
+ *
+ * @param[in] obj The object.
+ *
+ * @return @c true if connection has been established, @c false otherwise
+ *
+ * @ingroup Elm_Atspi_Bridge
+ */
+EOAPI Eina_Bool elm_obj_atspi_bridge_connected_get(const Eo *obj);
+
+/**
+ * @brief Get root object of accessible object hierarchy
+ *
+ * @internal
+ * @param[in] obj The object.
+ *
+ * @ingroup Elm_Atspi_Bridge
+ */
+EOAPI Efl_Object *elm_obj_atspi_bridge_root_get(const Eo *obj);
+
+EWAPI extern const Efl_Event_Description _ELM_ATSPI_BRIDGE_EVENT_CONNECTED;
+
+/** Connected with AT-SPI2 bus
+ *
+ * @ingroup Elm_Atspi_Bridge
+ */
+#define ELM_ATSPI_BRIDGE_EVENT_CONNECTED (&(_ELM_ATSPI_BRIDGE_EVENT_CONNECTED))
+
+EWAPI extern const Efl_Event_Description _ELM_ATSPI_BRIDGE_EVENT_DISCONNECTED;
+
+/** Disconnected from AT-SPI2 bus
+ *
+ * @ingroup Elm_Atspi_Bridge
+ */
+#define ELM_ATSPI_BRIDGE_EVENT_DISCONNECTED (&(_ELM_ATSPI_BRIDGE_EVENT_DISCONNECTED))
+
+#endif
diff --git a/src/lib/elementary/elm_atspi_bridge_eo.legacy.c b/src/lib/elementary/elm_atspi_bridge_eo.legacy.c
new file mode 100644 (file)
index 0000000..a7e9a19
--- /dev/null
@@ -0,0 +1,12 @@
+
+EAPI Eina_Bool
+elm_atspi_bridge_connected_get(const Elm_Atspi_Bridge *obj)
+{
+   return elm_obj_atspi_bridge_connected_get(obj);
+}
+
+EAPI Efl_Object *
+elm_atspi_bridge_root_get(const Elm_Atspi_Bridge *obj)
+{
+   return elm_obj_atspi_bridge_root_get(obj);
+}
diff --git a/src/lib/elementary/elm_atspi_bridge_eo.legacy.h b/src/lib/elementary/elm_atspi_bridge_eo.legacy.h
new file mode 100644 (file)
index 0000000..ec6b3ce
--- /dev/null
@@ -0,0 +1,40 @@
+#ifndef _ELM_ATSPI_BRIDGE_EO_LEGACY_H_
+#define _ELM_ATSPI_BRIDGE_EO_LEGACY_H_
+
+#ifndef _ELM_ATSPI_BRIDGE_EO_CLASS_TYPE
+#define _ELM_ATSPI_BRIDGE_EO_CLASS_TYPE
+
+typedef Eo Elm_Atspi_Bridge;
+
+#endif
+
+#ifndef _ELM_ATSPI_BRIDGE_EO_TYPES
+#define _ELM_ATSPI_BRIDGE_EO_TYPES
+
+
+#endif
+
+/**
+ * @brief Indicate if connection with AT-SPI2 bus has been established.
+ *
+ * @internal
+ *
+ * @param[in] obj The object.
+ *
+ * @return @c true if connection has been established, @c false otherwise
+ *
+ * @ingroup Elm_Atspi_Bridge_Group
+ */
+EAPI Eina_Bool elm_atspi_bridge_connected_get(const Elm_Atspi_Bridge *obj);
+
+/**
+ * @brief Get root object of accessible object hierarchy
+ *
+ * @internal
+ * @param[in] obj The object.
+ *
+ * @ingroup Elm_Atspi_Bridge_Group
+ */
+EAPI Efl_Object *elm_atspi_bridge_root_get(const Elm_Atspi_Bridge *obj);
+
+#endif
index bde96b9..37d0a79 100644 (file)
@@ -71,6 +71,7 @@
 #include "elm_access_eo.h"
 #include "elm_actionslider_eo.h"
 #include "elm_atspi_app_object_eo.h"
+#include "elm_atspi_bridge_eo.h"
 #include "elm_box_eo.h"
 #include "elm_bubble_eo.h"
 #include "elm_calendar_eo.h"
index 2a9ac2f..0f94ff3 100644 (file)
@@ -172,7 +172,6 @@ pub_eo_files = [
   'efl_ui_progressbar_legacy_part.eo',
   'elm_multibuttonentry_part.eo',
   'elm_interface_scrollable.eo',
-  'elm_atspi_bridge.eo',
   'efl_ui_image_zoomable_pan.eo',
   'efl_ui_text_part.eo',
   'efl_ui_caching_factory.eo',
@@ -261,7 +260,6 @@ eolian_include_directories += ['-I', meson.current_source_dir()]
 
 elementary_headers_unstable = [
   'elm_gen_common.h',
-  'elm_atspi_bridge.h',
   'efl_access_object.h',
   'efl_access_text.h',
   'efl_access_widget_action.h',
@@ -417,6 +415,8 @@ elementary_pub_headers = [
   'elm_app.h',
   'elm_atspi_app_object.h',
   'elm_atspi_app_object_eo.legacy.h',
+  'elm_atspi_bridge.h',
+  'elm_atspi_bridge_eo.legacy.h',
   'elm_authors.h',
   'elm_bg.h',
   'elm_bg_legacy.h',