e_test_event: added setFocusSkip method for skip focus of window 76/180476/1
authorJunSeok, Kim <juns.kim@samsung.com>
Tue, 29 May 2018 12:08:37 +0000 (21:08 +0900)
committerJunSeok, Kim <juns.kim@samsung.com>
Tue, 29 May 2018 12:15:45 +0000 (21:15 +0900)
Change-Id: I7467fcf65a396e12a70d5c6f1c19512157ad1024

src/e_test_event.cpp
src/e_test_event.h

index e198d67..c12160c 100644 (file)
@@ -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;
index 9a3f484..584c2e6 100644 (file)
@@ -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();