return id->accessible_name;
}
+//TIZEN_ONLY(20160929) : atspi: Improves how to find the can_highlight of the widget
+static Eina_Bool
+_elm_widget_can_highlight_get_by_class(Eo *obj)
+{
+ if (eo_isa(obj, ELM_WIDGET_ITEM_CLASS))
+ {
+ Elm_Widget_Item_Data *id = eo_data_scope_get(obj, ELM_WIDGET_ITEM_CLASS);
+ if (!id) return EINA_FALSE;
+ if (!id->can_highlight) return EINA_FALSE;
+ }
+ else
+ {
+ Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_WIDGET_CLASS);
+ if (!wd) return EINA_FALSE;
+ if (!wd->can_highlight) return EINA_FALSE;
+ }
+ return EINA_TRUE;
+}
+//
+
//TIZEN_ONLY(20161107): enhance elm_atspi_accessible_can_highlight_set to set can_hihglight property to its children
EAPI Eina_Bool
_elm_widget_item_highlightable(Elm_Object_Item *item)
eo_do(item, parent = elm_interface_atspi_accessible_parent_get());
while (parent && !eo_isa(parent, ELM_ATSPI_APP_OBJECT_CLASS))
{
- eo_do(parent, can_highlight = elm_interface_atspi_accessible_can_highlight_get());
- if (!can_highlight) return EINA_FALSE;
+ //TIZEN_ONLY(20160929) : atspi: Improves how to find the can_highlight of the widget
+ if (!_elm_widget_can_highlight_get_by_class(parent)) return EINA_FALSE;
+ //
eo_do(parent, parent = elm_interface_atspi_accessible_parent_get());
}
return EINA_TRUE;
eo_do(obj, parent = elm_interface_atspi_accessible_parent_get());
while (parent && !eo_isa(parent, ELM_ATSPI_APP_OBJECT_CLASS))
{
- eo_do(parent, can_highlight = elm_interface_atspi_accessible_can_highlight_get());
- if (!can_highlight) return EINA_FALSE;
+ //TIZEN_ONLY(20160929) : atspi: Improves how to find the can_highlight of the widget
+ if (!_elm_widget_can_highlight_get_by_class(parent)) return EINA_FALSE;
+ //
eo_do(parent, parent = elm_interface_atspi_accessible_parent_get());
}
return EINA_TRUE;