From: Shilpa Singh Date: Wed, 29 Nov 2017 15:25:05 +0000 (+0530) Subject: elm: ATSPI: CtxPopup: Access GUI 1.44: When ctxpopup is shown, based on more style... X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~856 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d210db68cded7f321a193644fafabb0759442ac9;p=platform%2Fupstream%2Fefl.git elm: ATSPI: CtxPopup: Access GUI 1.44: When ctxpopup is shown, based on more style/default style read according to speak rule. Change-Id: I88dc760ea08da4346fcf1c1c7fbb4624cf0c88ca --- diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c index 8d16034..7eb2547 100644 --- a/src/lib/elementary/elc_ctxpopup.c +++ b/src/lib/elementary/elc_ctxpopup.c @@ -1563,6 +1563,30 @@ _elm_ctxpopup_item_init(Eo *eo_item, sd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN; } +//TIZEN ONLY(20160918): name interface added +EOLIAN static const char* +_elm_ctxpopup_efl_access_name_get(Eo *obj, Elm_Ctxpopup_Data *sd EINA_UNUSED) +{ + Eina_Strbuf *buf; + const char *accessible_name = NULL; + const char *style = elm_widget_style_get(obj); + + accessible_name = efl_access_name_get(efl_super(obj, ELM_CTXPOPUP_CLASS)); + if (accessible_name) return accessible_name; + + buf = eina_strbuf_new(); + if (!strcmp(style, "more/default")) + eina_strbuf_append_printf(buf, "%s", N_("More menu popup")); + else + eina_strbuf_append_printf(buf, "%s", E_("Alert")); + + accessible_name = _elm_widget_accessible_plain_name_get(obj, eina_strbuf_string_get(buf)); + eina_strbuf_free(buf); + + return accessible_name; +} +// + EOLIAN static const Efl_Access_Action_Data* _elm_ctxpopup_efl_access_widget_action_elm_actions_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd EINA_UNUSED) { diff --git a/src/lib/elementary/elm_ctxpopup.eo b/src/lib/elementary/elm_ctxpopup.eo index 1729a5f..83327cb 100644 --- a/src/lib/elementary/elm_ctxpopup.eo +++ b/src/lib/elementary/elm_ctxpopup.eo @@ -214,6 +214,9 @@ class Elm.Ctxpopup (Efl.Ui.Layout, Efl.Ui.Focus.Layer, Efl.Access.Widget.Action, Efl.Ui.Menu.items { get; } Efl.Access.Widget.Action.elm_actions { get; } Efl.Access.state_set { get; } + //TIZEN ONLY(20160918): name interface added + Efl.Access.name { get; } + // Efl.Part.part; //TIZEN ONLY(20150708): popup and ctxpopup accessibility highlight impementation Efl.Access.Component.highlight_grab;