From: JunSeok, Kim Date: Tue, 29 May 2018 12:08:37 +0000 (+0900) Subject: e_test_event: added setFocusSkip method for skip focus of window X-Git-Tag: accepted/tizen/unified/20180629.154202~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b27aa8e66d9acf779aec0522505b788da9b59fac;p=platform%2Fcore%2Fuifw%2Fe-tizen-testcase.git e_test_event: added setFocusSkip method for skip focus of window Change-Id: I7467fcf65a396e12a70d5c6f1c19512157ad1024 --- diff --git a/src/e_test_event.cpp b/src/e_test_event.cpp index e198d67..c12160c 100644 --- a/src/e_test_event.cpp +++ b/src/e_test_event.cpp @@ -240,6 +240,22 @@ etRunner::getWinNotiLevel(etWin *tw) } Eina_Bool +etRunner::setFocusSkip(etWin *tw, Eina_Bool set) +{ + // TODO:: change to send dbus message + EINA_SAFETY_ON_NULL_RETURN_VAL(tw, EINA_FALSE); + + if (set) + tizen_policy_set_focus_skip(tzPolicy, + getWlSurface(tw->elm_win)); + else + tizen_policy_unset_focus_skip(tzPolicy, + getWlSurface(tw->elm_win)); + + return EINA_TRUE; +} + +Eina_Bool etRunner::setZoneRotation(int angle) { Eldbus_Pending *p = NULL; diff --git a/src/e_test_event.h b/src/e_test_event.h index 9a3f484..584c2e6 100644 --- a/src/e_test_event.h +++ b/src/e_test_event.h @@ -77,6 +77,7 @@ public: Eina_Bool setWinTransientFor(etWin *tw_child, etWin *tw_parent, Eina_Bool set); Eina_Bool setWinNotiLevel(etWin *tw, efl_util_notification_level_e lv); efl_util_notification_level_e getWinNotiLevel(etWin *tw); + Eina_Bool setFocusSkip(etWin *tw, Eina_Bool set); Eina_Bool setZoneRotation(int angle); Eina_Bool getWinInfo(etWin *tw); Eina_List *getWinInfoList();