Revert "Handle Quickpanel" 29/305229/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 30 Jan 2024 07:04:47 +0000 (16:04 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 30 Jan 2024 07:09:08 +0000 (16:09 +0900)
This reverts commit 31f35ad8364e85f0c04d1a07060dfe762665f2b6.

- Remove the legacy code because DALi app started to support AT-SPI
 from Tizen 7.0.
- Now, screen reader can handle the gestrue even on DALi apps.

Change-Id: Ie18ae6613022e891cb1d083ae19f63c100713638

src/navigator.c

index c9334da354ad0f6b9c7b642932af2150a7166f8c..5ff8af3fbac23e7bd8f64a5cf59dfacbfa2f970f 100644 (file)
 
 #define DEBUG_MODE
 
-/* following definition is referring to the enlightenment enum such as
-E_SERVICE_QUICKPANEL_TYPE_SYSTEM_DEFAULT, E_SERVICE_QUICKPANEL_TYPE_APPS_MENU.
-following line could be removed when DALi atspi is working */
-#define QUICKPANEL_TYPE_SYSTEM_DEFAULT 1
-#define QUICKPANEL_TYPE_APPS_MENU 3
-
 TIZEN_PROD_STATIC void _highlight_on_slider(Eina_Bool is_slider);
 
 typedef struct {
@@ -89,17 +83,6 @@ struct _NavigatorData {
        App_Tracker_Data *app_tracker_data;
        KeyboardTrackerData *keyboard_tracker_data;
        Eldbus_Connection *connection;
-
-       /* quickpanel_info has information of quickpanel type applications.
-       it is using a bit field as below;
-
-        - 0000: both quickpanel and allapps are hidden
-        - 0010: quickpanel is visible, allapps is hidden
-        - 1000: quickpanel is hidden, allapps is visible
-        - 1010: both quickpanel and allapps are visible
-
-       following line could be removed when DALi atspi is working */
-       unsigned char quickpanel_info;
        Ecore_Timer *move_outed_timer;
        AtspiMoveOutedType move_outed_type;
        NavigatorContextSwitchCb context_switch_cb;
@@ -2219,20 +2202,6 @@ TIZEN_PROD_STATIC void on_gesture_detected(void *data, const Eldbus_Message *msg
                return;
        }
 
-       /* TODO:
-       check current quickpanel status, and decide to use gesture or not
-       if AllApps(NUI) is top, then screen-reader does not use gesutre.
-
-       - QUICKPANEL_TYPE_SYSTEM_DEFAULT: quickpanel
-       - QUICKPANEL_TYPE_APPS_MENU: allapps
-
-       following line could be removed when DALi atspi is working */
-       if ((nd->quickpanel_info & 1 << QUICKPANEL_TYPE_APPS_MENU) &&
-           !(nd->quickpanel_info & 1 << QUICKPANEL_TYPE_SYSTEM_DEFAULT)) {
-               DEBUG("Apps menu type quickpanel is top");
-               return;
-       }
-
        AtspiAccessible *current_accessible = nd->current_obj;
        Eina_Bool keyboard_status;
        DEBUG("In _on_gestures_detected callback");
@@ -2476,41 +2445,6 @@ TIZEN_PROD_STATIC void on_gesture_detected(void *data, const Eldbus_Message *msg
        g_free(info);
 }
 
-/* this function could be removed when DALi atspi is working */
-TIZEN_PROD_STATIC void quickpanel_changed_cb(void *data, const Eldbus_Message *msg)
-{
-       NavigatorData *nd = (NavigatorData *)data;
-
-       if (nd == NULL) {
-               ERROR("NULL context");
-               return;
-       }
-
-       unsigned int type = 0;
-       unsigned int state = 0;
-
-       if (!msg) {
-               DEBUG("Incoming message is empty");
-               return;
-       }
-
-       if (!eldbus_message_arguments_get(msg, "uu", &type, &state)) {
-               DEBUG("Getting message arguments failed");
-               return;
-       }
-
-       if (state) {
-               /* visible */
-               nd->quickpanel_info |= 1 << type;
-       } else {
-               /* hidden */
-               nd->quickpanel_info &= ~(1 << type);
-       }
-
-       DEBUG("Quickpanel changed type(%u) state(%u) info(%x)", type, state, nd->quickpanel_info);
-
-}
-
 TIZEN_PROD_STATIC void _send_app_gesture_support( const char* app_gesture_support )
 {
        Eldbus_Connection *conn = NULL;
@@ -2680,11 +2614,6 @@ void navigator_gestures_tracker_register(NavigatorData *nd, GestureCB gesture_cb
        if (!proxy) ERROR("Getting proxy failed");
        if (!eldbus_proxy_signal_handler_add(proxy, "GestureDetected", gesture_cb, nd))
                DEBUG("No signal handler returned");
-
-        /* following line could be removed when DALi atspi is working */
-       if (!eldbus_proxy_signal_handler_add(proxy, "QuickpanelChanged", quickpanel_changed_cb, nd))
-               DEBUG("No signal handler returned for QuickpanelChanged signal");
-
        DEBUG("Callback registration successful");
 }