elm_genlist: Add signals to communicate drag start and stop to atspi client.

Summary:
Send signal EFL_ACCESS_STATE_ANIMATED when dragging starts and stops to atspi clients and also set EFL_ACCESS_STATE_ANIMATED
when reorder mode is enabled.

Test Plan: When reorder happens atspi client should receive object:state-changed:animated signal.

Reviewers: kimcinoo, shilpasingh

Reviewed By: shilpasingh

Subscribers: cedric, govi, rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5515
This commit is contained in:
Prasoon Singh 2017-11-22 14:17:41 +09:00 committed by Shinwoo Kim
parent 3661f71954
commit 248cb96c42
1 changed files with 10 additions and 1 deletions

View File

@ -4050,7 +4050,11 @@ _long_press_cb(void *data)
}
if (!sd->decorate_all_mode)
edje_object_signal_emit(VIEW(it), SIGNAL_REORDER_ENABLED, "elm");
{
edje_object_signal_emit(VIEW(it), SIGNAL_REORDER_ENABLED, "elm");
if (_elm_config->atspi_mode)
efl_access_state_changed_signal_emit(EO_OBJ(it), EFL_ACCESS_STATE_ANIMATED, EINA_TRUE);
}
}
end:
@ -4986,6 +4990,8 @@ _item_mouse_up_cb(void *data,
sd->calc_job = ecore_job_add(_calc_job, sd->obj);
}
edje_object_signal_emit(VIEW(it), SIGNAL_REORDER_DISABLED, "elm");
if (_elm_config->atspi_mode)
efl_access_state_changed_signal_emit(EO_OBJ(it), EFL_ACCESS_STATE_ANIMATED, EINA_FALSE);
sd->reorder_it = sd->reorder_rel = NULL;
elm_interface_scrollable_hold_set(sd->obj, EINA_FALSE);
elm_interface_scrollable_bounce_allow_set
@ -8636,6 +8642,9 @@ _elm_genlist_efl_access_state_set_get(Eo *obj, Elm_Genlist_Data *sd EINA_UNUSED)
if (elm_genlist_multi_select_get(obj))
STATE_TYPE_SET(ret, EFL_ACCESS_STATE_MULTISELECTABLE);
if (elm_genlist_reorder_mode_get(obj))
STATE_TYPE_SET(ret, EFL_ACCESS_STATE_ANIMATED);
return ret;
}