#define MULTICALL_LIST_TIMER_TXT_PAD_BOTTOM 20
#define MULTICALL_LIST_CONTENT_PADDING (CALL_STATUS_TXT_PAD_TOP + CALL_STATUS_TXT_HEIGHT + MULTICALL_LIST_TIMER_TXT_PAD_BOTTOM)
#define MULTICALL_LIST_BOTTOM_BTN_PAD_LR ((MAIN_SCREEN_W - MULTICALL_LIST_BOTTOM_BTN_SIZE) / 2)
+#define MULTICALL_LIST_BOTTOM_BTN_MAX_SIZE -1 104
styles {
style { name: "multicall_list_call_duration";
description { state: "default" 0.0;
rel1 { relative: 1.0 0.0; to_x: "bottom_btn.padding.left"; to_y: "bottom_btn_bg"; }
rel2 { relative: 0.0 1.0; to_x: "bottom_btn.padding.right"; to_y: "bottom_btn_bg"; }
+ max: MULTICALL_LIST_BOTTOM_BTN_MAX_SIZE;
+ }
+ )
+
+ /* Accessibility */
+
+ CU_PART_RECT( "call_txt_status.access",
+ mouse_events: 1;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1 { relative: 0.0 0.0; to: "call_txt_status"; }
+ rel2 { relative: 1.0 1.0; to: "call_txt_status"; }
+ color: COLOR_BG_ALPHA;
}
)
}
#include "callui-view-layout.h"
#include "callui-state-provider.h"
#include "callui-bidi-text-utils.h"
+#include "callui-accessibility-utils.h"
#define CALLUI_LY_STYLE_MULTICALL_LIST_VIEW "multicall_list_view"
static void __back_btn_click_cb(void *data, Evas_Object *obj, void *event_info);
static Eina_Bool __call_duration_timer_cb(void* data);
+static callui_result_e __create_accessible_objects(callui_view_mc_list_h vd);
+
callui_view_mc_list_h _callui_view_multi_call_list_new()
{
callui_view_mc_list_h mc_list_view = calloc(1, sizeof(_callui_view_mc_list_t));
callui_result_e res = __caller_genlist_add(vd);
CALLUI_RETURN_VALUE_IF_FAIL(res == CALLUI_RESULT_OK, res);
+ if (__create_accessible_objects(vd) != CALLUI_RESULT_OK) {
+ err("Register accessible objects failed");
+ }
+
return CALLUI_RESULT_OK;
}
callui_app_data_t *ad = (callui_app_data_t *)data;
_callui_vm_auto_change_view(ad->view_manager);
}
+
+/* Accessibility */
+
+static callui_result_e __create_accessible_objects(callui_view_mc_list_h vd)
+{
+ vd->base_view.ao_call_status = _callui_au_create_accessible_object(vd->base_view.contents, vd->base_view.contents, "call_txt_status.access");
+ CALLUI_RETURN_VALUE_IF_FAIL(vd->base_view.ao_call_status, CALLUI_RESULT_FAIL);
+
+ return CALLUI_RESULT_OK;
+}