</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'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()
-{
- 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;
+ <li>Creates a new EFL WebKit view object</li>
+ <pre class="prettyprint">
+Evas *evas = evas_object_evas_get(window->elm_window);
+window->ewk_view = ewk_view_add(evas);
</pre></li>
</ol>