EAPI Evas_Object *elm_webview_webkit_get(Evas_Object *obj);
EAPI void elm_webview_events_feed_set(Evas_Object *obj, Eina_Bool feed);
EAPI Eina_Bool elm_webview_events_feed_get(Evas_Object *obj);
+ EAPI void elm_webview_events_block_set(Evas_Object *obj, Eina_Bool block);
+ EAPI Eina_Bool elm_webview_events_block_get(Evas_Object *obj);
EAPI void elm_webview_auto_fitting_set(Evas_Object *obj, Eina_Bool enable);
EAPI Eina_Bool elm_webview_auto_fitting_get(Evas_Object *obj);
EAPI Evas_Object *elm_webview_minimap_get(Evas_Object *obj);
return _elm_smart_webview_events_feed_get(wd->webkit);
}
+//FIXME: Is it right approach?
+EAPI void
+elm_webview_events_block_set(Evas_Object *obj, Eina_Bool block)
+{
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+ _elm_smart_webview_events_block_set(wd->webkit, block);
+}
+
+EAPI Eina_Bool
+elm_webview_events_block_get(Evas_Object *obj)
+{
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return EINA_FALSE;
+ return _elm_smart_webview_events_block_get(wd->webkit);
+}
+////////////////////////////////////////////////////////////////
+
EAPI void
elm_webview_auto_fitting_set(Evas_Object *obj, Eina_Bool enable)
{
unsigned char bounce_horiz : 1;
unsigned char bounce_vert : 1;
unsigned char events_feed : 1;
+ unsigned char events_block : 1;//FIXME
unsigned char auto_fitting : 1;
unsigned char mouse_clicked : 1;
unsigned char on_flick : 1;
return sd->events_feed;
}
+//FIXME: Is it right approach?
+void
+_elm_smart_webview_events_block_set(Evas_Object* obj, Eina_Bool block)
+{
+ API_ENTRY return;
+ sd->events_block = block;
+}
+
+Eina_Bool
+_elm_smart_webview_events_block_get(Evas_Object* obj)
+{
+ API_ENTRY return EINA_FALSE;
+ return sd->events_block;
+}
+///////////////////////////////////////////////////////////////////////////
+
void
_elm_smart_webview_auto_fitting_set(Evas_Object* obj, Eina_Bool enable)
{
Smart_Data* sd = (Smart_Data *)data;
if (!sd) return;
if (sd->events_feed == EINA_TRUE) return;
+ if (sd->events_block == EINA_TRUE) return; //FIXME
Evas_Point* point = (Evas_Point*)ev;
DBG(" argument : (%d, %d)\n", point->x, point->y);
// stop
if (smart_zoom_index < 0)
{
+ if (sd->events_block != EINA_TRUE) { //FIXME: It's not right way but for DEMONSTRATION
if (!sd->ewk_view_zoom_set)
sd->ewk_view_zoom_set = (Eina_Bool (*)(Evas_Object *, float, Evas_Coord, Evas_Coord))dlsym(ewk_handle, "ewk_view_zoom_set");
sd->ewk_view_zoom_set(sd->base.self, sd->zoom.zoom_rate_to_set,
sd->zoom.basis.x, sd->zoom.basis.y);
+ }
if (sd->smart_zoom_animator)
{
ecore_animator_del(sd->smart_zoom_animator);