elm: ATSPI: CtxPopup: Access GUI 1.44: When ctxpopup is shown, based on more style...
authorShilpa Singh <shilpa.singh@samsung.com>
Wed, 29 Nov 2017 15:25:05 +0000 (20:55 +0530)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 10:41:07 +0000 (19:41 +0900)
Change-Id: I88dc760ea08da4346fcf1c1c7fbb4624cf0c88ca

src/lib/elementary/elc_ctxpopup.c
src/lib/elementary/elm_ctxpopup.eo

index 8d16034..7eb2547 100644 (file)
@@ -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)
 {
index 1729a5f..83327cb 100644 (file)
@@ -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;