TizenRefApp-7623 [Call UI] Implement highlighting element in Multi Call List view 52/97252/3 submit/tizen_3.0/20161114.161309
authorIgor Olshevskyi <i.olshevskyi@samsung.com>
Fri, 11 Nov 2016 15:14:57 +0000 (17:14 +0200)
committerIgor Olshevskyi <i.olshevskyi@samsung.com>
Mon, 14 Nov 2016 14:20:52 +0000 (06:20 -0800)
Change-Id: I82f10a1df3225fd76c6650bd92ed6b1516d32321

edje_src/edc/callui-view-multi-call-list.edc
src/callui-view-multi-call-list.c

index 57c5e1d..b1aa4bc 100644 (file)
@@ -18,6 +18,7 @@
 #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";
@@ -74,6 +75,20 @@ group { name: "elm/layout/callui/multicall_list_view";
                        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;
                        }
                )
        }
index 9452721..589da04 100755 (executable)
@@ -25,6 +25,7 @@
 #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"
 
@@ -62,6 +63,8 @@ static void __split_call_btn_click_cb(void *data, Evas_Object *obj, void *event_
 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));
@@ -209,6 +212,10 @@ static callui_result_e __create_main_content(callui_view_mc_list_h vd, Evas_Obje
        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;
 }
 
@@ -361,3 +368,13 @@ static void __back_btn_click_cb(void *data, Evas_Object *obj, void *event_info)
        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;
+}