From b27aa8e66d9acf779aec0522505b788da9b59fac Mon Sep 17 00:00:00 2001 From: "JunSeok, Kim" Date: Tue, 29 May 2018 21:08:37 +0900 Subject: [PATCH] e_test_event: added setFocusSkip method for skip focus of window Change-Id: I7467fcf65a396e12a70d5c6f1c19512157ad1024 --- src/e_test_event.cpp | 16 ++++++++++++++++ src/e_test_event.h | 1 + 2 files changed, 17 insertions(+) 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(); -- 2.7.4