[Tizen_2.4] Delete the "Setting the Page URL" in web_tutorials_n.htm
authorsihoons.yang <sihoons.yang@samsung.com>
Tue, 11 Aug 2015 02:53:46 +0000 (11:53 +0900)
committersihoons.yang <sihoons.yang@samsung.com>
Tue, 11 Aug 2015 02:56:42 +0000 (11:56 +0900)
Change-Id: I5a8c352808444d0f44676cde0e6a88b26f665442
Signed-off-by: sihoons.yang <sihoons.yang@samsung.com>
org.tizen.tutorials/html/native/web/web_tutorials_n.htm

index 699c498..9ee1f2c 100644 (file)
@@ -35,8 +35,6 @@
                        </li>
                        <li><a href="#show">Showing a Window and Setting the Focus</a>
                        </li>
-                       <li><a href="#pageurl">Setting the Page URL</a>
-                       </li>
                        <li><a href="#helper">Finding a Window</a>
                        </li>
                        <li><a href="#finalize">Finalizing the Application</a>
@@ -73,8 +71,6 @@
                <p>Handle the key and mouse event.</p></li>
                <li><a href="#show">Showing a Window and Setting the Focus</a>
                <p>Show a window and set the focus.</p></li>
-               <li><a href="#pageurl">Setting the Page URL</a>
-               <p>Set the page URL.</p></li>
                <li><a href="#helper">Finding a Window</a>
                <p>Use the helper functions to find a window.</p></li>
                <li><a href="#finalize">Finalizing the Application</a>
@@ -399,49 +395,6 @@ window_create()
 
 <p>The <span style="font-family: Courier New,Courier,monospace">void evas_object_show (Evas_Object *obj)</span> function makes the given <span style="font-family: Courier New,Courier,monospace">Evas</span> object visible.</p>
 
- <h2 id="pageurl" name="pageurl">Setting the Page URL</h2>
-
-<p>This example uses 2 helper functions for finding window structures. The first one, the <span style="font-family: Courier New,Courier,monospace">window_find_with_elm_window()</span> function, takes <span style="font-family: Courier New,Courier,monospace">elm_window</span> as an argument and returns a pointer to the <span style="font-family: Courier New,Courier,monospace">Browser_Window</span> object that the window is part of. The second one, the <span style="font-family: Courier New,Courier,monospace">window_find_with_ewk_view()</span> function, does the same with <span style="font-family: Courier New,Courier,monospace">ewk_view</span> passed as an argument. Both of them use the <span style="font-family: Courier New,Courier,monospace">EINA_LIST_FOREACH</span> macro to iterate over the windows list.</p>
-
-<pre class="prettyprint">
-char *url_from_user_input(const char *arg)
-{
-&nbsp;&nbsp;&nbsp;// If it is already a URL, return the argument as is
-&nbsp;&nbsp;&nbsp;if (has_scheme(arg) || !strcasecmp(arg, &quot;about:blank&quot;))
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return strdup(arg);
-
-&nbsp;&nbsp;&nbsp;Eina_Strbuf *buf = eina_strbuf_manage_new(eina_file_path_sanitize(arg));
-
-&nbsp;&nbsp;&nbsp;// Check whether the path exists
-&nbsp;&nbsp;&nbsp;if (ecore_file_exists(eina_strbuf_string_get(buf)))
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// File exists, convert local path to a URL
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eina_strbuf_prepend(buf, &quot;file://&quot;);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// The path does not exist, convert it to a URL by
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// prepending http:// scheme:
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// www.google.com -&gt; http://www.google.com
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eina_strbuf_string_free(buf);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eina_strbuf_append_printf(buf, &quot;http://%s&quot;, arg);
-&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;char *url = eina_strbuf_string_steal(buf);
-&nbsp;&nbsp;&nbsp;eina_strbuf_free(buf);
-
-&nbsp;&nbsp;&nbsp;return url;
-}
-</pre>
-
-<p>The body of the <span style="font-family: Courier New,Courier,monospace">has_scheme()</span> function used in the previous code can be found here:</p>
-
-<pre class="prettyprint">
-Eina_Bool has_scheme(const char *url)
-{
-&nbsp;&nbsp;&nbsp;return !!strstr(url, &quot;://&quot;);
-}
-</pre>
-
  <h2 id="helper" name="helper">Finding a Window</h2>
  
 <p>This example uses 2 helper functions for finding window structures. The first one, the <span style="font-family: Courier New,Courier,monospace">window_find_with_elm_window()</span> function, takes <span style="font-family: Courier New,Courier,monospace">elm_window</span> as an argument and returns a pointer to the <span style="font-family: Courier New,Courier,monospace">Browser_Window</span> object that the window is part of. The second one, the <span style="font-family: Courier New,Courier,monospace">window_find_with_ewk_view()</span> function, does the same for <span style="font-family: Courier New,Courier,monospace">ewk_view</span>. Both of them use the <span style="font-family: Courier New,Courier,monospace">EINA_LIST_FOREACH</span> macro to iterate over the windows list.</p>