3 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #include "adventure.h"
24 Evas_Object *webview_create(Evas_Object *parent)
27 Evas_Object *webview = NULL;
30 retv_if(!parent, NULL);
33 retv_if(ret <= 0, NULL);
35 e = evas_object_evas_get(parent);
38 webview = ewk_view_add(e);
39 goto_if(!webview, error);
48 void webview_destroy(Evas_Object *webview)
51 evas_object_del(webview);
55 void webview_set_url(Evas_Object *webview, const char *url)
60 ewk_view_url_set(webview, url);