atspi: Make atspi,(un)highlighted callback work on widget item. 11/124811/3
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 12 Apr 2017 11:03:05 +0000 (20:03 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 17 Apr 2017 04:16:35 +0000 (21:16 -0700)
The atspi,(un)highlighted callback works only on the widget so far.

Change-Id: Id09aa5be251eb93e145483b8473ad6e12b3dcacc

src/lib/elm_colorselector.c
src/lib/elm_gengrid.c
src/lib/elm_index.c
src/lib/elm_list.c
src/lib/elm_toolbar.c
src/lib/elm_widget.c
src/mobile_lib/elc_ctxpopup.c
src/mobile_lib/elm_genlist.c

index 168d6c9958da956b3aa7862930802283fd6dc855..f7a8b2c216f200c82e94a92b21ebe35bced0d8aa 100644 (file)
@@ -2781,6 +2781,10 @@ _elm_color_item_elm_interface_atspi_component_highlight_grab(Eo *eo_it, Elm_Colo
    elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_TRUE);
 ///
 
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,highlighted", EO_OBJ(it));
+   //
    return EINA_TRUE;
 }
 
@@ -2792,6 +2796,10 @@ _elm_color_item_elm_interface_atspi_component_highlight_clear(Eo *eo_it EINA_UNU
    elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_FALSE);
 ///
 
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,unhighlighted", EO_OBJ(it));
+   //
    return EINA_TRUE;
 }
 
index 20b4359e7ea704c746126190b2d995ac44abbc9f..f2b40728079292d2c1cf4d781cb329f9cc0144d5 100644 (file)
@@ -6283,6 +6283,10 @@ _elm_gengrid_item_elm_interface_atspi_component_highlight_clear(Eo *eo_it, Elm_G
    elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_HIGHLIGHTED, EINA_FALSE);
 ///
 
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,unhighlighted", EO_OBJ(it));
+   //
    return EINA_TRUE;
 }
 
index 12022564cbedc44b1fbcd44e95c3ceee80790bcd..d1bd0e890fbee0608ebe85eba846a0e08fc40516 100644 (file)
@@ -1898,6 +1898,10 @@ _elm_index_item_elm_interface_atspi_component_highlight_grab(Eo *eo_it, Elm_Inde
    elm_object_accessibility_highlight_set(eo_it, EINA_TRUE);
    elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_TRUE);
 
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(obj, "atspi,highlighted", eo_it);
+   //
    return EINA_TRUE;
 }
 
@@ -1909,6 +1913,10 @@ _elm_index_item_elm_interface_atspi_component_highlight_clear(Eo *eo_it, Elm_Ind
    elm_object_accessibility_highlight_set(eo_it, EINA_FALSE);
    elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_FALSE);
 
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(obj, "atspi,unhighlighted", eo_it);
+   //
    return EINA_TRUE;
 }
 //
index 24598f079d07f76b3fc1b48db6d9ba8a9ee26614..a58529cfac8781d76487ef7fdee8b61ecbe2225c 100644 (file)
@@ -2220,6 +2220,10 @@ _elm_list_item_elm_interface_atspi_component_highlight_clear(Eo *eo_it, Elm_List
    elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_FALSE);
 ///
 
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,unhighlighted", EO_OBJ(it));
+   //
    return EINA_TRUE;
 }
 
@@ -3423,7 +3427,6 @@ _elm_list_elm_interface_scrollable_content_pos_set(Eo *obj EINA_UNUSED, Elm_List
    Evas_Object * highlighted_obj = _elm_object_accessibility_currently_highlighted_get();
    if (eo_isa(highlighted_obj, ELM_WIDGET_ITEM_CLASS))
      {
-        ERR("[KSW] ITEM!");
         Elm_Widget_Item_Data *id = eo_data_scope_get(highlighted_obj, ELM_WIDGET_ITEM_CLASS);
         highlighted_obj = id->view;
      }
@@ -3510,6 +3513,10 @@ _elm_list_item_elm_interface_atspi_component_highlight_grab(Eo *eo_it, Elm_List_
    elm_object_accessibility_highlight_set(eo_it, EINA_TRUE);
    elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_TRUE);
 ///
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,highlighted", EO_OBJ(it));
+   //
 #endif
 
    return EINA_TRUE;
index 0c4c13b2d3fe1165bc8765f7b3af5f829aed91f2..1562baacebde846555cc6d133e0fd0c25192ab04 100644 (file)
@@ -4202,6 +4202,10 @@ _elm_toolbar_item_elm_interface_atspi_component_highlight_grab(Eo *eo_it, Elm_To
    eo_do_super(EO_OBJ(it), ELM_TOOLBAR_ITEM_CLASS, elm_interface_atspi_component_highlight_grab());
    //
 
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,highlighted", EO_OBJ(it));
+   //
    return EINA_TRUE;
 }
 
@@ -4212,6 +4216,10 @@ _elm_toolbar_item_elm_interface_atspi_component_highlight_clear(Eo *eo_it, Elm_T
 ///TIZEN_ONLY(20170717) : expose highlight information on atspi
    elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_HIGHLIGHTED, EINA_FALSE);
 ///
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,unhighlighted", EO_OBJ(it));
+   //
    return EINA_TRUE;
 }
 //
index 061e50e31a977e37957d649f2ffefebdddbc6227..641732434aa29ad07a306780c83b13b37716d32d 100644 (file)
@@ -6937,7 +6937,6 @@ _elm_widget_item_elm_interface_atspi_component_focus_grab(Eo *obj EINA_UNUSED, E
 }
 
 //TIZEN_ONLY(20160329): atspi: implement HighlightGrab and HighlightClear methods
-
 EOLIAN static Eina_Bool
 _elm_widget_item_elm_interface_atspi_component_highlight_grab(Eo *obj, Elm_Widget_Item_Data *sd)
 {
@@ -6954,6 +6953,9 @@ _elm_widget_item_elm_interface_atspi_component_highlight_grab(Eo *obj, Elm_Widge
    if (!obj) return EINA_FALSE;
    elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_TRUE);
 
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   evas_object_smart_callback_call(sd->widget, SIG_WIDGET_ATSPI_HIGHLIGHTED, obj);
+   //
    return EINA_TRUE;
 }
 
@@ -6963,6 +6965,10 @@ _elm_widget_item_elm_interface_atspi_component_highlight_clear(Eo *obj, Elm_Widg
    if (!obj) return EINA_FALSE;
    elm_object_accessibility_highlight_set(sd->eo_obj, EINA_FALSE);
    elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_FALSE);
+
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   evas_object_smart_callback_call(sd->widget, SIG_WIDGET_ATSPI_UNHIGHLIGHTED, obj);
+   //
    return EINA_TRUE;
 }
 //
index 7501b02bc4da31f579cd43b05acaaa8ceb30cab9..4fa1fced519b94baf96f95e06e5cb8dc2aa29e66 100644 (file)
@@ -2503,6 +2503,10 @@ _elm_ctxpopup_item_elm_interface_atspi_component_highlight_grab(Eo *eo_it, Elm_C
 
    elm_object_accessibility_highlight_set(eo_it, EINA_TRUE);
    elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_TRUE);
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,highlighted", EO_OBJ(it));
+   //
    return EINA_TRUE;
 }
 
@@ -2511,7 +2515,10 @@ _elm_ctxpopup_item_elm_interface_atspi_component_highlight_clear(Eo *eo_it, Elm_
 {
    elm_object_accessibility_highlight_set(eo_it, EINA_FALSE);
    elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_HIGHLIGHTED, EINA_FALSE);
-
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,unhighlighted", EO_OBJ(it));
+   //
    return EINA_TRUE;
 }
 
index e4e73ec97aa24d159eea0a4c7dc81e5584b73f63..be3eaf52a0db00ff3aa0c73c1bc216d5b2e7fea2 100644 (file)
@@ -8734,6 +8734,10 @@ _elm_genlist_item_elm_interface_atspi_component_highlight_grab(Eo *eo_it, Elm_Ge
    elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_HIGHLIGHTED, EINA_TRUE);
    ///
 
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,highlighted", EO_OBJ(it));
+   //
 #endif
 
    if (VIEW(it))
@@ -8770,6 +8774,10 @@ _elm_genlist_item_elm_interface_atspi_component_highlight_clear(Eo *eo_it EINA_U
    //TIZEN_ONLY(20161104) : Accessibility : synchronized highlight of atspi and item align feature for wearable profile
    edje_object_signal_emit(VIEW(it), SIGNAL_ITEM_UNHIGHLIGHTED, "elm");
    //
+   //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+   // If you call eo_do_super, then you do NOT have to call smart callback.
+   evas_object_smart_callback_call(WIDGET(it), "atspi,unhighlighted", EO_OBJ(it));
+   //
 
    return EINA_TRUE;
 }