From d210db68cded7f321a193644fafabb0759442ac9 Mon Sep 17 00:00:00 2001 From: Shilpa Singh Date: Wed, 29 Nov 2017 20:55:05 +0530 Subject: [PATCH] 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 --- src/lib/elementary/elc_ctxpopup.c | 24 ++++++++++++++++++++++++ src/lib/elementary/elm_ctxpopup.eo | 3 +++ 2 files changed, 27 insertions(+) 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; -- 2.7.4