{NULL, NULL}
};
+//TIZEN ONLY(20160829): Support tizen transition
+static int initted = 0;
+static Elm_Naviframe_Mod_Api *nf_mod = NULL;
+
+static void
+_nf_mod_init(void)
+{
+ Elm_Module *mod;
+
+ initted++;
+ if (initted > 1) return;
+ if (!(mod = _elm_module_find_as("naviframe/api"))) return;
+
+ mod->api = malloc(sizeof(Elm_Naviframe_Mod_Api));
+ if (!mod->api) return;
+
+ ((Elm_Naviframe_Mod_Api *)(mod->api))->tizen_push_effect =
+ _elm_module_symbol_get(mod, "tizen_push_effect");
+ ((Elm_Naviframe_Mod_Api *)(mod->api))->tizen_pop_effect =
+ _elm_module_symbol_get(mod, "tizen_pop_effect");
+
+ nf_mod = mod->api;
+}
+//
+
static Eina_Bool _on_item_back_btn_clicked(void *data,
Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED);
_elm_naviframe_evas_object_smart_add(Eo *obj, Elm_Naviframe_Data *priv)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
+ //TIZEN ONLY(20160829): Support tizen transition
+ _nf_mod_init();
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
elm_widget_sub_object_parent_add(obj);
_send_signal(cur, signals_cur[nfo->push]);
_send_signal(other, nfo->push ? signals_new : signals_prev);
+ //TIZEN ONLY(20160829): Support tizen transition
+ if (nfo->push)
+ {
+ if (nf_mod && nf_mod->tizen_push_effect)
+ nf_mod->tizen_push_effect(WIDGET(cur), VIEW(cur), VIEW(other));
+ }
+ else
+ {
+ if (nf_mod && nf_mod->tizen_pop_effect)
+ nf_mod->tizen_pop_effect(WIDGET(cur), VIEW(cur), VIEW(other));
+ }
+ //
+
free(nfo);
}
const char *part;
};
+//TIZEN ONLY(20160829): Support tizen transition
+typedef struct _Elm_Naviframe_Mod_Api Elm_Naviframe_Mod_Api;
+struct _Elm_Naviframe_Mod_Api
+{
+ void (*tizen_push_effect)(Evas_Object *nf, Evas_Object *cur_view, Evas_Object *new_view);
+ void (*tizen_pop_effect)(Evas_Object *nf, Evas_Object *cur_view, Evas_Object *prev_view);
+};
+//
+
/**
* @}
*/