From: YoungGun Chun Date: Fri, 17 May 2019 06:18:41 +0000 (+0900) Subject: Add missing call to _is_operation_permitted in _accessible_gesture_do atspi call X-Git-Tag: submit/tizen/20190530.111225~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F74%2F206374%2F5;p=platform%2Fupstream%2Fefl.git Add missing call to _is_operation_permitted in _accessible_gesture_do atspi call Change-Id: Ic7755741c384599ba4623a286a1a99f2203385cd --- diff --git a/src/lib/elementary/elm_atspi_bridge.c b/src/lib/elementary/elm_atspi_bridge.c index 622eeb2..6b76a54 100644 --- a/src/lib/elementary/elm_atspi_bridge.c +++ b/src/lib/elementary/elm_atspi_bridge.c @@ -962,6 +962,8 @@ fail: } //TIZEN_ONLY(20170405) Add gesture method to accessible interface +static Eina_Bool _is_operation_permitted(Eo *obj); + static Eldbus_Message * _accessible_gesture_do(const Eldbus_Service_Interface *iface, const Eldbus_Message *msg) { @@ -972,25 +974,26 @@ _accessible_gesture_do(const Eldbus_Service_Interface *iface, const Eldbus_Messa unsigned int event_time; Eldbus_Message *ret; Eina_Bool result = EINA_FALSE; - - if (!eldbus_message_arguments_get(msg, "iiiiiiu", &type, &x_beg, &y_beg, + if (_is_operation_permitted(obj)) + { + if (!eldbus_message_arguments_get(msg, "iiiiiiu", &type, &x_beg, &y_beg, &x_end, &y_end, &state, &event_time)) - return eldbus_message_error_new(msg, "org.freedesktop.DBus.Error.InvalidArgs", "Invalid index type."); - - ret = eldbus_message_method_return_new(msg); - EINA_SAFETY_ON_NULL_RETURN_VAL(ret, NULL); - - Efl_Access_Gesture_Info gesture_info; - gesture_info.type = (Efl_Access_Gesture)type; - gesture_info.x_beg = x_beg; - gesture_info.y_beg = y_beg; - gesture_info.x_end = x_end; - gesture_info.y_end = y_end; - gesture_info.state = (Efl_Access_Gesture_State)state; - gesture_info.event_time = event_time; - result = efl_access_object_gesture_do(obj, gesture_info); - eldbus_message_arguments_append(ret, "b", result); - + return eldbus_message_error_new(msg, "org.freedesktop.DBus.Error.InvalidArgs", "Invalid index type."); + + ret = eldbus_message_method_return_new(msg); + EINA_SAFETY_ON_NULL_RETURN_VAL(ret, NULL); + + Efl_Access_Gesture_Info gesture_info; + gesture_info.type = (Efl_Access_Gesture)type; + gesture_info.x_beg = x_beg; + gesture_info.y_beg = y_beg; + gesture_info.x_end = x_end; + gesture_info.y_end = y_end; + gesture_info.state = (Efl_Access_Gesture_State)state; + gesture_info.event_time = event_time; + result = efl_access_object_gesture_do(obj, gesture_info); + eldbus_message_arguments_append(ret, "b", result); + } return ret; } //