//TIZEN_ONLY(20170531): add "GetReadingMaterial" interface method
static int
-_list_children_count_check(Eo *obj)
+_list_children_count_check(Eo *obj, Efl_Access_Role container_role, Efl_Access_Role item_role)
{
int i;
int list_count = 0;
return 0;
role = efl_access_object_role_get(obj);
- if (role == EFL_ACCESS_ROLE_LIST)
+ if (role == container_role)
{
int children_count = 0;
children = efl_access_object_access_children_get(obj);
{
child = eina_list_nth(children, i);
role = efl_access_object_role_get(child);
- if (role == EFL_ACCESS_ROLE_LIST_ITEM)
+ if (role == item_role)
list_count++;
}
eina_list_free(children);
}
-
return list_count;
}
static int
-_list_children_count(Eo *obj)
+_list_children_count(Eo *obj, Efl_Access_Role container_role, Efl_Access_Role item_role)
{
Eina_List *children;
int list_items_count = 0;
int i;
Eo *child = NULL;
- list_items_count = _list_children_count_check(obj);
+ list_items_count = _list_children_count_check(obj, container_role, item_role);
if (list_items_count > 0)
{
eina_list_free(children);
for (i = 0; i < children_count; i++)
{
child = eina_list_nth(children, i);
- list_items_count = _list_children_count(child);
+ list_items_count = _list_children_count(child, container_role, item_role);
if (list_items_count > 0)
{
eina_list_free(children);
return list_items_count;
}
}
-
return 0;
}
double max_value = 0;
double min_value = 0;
int idx = 0;
- int child_count = 0;
+ int list_children_count = 0;
int selected_child_count = 0;
uint64_t atspi_states = 0;
Efl_Access_Role role;
eina_list_free(children);
/* list children count */
- child_count = 0;
+ list_children_count = 0;
if (role == EFL_ACCESS_ROLE_DIALOG)
{
- child_count = _list_children_count(obj);
+ list_children_count = _list_children_count(obj, EFL_ACCESS_ROLE_LIST, EFL_ACCESS_ROLE_LIST_ITEM);
+ }
+ else if (role == EFL_ACCESS_ROLE_POPUP_MENU)
+ {
+ list_children_count = _list_children_count(obj, EFL_ACCESS_ROLE_POPUP_MENU, EFL_ACCESS_ROLE_MENU_ITEM);
}
- eldbus_message_iter_basic_append(iter, 'i', child_count);
+ eldbus_message_iter_basic_append(iter, 'i', list_children_count);
/* first selected child index */
idx = 0;