[Tizen_2.4] fix explain in api_comparison_n.htm
authorsihoons.yang <sihoons.yang@samsung.com>
Fri, 7 Aug 2015 03:45:16 +0000 (12:45 +0900)
committersihoons.yang <sihoons.yang@samsung.com>
Fri, 7 Aug 2015 04:04:44 +0000 (13:04 +0900)
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 <sihoons.yang@samsung.com>
org.tizen.guides/html/native/porting/api_comparison_n.htm

index b5dba73..0a3c6cb 100644 (file)
@@ -1455,25 +1455,10 @@ Browser_Window *window;
 </pre></li>
        
        <li>Create the window with the <span style="font-family: Courier New,Courier,monospace">elm_win_add()</span> function.</li>
-       <li>Set window geometry callbacks (<span style="font-family: Courier New,Courier,monospace">window_geometry_get</span> and <span style="font-family: Courier New,Courier,monospace">window_geometry_set</span>) for the window&#39;s smart class.</li>
-       <li>Use the <span style="font-family: Courier New,Courier,monospace">evas_object_geometry_get()</span>, <span style="font-family: Courier New,Courier,monospace">evas_object_move()</span>, and  <span style="font-family: Courier New,Courier,monospace">evas_object_resize()</span> functions to react to events:
-       <pre class="prettyprint">
-static Ewk_View_Smart_Class *miniBrowserViewSmartClass() 
-{ 
-&nbsp;&nbsp;&nbsp;static Ewk_View_Smart_Class ewkViewClass = EWK_VIEW_SMART_CLASS_INIT_NAME_VERSION(&quot;MiniBrowser_View&quot;); 
-
-&nbsp;&nbsp;&nbsp;return &amp;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-&gt;window_geometry_get = on_window_geometry_get;
-ewkViewClass-&gt;window_geometry_set = on_window_geometry_set;
+       <li>Creates a new EFL WebKit view object</li>
+        <pre class="prettyprint">
+Evas *evas = evas_object_evas_get(window-&gt;elm_window);
+window-&gt;ewk_view = ewk_view_add(evas);
 </pre></li>
 </ol>