[atspi][naviframe] Set/Get accessible information using VIEW(item) object
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 13 Dec 2016 01:45:25 +0000 (10:45 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:08 +0000 (14:37 +0900)
Change-Id: I1f5a342d0195581880fe5b503ece8f158794685c

src/lib/elc_naviframe.c
src/lib/elm_naviframe.eo
src/lib/elm_naviframe_item.eo

index 7b80aae..53d21b2 100644 (file)
@@ -2320,5 +2320,71 @@ _elm_naviframe_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UN
    return &atspi_actions[0];
 }
 
+//TIZEN_ONLY(20161213) Using VIEW(item) for naviframe, naviframe item accessible information
+EOLIAN const char*
+_elm_naviframe_elm_interface_atspi_accessible_name_get(Eo *eo, Elm_Naviframe_Data *pd EINA_UNUSED)
+{
+   const char *ret = NULL;
+   Elm_Object_Item *eo_top_it = NULL;
+
+   eo_top_it = elm_naviframe_top_item_get(eo);
+   if (eo_top_it)
+     {
+        eo_do(eo_top_it, ret = elm_interface_atspi_accessible_name_get());
+     }
+
+   return ret;
+}
+
+EOLIAN const char*
+_elm_naviframe_elm_interface_atspi_accessible_description_get(Eo *eo, Elm_Naviframe_Data *pd EINA_UNUSED)
+{
+   const char *ret = NULL;
+   Elm_Object_Item *eo_top_it = NULL;
+
+   eo_top_it = elm_naviframe_top_item_get(eo);
+   if (eo_top_it)
+     {
+        eo_do(eo_top_it, ret = elm_interface_atspi_accessible_description_get());
+     }
+
+   return ret;
+}
+
+EOLIAN void
+_elm_naviframe_item_elm_interface_atspi_accessible_name_set(Eo *eo_item EINA_UNUSED, Elm_Naviframe_Item_Data* nit, const char *name)
+{
+   eo_do(VIEW(nit), elm_interface_atspi_accessible_name_set(name));
+}
+
+EOLIAN const char*
+_elm_naviframe_item_elm_interface_atspi_accessible_name_get(Eo *eo_item, Elm_Naviframe_Item_Data *nit)
+{
+   const char *ret = NULL;
+   eo_do_super(eo_item, ELM_NAVIFRAME_ITEM_CLASS, ret = elm_interface_atspi_accessible_name_get());
+   if (ret) return ret;
+
+   eo_do(VIEW(nit), ret = elm_interface_atspi_accessible_name_get());
+   return ret;
+}
+
+EOLIAN void
+_elm_naviframe_item_elm_interface_atspi_accessible_description_set(Eo *eo_item EINA_UNUSED, Elm_Naviframe_Item_Data* nit, const char *description)
+{
+   eo_do(VIEW(nit), elm_interface_atspi_accessible_description_set(description));
+}
+
+EOLIAN const char*
+_elm_naviframe_item_elm_interface_atspi_accessible_description_get(Eo *eo_item, Elm_Naviframe_Item_Data *nit)
+{
+   const char *ret = NULL;
+   eo_do_super(eo_item, ELM_NAVIFRAME_ITEM_CLASS, ret = elm_interface_atspi_accessible_description_get());
+   if (ret) return ret;
+
+   eo_do(VIEW(nit), ret = elm_interface_atspi_accessible_description_get());
+   return ret;
+}
+//
+
 #include "elm_naviframe_item.eo.c"
 #include "elm_naviframe.eo.c"
index 5d414a7..0fa4a1c 100644 (file)
@@ -235,6 +235,10 @@ class Elm.Naviframe (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
       Elm.Layout.signal_emit;
       Elm.Layout.sizing_eval;
       Elm_Interface_Atspi_Widget_Action.elm_actions.get;
+      //TIZEN_ONLY(20161213) Using VIEW(item) for naviframe, naviframe item accessible information
+      Elm_Interface_Atspi_Accessible.name.get;
+      Elm_Interface_Atspi_Accessible.description.get;
+      //
    }
    events {
       transition,finished;
index f63b4b7..d1c4dec 100644 (file)
@@ -111,5 +111,11 @@ class Elm.Naviframe_Item(Elm.Widget_Item)
         Elm.Widget_Item.part_content.get;
         Elm.Widget_Item.part_content.set;
         Elm.Widget_Item.part_content_unset;
+        //TIZEN_ONLY(20161213) Using VIEW(item) for naviframe, naviframe item accessible information
+        Elm_Interface_Atspi_Accessible.name.get;
+        Elm_Interface_Atspi_Accessible.name.set;
+        Elm_Interface_Atspi_Accessible.description.set;
+        Elm_Interface_Atspi_Accessible.description.get;
+        //
    }
 }