From: jin-gyu.kim Date: Wed, 21 Mar 2018 07:53:35 +0000 (+0900) Subject: Add text for screen reader to buttons. X-Git-Tag: submit/tizen/20180425.043505~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7de7a4e9386d5b17bdcccbc6a365453a38f39bdd;p=platform%2Fcore%2Fsecurity%2Faskuser.git Add text for screen reader to buttons. There was no text for screen reader in buttons of wearable, because those are implemented as picture. But, screen reader should tell appropriate texts for each buttons. So, add texts for screen reader using elementary API. Change-Id: Id4f131f794007b72269410516578ffa888258422 --- diff --git a/src/notification-daemon/ui/PopupCheckWearable.h b/src/notification-daemon/ui/PopupCheckWearable.h index d59515a..1b1af55 100644 --- a/src/notification-daemon/ui/PopupCheckWearable.h +++ b/src/notification-daemon/ui/PopupCheckWearable.h @@ -100,6 +100,7 @@ public: evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_object_part_content_set(m_allowButton, "elm.swallow.content", icon); evas_object_show(icon); + elm_atspi_accessible_name_set(m_allowButton, Po::getAllowButtonMsg().c_str()); m_denyButton = elm_button_add(m_popup); if (m_denyButton == nullptr) { @@ -117,6 +118,7 @@ public: elm_image_file_set(icon, RES_DIR"/tw_ic_popup_btn_delete.png", NULL); elm_object_part_content_set(m_denyButton, "elm.swallow.content", icon); evas_object_show(icon); + elm_atspi_accessible_name_set(m_denyButton, Po::getDenyButtonMsg().c_str()); evas_object_show(m_popup); }