//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_multibuttonentry_elm_widget_atspi(Eo *obj, Elm_Multibuttonentry_Data *sd EINA_UNUSED, Eina_Bool is_atspi)
+_elm_multibuttonentry_elm_widget_screen_reader(Eo *obj, Elm_Multibuttonentry_Data *sd EINA_UNUSED, Eina_Bool is_screen_reader)
{
- _atspi_obj_process(obj, is_atspi);
+ _atspi_obj_process(obj, is_screen_reader);
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
EAPI Evas_Object *
elm_multibuttonentry_add(Evas_Object *parent)
evas_object_freeze_events_set(VIEW(it), EINA_FALSE);
//TIZEN ONLY(20151012): expose title as at-spi object
- if (_elm_atspi_enabled())
+ if (elm_atspi_bridge_utils_is_screen_reader_enabled())
_atspi_expose_title(it, EINA_TRUE);
//
}
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_naviframe_elm_widget_atspi(Eo *obj EINA_UNUSED, Elm_Naviframe_Data *sd, Eina_Bool is_atspi)
+_elm_naviframe_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Naviframe_Data *sd, Eina_Bool is_screen_reader)
{
Elm_Naviframe_Item_Data *it;
EINA_INLIST_FOREACH(sd->stack, it)
- _atspi_expose_title(it, is_atspi);
+ _atspi_expose_title(it, is_screen_reader);
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
static void
_item_push_helper(Elm_Naviframe_Item_Data *item)
}
//TIZEN ONLY(20150717): expose title as at-spi object
- if (_elm_atspi_enabled())
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ if (elm_atspi_bridge_utils_is_screen_reader_enabled())
_atspi_expose_title(obj, EINA_TRUE);
//
+ //
if (sd->title_text)
elm_layout_signal_emit(sd->main_layout, "elm,state,title,text,visible", "elm");
else
{
int_ret = elm_layout_text_set(_pd->main_layout, part, label);
//TIZEN_ONLY(20170314): expose part-text as at-spi object
- _atspi_part_text_expose(obj, part,_elm_atspi_enabled());
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ _atspi_part_text_expose(obj, part,elm_atspi_bridge_utils_is_screen_reader_enabled());
+ //
//
}
_scroller_size_calc(obj);
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_popup_elm_widget_atspi(Eo *obj, Elm_Popup_Data *_pd EINA_UNUSED, Eina_Bool is_atspi)
+_elm_popup_elm_widget_screen_reader(Eo *obj, Elm_Popup_Data *_pd EINA_UNUSED, Eina_Bool is_screen_reader)
{
- _atspi_expose_title(obj, is_atspi);
+ _atspi_expose_title(obj, is_screen_reader);
//TIZEN_ONLY(20170314): expose part-text as at-spi object
- _atspi_part_text_expose(obj, "elm.text", is_atspi);
+ _atspi_part_text_expose(obj, "elm.text", is_screen_reader);
//
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
EAPI Evas_Object *
elm_popup_add(Evas_Object *parent)
#define A11Y_DBUS_PATH "/org/a11y/bus"
#define A11Y_DBUS_INTERFACE "org.a11y.Bus"
#define A11Y_DBUS_STATUS_INTERFACE "org.a11y.Status"
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+#define A11Y_DBUS_ENABLED_PROPERTY "IsEnabled"
+//
#define ATSPI_DBUS_INTERFACE_EVENT_WINDOW "org.a11y.atspi.Event.Window"
#define CACHE_ITEM_SIGNATURE "((so)(so)(so)a(so)assusau)"
ERR("Could not get 'ScreenReaderEnabled' boolean property");
return;
}
-
- if (is_enabled)
- _a11y_connection_init(data);
- else
- DBG("AT-SPI2 stack not enabled.");
-
//TIZEN_ONLY(20161027) - Export elm_atspi_bridge_utils_is_screen_reader_enabled
pd->screen_reader_enabled = !!is_enabled;
//
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- _elm_win_atspi(is_enabled);
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ _elm_win_screen_reader(is_enabled);
+ //
//
}
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+static void
+_at_spi_client_enabled_get(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending)
+{
+ ELM_ATSPI_BRIDGE_DATA_GET_OR_RETURN(data, pd);
+ const char *errname, *errmsg;
+ Eina_Bool is_enabled;
+ Eldbus_Message_Iter *variant;
+
+ pd->pending_requests = eina_list_remove(pd->pending_requests, pending);
+
+ if (eldbus_message_error_get(msg, &errname, &errmsg))
+ {
+ WRN("%s %s", errname, errmsg);
+ return;
+ }
+ if (!eldbus_message_arguments_get(msg, "v", &variant))
+ {
+ ERR("'" A11Y_DBUS_ENABLED_PROPERTY "' not packed into variant.");
+ return;
+ }
+ if (!eldbus_message_iter_arguments_get(variant, "b", &is_enabled))
+ {
+ ERR("Could not get '" A11Y_DBUS_ENABLED_PROPERTY "' boolean property");
+ return;
+ }
+ if (is_enabled)
+ _a11y_connection_init(data);
+ else
+ DBG("AT-SPI2 stack not enabled.");
+}
+//
+
static void _bridge_object_register(Eo *bridge, Eo *obj)
{
ELM_ATSPI_BRIDGE_DATA_GET_OR_RETURN(bridge, pd);
ERR("Unable to get ScreenReaderEnabled property value");
return;
}
- if (val)
- _a11y_connection_init(bridge);
- else
- _a11y_connection_shutdown(bridge);
-
//TIZEN_ONLY(20161027) - Export elm_atspi_bridge_utils_is_screen_reader_enabled
ELM_ATSPI_BRIDGE_DATA_GET_OR_RETURN(bridge, pd);
pd->screen_reader_enabled = !!val;
//
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- _elm_win_atspi(val);
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ _elm_win_screen_reader(val);
+ //
//
}
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ if (ev->name && !strcmp(ev->name, A11Y_DBUS_ENABLED_PROPERTY) &&
+ ifc && !strcmp(A11Y_DBUS_STATUS_INTERFACE, ifc))
+ {
+ if (!eina_value_get(ev->value, &val))
+ {
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ ERR("Unable to get " A11Y_DBUS_ENABLED_PROPERTY " property value");
+ return;
+ }
+ if (val)
+ _a11y_connection_init(bridge);
+ else
+ _a11y_connection_shutdown(bridge);
+ }
+ //
}
EOLIAN Eo_Base*
}
pd->pending_requests = eina_list_append(pd->pending_requests, req);
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ if (!(req = eldbus_proxy_property_get(proxy, A11Y_DBUS_ENABLED_PROPERTY, _at_spi_client_enabled_get, obj)))
+ {
+ ERR("Could not send PropertyGet request");
+ goto proxy_err;
+ }
+
+ pd->pending_requests = eina_list_append(pd->pending_requests, req);
+ //
+
eldbus_proxy_properties_monitor(proxy, EINA_TRUE);
eldbus_proxy_event_callback_add(proxy, ELDBUS_PROXY_EVENT_PROPERTY_CHANGED,
_properties_changed_cb, obj);
edje_object_message_signal_process(elm_layout_edje_get(obj));
//TIZEN_ONLY(20151012): Register smart callbacks for calendar buttons.
- if (_elm_atspi_enabled())
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ if (elm_atspi_bridge_utils_is_screen_reader_enabled())
_atspi_expose_objects(obj, EINA_TRUE);
//
+ //
}
static void
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_calendar_elm_widget_atspi(Eo *obj EINA_UNUSED, Elm_Calendar_Data *_pd EINA_UNUSED, Eina_Bool is_atspi)
+_elm_calendar_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Calendar_Data *_pd EINA_UNUSED, Eina_Bool is_screen_reader)
{
- _atspi_expose_objects(obj, is_atspi);
+ _atspi_expose_objects(obj, is_screen_reader);
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
EAPI Evas_Object *
elm_calendar_add(Evas_Object *parent)
Elm.Widget.access;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
//TIZEN_ONLY(20161116): Apply UI Mirror for Tizen 3.0 UX
Elm.Widget.mirrored;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_conformant_elm_widget_atspi(Eo *obj, Elm_Conformant_Data *_pd EINA_UNUSED, Eina_Bool is_atspi)
+_elm_conformant_elm_widget_screen_reader(Eo *obj, Elm_Conformant_Data *_pd EINA_UNUSED, Eina_Bool is_screen_reader)
{
- _atspi_expose_keypad_area(obj, is_atspi);
+ _atspi_expose_keypad_area(obj, is_screen_reader);
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
static void
_conformant_parts_swallow(Evas_Object *obj)
elm_widget_sub_object_add(obj, sd->virtualkeypad);
evas_object_size_hint_max_set(sd->virtualkeypad, -1, 0);
//TIZEN ONLY(20160628): expose virtual keypad rect as at-spi object
- if (_elm_atspi_enabled())
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ if (elm_atspi_bridge_utils_is_screen_reader_enabled())
_atspi_expose_keypad_area(obj, EINA_TRUE);
//
+ //
}
// TIZEN_ONLY(20160509): support different thing in Tizen 3.0
else if (mode == ELM_WIN_KEYBOARD_ON)
Elm.Widget.theme_apply;
//TIZEN_ONLY(20161012): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Layout.content_aliases.get;
}
*/
// TIZEN_ONLY(20170512): Support accessibility for entry anchors.
- if (_elm_atspi_enabled())
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ if (elm_atspi_bridge_utils_is_screen_reader_enabled())
_atspi_expose_anchors(obj, EINA_TRUE);
//
+ //
evas_event_thaw(evas_object_evas_get(obj));
evas_event_thaw_eval(evas_object_evas_get(obj));
return EINA_TRUE;
}
}
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_entry_elm_widget_atspi(Eo *obj, Elm_Entry_Data *sd EINA_UNUSED, Eina_Bool is_atspi)
+_elm_entry_elm_widget_screen_reader(Eo *obj, Elm_Entry_Data *sd EINA_UNUSED, Eina_Bool is_screen_reader)
{
- _atspi_expose_anchors(obj, is_atspi);
- evas_object_smart_callback_call(obj, "atspi,screen,reader,changed", &is_atspi);
+ _atspi_expose_anchors(obj, is_screen_reader);
+ evas_object_smart_callback_call(obj, "atspi,screen,reader,changed", &is_screen_reader);
}
+//
EOLIAN static Eina_List*
_elm_entry_elm_interface_atspi_accessible_children_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
Evas.Object_Smart.show;
Evas.Object_Smart.hide;
// TIZEN_ONLY(20170512): Support accessibility for entry anchors.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Widget.activate;
Elm.Widget.focus_direction_manager_is;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_flipselector_elm_widget_atspi(Eo *obj EINA_UNUSED, Elm_Flipselector_Data *sd, Eina_Bool is_atspi)
+_elm_flipselector_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Flipselector_Data *sd, Eina_Bool is_screen_reader)
{
- _atspi_expose_flipselector_top_bottom(sd, is_atspi);
+ _atspi_expose_flipselector_top_bottom(sd, is_screen_reader);
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
EOLIAN static Eo *
_elm_flipselector_eo_base_constructor(Eo *obj, Elm_Flipselector_Data *sd)
elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_LIST));
//TIZEN ONLY(20151012): expose flipselector top/bottom buttons for accessibility tree
- if (_elm_atspi_enabled())
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ if (elm_atspi_bridge_utils_is_screen_reader_enabled())
_atspi_expose_flipselector_top_bottom(sd, EINA_TRUE);
//
+ //
return obj;
}
Elm.Widget.event;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Layout.sizing_eval;
Elm_Interface_Atspi_Widget_Action.elm_actions.get;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_gengrid_elm_widget_atspi(Eo *obj EINA_UNUSED, Elm_Gengrid_Data *sd, Eina_Bool is_atspi)
+_elm_gengrid_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Gengrid_Data *sd, Eina_Bool is_screen_reader)
{
Elm_Gen_Item *it;
Evas_Object *content = NULL;
Eina_List *l;
//TIZEN_ONLY (20160914) : Accessibility: sort children list according to their x,y position
- if (sd->horizontal && is_atspi)
+ if (sd->horizontal && is_screen_reader)
sd->atspi_children = eina_list_sort(sd->atspi_children, eina_list_count(sd->atspi_children), _sort_items);
//
EINA_INLIST_FOREACH(sd->items, it)
{
if (!it->realized) continue;
- if (is_atspi)
+ if (is_screen_reader)
{
elm_interface_atspi_accessible_added(EO_OBJ(it));
elm_interface_atspi_accessible_children_changed_added_signal_emit(sd->obj, EO_OBJ(it));
}
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
EAPI Evas_Object *
elm_gengrid_add(Evas_Object *parent)
Elm.Widget.access;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Widget.focus_next;
Elm.Widget.focus_direction;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_genlist_elm_widget_atspi(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Eina_Bool is_atspi)
+_elm_genlist_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Eina_Bool is_screen_reader)
{
Item_Block *itb;
Eina_Bool done = EINA_FALSE;
EINA_LIST_FOREACH(itb->items, l, it)
{
if (!it->realized || it->want_hidden) continue;
- if (is_atspi)
+ if (is_screen_reader)
{
elm_interface_atspi_accessible_added(EO_OBJ(it));
elm_interface_atspi_accessible_children_changed_added_signal_emit(sd->obj, EO_OBJ(it));
else if (done) break;
}
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
EAPI Evas_Object *
elm_genlist_add(Evas_Object *parent)
Elm.Widget.access;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Widget.focus_highlight_geometry_get;
Elm.Widget.focus_next;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_index_elm_widget_atspi(Eo *obj, Elm_Index_Data *_pd, Eina_Bool is_atspi)
+_elm_index_elm_widget_screen_reader(Eo *obj, Elm_Index_Data *_pd, Eina_Bool is_screen_reader)
{
Eina_List *elist = NULL;
Elm_Object_Item *eo_it;
EINA_LIST_FOREACH(_pd->items, elist, eo_it)
{
- if (is_atspi)
+ if (is_screen_reader)
{
elm_interface_atspi_accessible_added(eo_it);
elm_interface_atspi_accessible_children_changed_added_signal_emit(obj, eo_it);
}
}
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
EAPI Evas_Object *
elm_index_add(Evas_Object *parent)
Elm.Widget.access;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Widget.focus_next;
Elm.Layout.sizing_eval;
}
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_layout_elm_widget_atspi(Eo *obj, Elm_Layout_Smart_Data *_pd EINA_UNUSED, Eina_Bool is_atspi)
+_elm_layout_elm_widget_screen_reader(Eo *obj, Elm_Layout_Smart_Data *_pd EINA_UNUSED, Eina_Bool is_screen_reader)
{
EINA_SAFETY_ON_NULL_RETURN(obj);
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
}
//
Elm.Widget.sub_object_del;
Elm.Widget.on_focus;
//TIZEN_ONLY(20161212): apply screen_reader_changed callback
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Container.content_get;
Elm.Container.content_set;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_list_elm_widget_atspi(Eo *obj EINA_UNUSED, Elm_List_Data *sd, Eina_Bool is_atspi)
+_elm_list_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_List_Data *sd, Eina_Bool is_screen_reader)
{
Eina_List *elist = NULL;
Elm_Object_Item *eo_it;
EINA_LIST_FOREACH(sd->items, elist, eo_it)
{
- if (is_atspi)
+ if (is_screen_reader)
{
ELM_LIST_ITEM_DATA_GET(eo_it, it);
if (it->icon) eo_do(it->icon, elm_interface_atspi_accessible_parent_set(eo_it));
}
}
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
EAPI Evas_Object *
elm_list_add(Evas_Object *parent)
Elm.Widget.access;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Widget.focus_highlight_geometry_get;
Elm.Widget.focus_next;
Elm.Widget.access;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Widget.focus_direction;
Elm.Widget.focus_next;
Elm.Widget.access;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
//TIZEN_ONLY(20161208): add API elm_object_part_access_object_get
Elm.Widget.part_access_object_get;
Elm.Widget.access;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Widget.focus_next;
Elm.Widget.parent.set;
void _elm_win_access(Eina_Bool is_access);
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
-void _elm_win_atspi(Eina_Bool is_atspi);
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+void _elm_win_screen_reader(Eina_Bool is_screen_reader);
+//
//
void _elm_win_translate(void);
void _elm_win_focus_reconfigure(void);
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_toolbar_elm_widget_atspi(Eo *obj EINA_UNUSED, Elm_Toolbar_Data *sd, Eina_Bool is_atspi)
+_elm_toolbar_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Toolbar_Data *sd, Eina_Bool is_screen_reader)
{
Elm_Toolbar_Item_Data *it;
EINA_INLIST_FOREACH (sd->items, it)
{
- if (is_atspi)
+ if (is_screen_reader)
{
if (it->icon) eo_do(it->icon, elm_interface_atspi_accessible_parent_set(EO_OBJ(it)));
elm_interface_atspi_accessible_added(EO_OBJ(it));
}
}
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
static void
_elm_toolbar_coordinates_adjust(Elm_Toolbar_Item_Data *it,
Elm.Widget.access;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- Elm.Widget.atspi;
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ Elm.Widget.screen_reader;
+ //
//
Elm.Widget.focus_next;
Elm.Widget.theme_apply;
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EAPI Eina_Bool
-elm_widget_atspi(Evas_Object *obj,
- Eina_Bool is_atspi)
+elm_widget_screen_reader(Evas_Object *obj,
+ Eina_Bool is_screen_reader)
{
const Eina_List *l;
Evas_Object *child;
EINA_LIST_FOREACH(sd->subobjs, l, child)
{
if (elm_widget_is(child))
- ret &= elm_widget_atspi(child, is_atspi);
+ ret &= elm_widget_screen_reader(child, is_screen_reader);
}
- eo_do(obj, elm_obj_widget_atspi(is_atspi));
+ eo_do(obj, elm_obj_widget_screen_reader(is_screen_reader));
return ret;
}
EOLIAN static void
-_elm_widget_atspi(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *_pd EINA_UNUSED, Eina_Bool is_atspi EINA_UNUSED)
+_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *_pd EINA_UNUSED, Eina_Bool is_screen_reader EINA_UNUSED)
{
}
//
+//
EOLIAN static void
_elm_widget_access(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *_pd EINA_UNUSED, Eina_Bool is_access EINA_UNUSED)
}
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
- atspi {
+ // TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+ screen_reader {
[['Virtual' function on the widget being set access.]]
params {
- @in is_atspi: bool;
+ @in is_screen_reader: bool;
}
legacy: null;
}
//
+ //
cursor_del {
params {
@in cur: Elm_Cursor *;
EAPI Eina_Bool elm_widget_access(Evas_Object *obj, Eina_Bool is_access);
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
-EAPI Eina_Bool elm_widget_atspi(Evas_Object *obj, Eina_Bool is_access);
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
+EAPI Eina_Bool elm_widget_screen_reader(Evas_Object *obj, Eina_Bool is_access);
+//
//
EAPI Elm_Theme_Apply elm_widget_theme(Evas_Object *obj);
EAPI void elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force);
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
void
-_elm_win_atspi(Eina_Bool is_atspi)
+_elm_win_screen_reader(Eina_Bool is_screen_reader)
{
const Eina_List *l;
Evas_Object *obj;
EINA_LIST_FOREACH(_elm_win_list, l, obj)
{
- elm_widget_atspi(obj, is_atspi);
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ elm_widget_screen_reader(obj, is_screen_reader);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
/* floating orphan object. if there are A, B, C objects and user does
as below, then there would be floating orphan objects.
if (elm_widget_is(fobj) && !elm_widget_parent_get(fobj))
{
- elm_widget_atspi(fobj, is_atspi);
+ elm_widget_screen_reader(fobj, is_screen_reader);
}
}
- if (!is_atspi)
+ if (!is_screen_reader)
{
eo_do(obj, elm_interface_atspi_component_highlight_clear());
}
}
}
//
+//
void
_elm_win_translate(void)
//TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
//register/unregister access objects accordingly.
+// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
EOLIAN static void
-_elm_genlist_elm_widget_atspi(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Eina_Bool is_atspi)
+_elm_genlist_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Eina_Bool is_screen_reader)
{
Item_Block *itb;
Eina_Bool done = EINA_FALSE;
EINA_LIST_FOREACH(itb->items, l, it)
{
if (!it->realized || it->want_hidden) continue;
- if (is_atspi)
+ if (is_screen_reader)
{
elm_interface_atspi_accessible_added(EO_OBJ(it));
elm_interface_atspi_accessible_children_changed_added_signal_emit(sd->obj, EO_OBJ(it));
}
//TIZEN_ONLY(20161213): apply screen_reader_changed callback
- evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
+ evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_screen_reader);
//
}
//
+//
EOLIAN const Elm_Atspi_Action *
_elm_genlist_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNUSED, Elm_Genlist_Data *pd EINA_UNUSED)