to do the reading.
Change-Id: I133c165532348c91ee2de1a81577dbaaef906320
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
eo_do(obj, eo_event_callback_call(EVAS_SCROLLABLE_INTERFACE_EVENT_SCROLL_ANIM_STOP, NULL));
//TIZEN_ONLY: Let the screen-reader know when scroll animation ends
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
{
int x = 0, y = 0, w = 0, h = 0;
eo_do((Eo *) obj, elm_interface_scrollable_content_region_get(&x, &y, &w, &h));
void *data EINA_UNUSED)
{
eo_do(obj, eo_event_callback_call(EVAS_SCROLLABLE_INTERFACE_EVENT_SCROLL_DRAG_STOP, NULL));
+ //TIZEN_ONLY: Let the screen-reader know when drag ends
+ if (_elm_atspi_enabled())
+ {
+ int x = 0, y = 0, w = 0, h = 0;
+ eo_do((Eo *) obj, elm_interface_scrollable_content_region_get(&x, &y, &w, &h));
+ elm_interface_atspi_accessible_bounds_changed_signal_emit(obj, x, y, w, h);
+ }
+ //
}
static void
void *data EINA_UNUSED)
{
//TIZEN_ONLY: Let the screen-reader know when scroll animation ends
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
+ {
+ int x = 0, y = 0, w = 0, h = 0;
+ eo_do((Eo *) obj, elm_interface_scrollable_content_region_get(&x, &y, &w, &h));
+ elm_interface_atspi_accessible_bounds_changed_signal_emit(obj, x, y, w, h);
+ }
+ //
+}
+
+static void
+_scroll_drag_stop_cb(Evas_Object *obj,
+ void *data EINA_UNUSED)
+{
+ //TIZEN_ONLY: Let the screen-reader know when drag ends
+ if (_elm_atspi_enabled())
{
int x = 0, y = 0, w = 0, h = 0;
eo_do((Eo *) obj, elm_interface_scrollable_content_region_get(&x, &y, &w, &h));
elm_interface_scrollable_edge_bottom_cb_set(_edge_bottom_cb),
//TIZEN_ONLY: Let the screen-reader know when scroll animation ends
elm_interface_scrollable_animate_stop_cb_set(_scroll_animate_stop_cb),
+ elm_interface_scrollable_drag_stop_cb_set(_scroll_drag_stop_cb),
//
elm_interface_scrollable_content_min_limit_cb_set(_elm_list_content_min_limit_cb),
elm_interface_scrollable_objects_set(wd->resize_obj, priv->hit_rect));
eo_do(obj, eo_event_callback_call
(EVAS_SCROLLABLE_INTERFACE_EVENT_SCROLL_ANIM_STOP, NULL));
//TIZEN_ONLY: Let the screen-reader know when scroll animation ends
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
{
int x = 0, y = 0, w = 0, h = 0;
eo_do((Eo *) obj, elm_interface_scrollable_content_region_get(&x, &y, &w, &h));
{
eo_do(obj, eo_event_callback_call
(EVAS_SCROLLABLE_INTERFACE_EVENT_SCROLL_DRAG_STOP, NULL));
+ //TIZEN_ONLY: Let the screen-reader know when drag ends
+ if (_elm_atspi_enabled())
+ {
+ int x = 0, y = 0, w = 0, h = 0;
+ eo_do((Eo *) obj, elm_interface_scrollable_content_region_get(&x, &y, &w, &h));
+ elm_interface_atspi_accessible_bounds_changed_signal_emit(obj, x, y, w, h);
+ }
+ //
}
static void
evas_object_smart_callback_call(obj, SIG_SCROLL_ANIM_STOP, NULL);
//TIZEN_ONLY: Let the screen-reader know when scroll animation ends
- if (_elm_config->atspi_mode)
+ if (_elm_atspi_enabled())
{
int x = 0, y = 0, w = 0, h = 0;
eo_do((Eo *) obj, elm_interface_scrollable_content_region_get(&x, &y, &w, &h));
void *data EINA_UNUSED)
{
evas_object_smart_callback_call(obj, SIG_SCROLL_DRAG_STOP, NULL);
+ //TIZEN_ONLY: Let the screen-reader know when drag ends
+ if (_elm_atspi_enabled())
+ {
+ int x = 0, y = 0, w = 0, h = 0;
+ eo_do((Eo *) obj, elm_interface_scrollable_content_region_get(&x, &y, &w, &h));
+ elm_interface_atspi_accessible_bounds_changed_signal_emit(obj, x, y, w, h);
+ }
+ //
}
static void