//
};
+//TIZEN_ONLY(20170925) atspi: send detail value for window activated signal
enum
{
- ELM_ACCESSIBLE_DEFAULT_LABEL_ENABLED = 0,
- ELM_ACCESSIBLE_DEFAULT_LABEL_DISABLED = 1 << 0,
+ ELM_ACCESSIBLE_WINDOW_ACTIVATE_INFO_DEFAULT_LABEL_ENABLED = 0,
+ ELM_ACCESSIBLE_WINDOW_ACTIVATE_INFO_DEFAULT_LABEL_DISABLED = 1 << 0,
+ ELM_ACCESSIBLE_WINDOW_ACTIVATE_INFO_KEYBOARD = 1 << 1,
};
+//
enum _Atspi_Object_Child_Event_Type
{
}
//
+//TIZEN_ONLY(20170925) atspi: send detail value for window activated signal
static unsigned int
_window_activated_detail_value_add(Eo *obj)
{
- unsigned int ret = ELM_ACCESSIBLE_DEFAULT_LABEL_ENABLED;
+ unsigned int ret = ELM_ACCESSIBLE_WINDOW_ACTIVATE_INFO_DEFAULT_LABEL_ENABLED;
Eina_List *l, *attr_list = NULL;
Elm_Atspi_Attribute *attr = NULL;
{
if (!strcmp(attr->key, "default_label") && !strcmp(attr->value, "disabled"))
{
- ret |= ELM_ACCESSIBLE_DEFAULT_LABEL_DISABLED;
+ ret |= ELM_ACCESSIBLE_WINDOW_ACTIVATE_INFO_DEFAULT_LABEL_DISABLED;
break;
}
}
if (attr_list)
elm_atspi_attributes_list_free(attr_list);
+ Elm_Atspi_Role role = ELM_ATSPI_ROLE_INVALID;
+ eo_do(obj, role = elm_interface_atspi_accessible_role_get());
+ if (role == ELM_ATSPI_ROLE_INPUT_METHOD_WINDOW)
+ ret |= ELM_ACCESSIBLE_WINDOW_ACTIVATE_INFO_KEYBOARD;
return ret;
}
+//
static Eina_Bool
_window_signal_send(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info EINA_UNUSED)
return EINA_FALSE;
}
+ //TIZEN_ONLY(20170925) atspi: send detail value for window activated signal
unsigned int det1 = 0;
if (desc == ELM_INTERFACE_ATSPI_WINDOW_EVENT_WINDOW_ACTIVATED)
det1 = _window_activated_detail_value_add(obj);
+ //
_bridge_signal_send(data, obj, ATSPI_DBUS_INTERFACE_EVENT_WINDOW,
&_window_obj_signals[type], "", det1, 0, "i", 0);
elm_interface_atspi_window_activated_signal_emit(obj);
elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_ACTIVE, EINA_TRUE);
}
+ else
+ {
+ Elm_Atspi_Role role;
+ eo_do(obj, role = elm_interface_atspi_accessible_role_get());
+ if (role == ELM_ATSPI_ROLE_INPUT_METHOD_WINDOW)
+ {
+ elm_interface_atspi_window_activated_signal_emit(obj);
+ elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_ACTIVE, EINA_TRUE);
+ }
+ }
}
elm_widget_atspi(obj, is_atspi);