[atspi][elm_index] Added highlighted state for index if highlight frame is present... 74/91274/2
authorPrasoon Singh <prasoon.16@samsung.com>
Thu, 6 Oct 2016 12:23:49 +0000 (17:53 +0530)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 7 Oct 2016 12:57:55 +0000 (05:57 -0700)
Change-Id: If1e23157a36840cd49bcaeaf24a39222195999f3

src/lib/elm_index.c
src/lib/elm_index.eo

index efb6bac..d937c6e 100644 (file)
@@ -1843,6 +1843,20 @@ _elm_index_elm_interface_atspi_component_highlight_clear(Eo *obj EINA_UNUSED, El
 }
 //
 
+//TIZEN_ONLY(20161006) : add highlighted state for index
+EOLIAN static Elm_Atspi_State_Set
+_elm_index_elm_interface_atspi_accessible_state_set_get(Eo *obj, Elm_Index_Data *sd)
+{
+   Elm_Atspi_State_Set ret;
+   int level = sd->level;
+
+   eo_do_super(obj, MY_CLASS, ret = elm_interface_atspi_accessible_state_set_get());
+   if (sd->bx[level] && _elm_object_accessibility_currently_highlighted_get() == (void*)sd->bx[level])
+     STATE_TYPE_SET(ret, ELM_ATSPI_STATE_HIGHLIGHTED);
+
+   return ret;
+}
+//
 
 #include "elm_index_item.eo.c"
 #include "elm_index.eo.c"
index 3a57726..74c8a57 100644 (file)
@@ -369,6 +369,9 @@ class Elm.Index (Elm.Layout, Evas.Clickable_Interface, Evas.Selectable_Interface
       Elm_Interface_Atspi_Component.highlight_grab;
       Elm_Interface_Atspi_Component.highlight_clear;
       //
+      //TIZEN_ONLY(20161006) : add highlighted state for index
+      Elm_Interface_Atspi_Accessible.state_set.get;
+      //
    }
    events {
       changed;