atspi: enhance _accessible_at_point_get 95/149995/2 submit/tizen/20170915.074959
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 13 Sep 2017 12:34:44 +0000 (21:34 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 15 Sep 2017 01:45:42 +0000 (01:45 +0000)
The _elm_widget_elm_interface_atspi_component_accessible_at_point_get is
seaching accessible object from bottom of tree.

If elm_popup, or elm_panel comes as a root object, then
the _elm_widget_elm_interface_atspi_component_accessible_at_point_get does not
search from bottom of tree.

To make seach logic consistent, we are using bottom-up approach first for both
elm_popup and elm_panel from this patch.

Change-Id: I2a31725e8ff69455b836d6f888e0b42695ad2af5

src/lib/elm_widget.c

index 152a2f9..7502188 100644 (file)
@@ -7522,7 +7522,9 @@ _elm_widget_elm_interface_atspi_component_accessible_at_point_get(Eo *obj, Elm_W
    Eina_List *l;
    Evas_Object *stack_item;
 
-   if(strcmp("Elm_Win", eo_class_name_get(eo_class_get(obj))))
+   if(strcmp("Elm_Win", eo_class_name_get(eo_class_get(obj))) &&
+      strcmp("Elm_Popup", eo_class_name_get(eo_class_get(obj))) &&
+      strcmp("Elm_Panel", eo_class_name_get(eo_class_get(obj))))
      return _accessible_at_point_top_down_get(obj, _pd, screen_coords, x, y);
 
    _coordinate_system_based_point_translate(obj, screen_coords, &x, &y);