From: sihoons.yang Date: Fri, 7 Aug 2015 03:45:16 +0000 (+0900) Subject: [Tizen_2.4] fix explain in api_comparison_n.htm X-Git-Tag: tizen_3.0/TD_SYNC/20161201~620^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17ddc9a5edcfdf9ce432e8b2e6dbfc5f25bbc791;p=sdk%2Fonline-doc.git [Tizen_2.4] fix explain in api_comparison_n.htm Delete 3. Set window geometry callbacks (window_geometry_get and window_geometry_set) for the window's smart class. 4. Use the evas_object_geometry_get(), evas_object_move(), and evas_object_resize() functions to react to events: Add 3. Creates a new EFL WebKit view object Change-Id: Ib8f346d3118a5d4bd41050964c05a213a7d06099 Signed-off-by: sihoons.yang --- diff --git a/org.tizen.guides/html/native/porting/api_comparison_n.htm b/org.tizen.guides/html/native/porting/api_comparison_n.htm index b5dba73..0a3c6cb 100644 --- a/org.tizen.guides/html/native/porting/api_comparison_n.htm +++ b/org.tizen.guides/html/native/porting/api_comparison_n.htm @@ -1455,25 +1455,10 @@ Browser_Window *window;
  • Create the window with the elm_win_add() function.
  • -
  • Set window geometry callbacks (window_geometry_get and window_geometry_set) for the window's smart class.
  • -
  • Use the evas_object_geometry_get(), evas_object_move(), and evas_object_resize() functions to react to events: -
    -static Ewk_View_Smart_Class *miniBrowserViewSmartClass() 
    -{ 
    -   static Ewk_View_Smart_Class ewkViewClass = EWK_VIEW_SMART_CLASS_INIT_NAME_VERSION("MiniBrowser_View"); 
    -
    -   return &ewkViewClass; 
    -} 
    -
    -ewk_view_smart_class_set(miniBrowserViewSmartClass());
    -
    -// Callback headers
    -// static Eina_Bool on_window_geometry_get(Ewk_View_Smart_Data *sd, Evas_Coord *x, Evas_Coord *y, Evas_Coord *width, Evas_Coord *height);
    -// static Eina_Bool on_window_geometry_set(Ewk_View_Smart_Data *sd, Evas_Coord x, Evas_Coord y, Evas_Coord width, Evas_Coord height);
    -
    -Ewk_View_Smart_Class *ewkViewClass = miniBrowserViewSmartClass();
    -ewkViewClass->window_geometry_get = on_window_geometry_get;
    -ewkViewClass->window_geometry_set = on_window_geometry_set;
    +	
  • Creates a new EFL WebKit view object
  • +
    +Evas *evas = evas_object_evas_get(window->elm_window);
    +window->ewk_view = ewk_view_add(evas);