[M69 Dev][API] Add mockup EWK APIs 91/193091/6
authorYoungsoo Choi <kenshin.choi@samsung.com>
Thu, 9 Mar 2017 06:27:45 +0000 (15:27 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Fri, 16 Nov 2018 07:56:10 +0000 (07:56 +0000)
This adds mockup EWK APIs to bring up m69.

Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/174539/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/193091/

Change-Id: Ic04f032723e70a7e6764e903cdab175c668f9d6f
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
121 files changed:
tizen_src/ewk/efl_integration/BUILD.gn
tizen_src/ewk/efl_integration/context_menu_controller_efl.cc
tizen_src/ewk/efl_integration/public/EWebKit.h
tizen_src/ewk/efl_integration/public/EWebKit_internal.h
tizen_src/ewk/efl_integration/public/EWebKit_product.h
tizen_src/ewk/efl_integration/public/ewk_app_installation_request_internal.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_application_cache_manager.cc
tizen_src/ewk/efl_integration/public/ewk_application_cache_manager_internal.h
tizen_src/ewk/efl_integration/public/ewk_auth_challenge.cc
tizen_src/ewk/efl_integration/public/ewk_auth_challenge_internal.h
tizen_src/ewk/efl_integration/public/ewk_auth_request.cc
tizen_src/ewk/efl_integration/public/ewk_auth_request_internal.h
tizen_src/ewk/efl_integration/public/ewk_autofill_profile.cc
tizen_src/ewk/efl_integration/public/ewk_autofill_profile.h
tizen_src/ewk/efl_integration/public/ewk_back_forward_list.cc
tizen_src/ewk/efl_integration/public/ewk_back_forward_list.h
tizen_src/ewk/efl_integration/public/ewk_back_forward_list_item.cc
tizen_src/ewk/efl_integration/public/ewk_back_forward_list_item.h
tizen_src/ewk/efl_integration/public/ewk_certificate.cc
tizen_src/ewk/efl_integration/public/ewk_certificate_internal.h
tizen_src/ewk/efl_integration/public/ewk_chromium.cc
tizen_src/ewk/efl_integration/public/ewk_console_message.cc
tizen_src/ewk/efl_integration/public/ewk_console_message_internal.h
tizen_src/ewk/efl_integration/public/ewk_content_screening_detection.cc
tizen_src/ewk/efl_integration/public/ewk_content_screening_detection_internal.h
tizen_src/ewk/efl_integration/public/ewk_content_screening_detection_product.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_context.cc
tizen_src/ewk/efl_integration/public/ewk_context.h
tizen_src/ewk/efl_integration/public/ewk_context_internal.h
tizen_src/ewk/efl_integration/public/ewk_context_menu.cc
tizen_src/ewk/efl_integration/public/ewk_context_menu.h
tizen_src/ewk/efl_integration/public/ewk_context_menu_internal.h
tizen_src/ewk/efl_integration/public/ewk_context_menu_product.h
tizen_src/ewk/efl_integration/public/ewk_context_product.h
tizen_src/ewk/efl_integration/public/ewk_cookie_manager.cc
tizen_src/ewk/efl_integration/public/ewk_cookie_manager.h
tizen_src/ewk/efl_integration/public/ewk_cookie_manager_internal.h
tizen_src/ewk/efl_integration/public/ewk_cookie_manager_product.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_custom_handlers.cc
tizen_src/ewk/efl_integration/public/ewk_custom_handlers.h [deleted file]
tizen_src/ewk/efl_integration/public/ewk_custom_handlers_internal.h
tizen_src/ewk/efl_integration/public/ewk_dispatcher.cc
tizen_src/ewk/efl_integration/public/ewk_dispatcher_internal.h
tizen_src/ewk/efl_integration/public/ewk_enums_internal.h
tizen_src/ewk/efl_integration/public/ewk_error.cc
tizen_src/ewk/efl_integration/public/ewk_error_internal.h
tizen_src/ewk/efl_integration/public/ewk_favicon_database.cc
tizen_src/ewk/efl_integration/public/ewk_favicon_database_internal.h
tizen_src/ewk/efl_integration/public/ewk_form_repost_decision.cc [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_form_repost_decision_product.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_frame.cc
tizen_src/ewk/efl_integration/public/ewk_frame_internal.h
tizen_src/ewk/efl_integration/public/ewk_geolocation.cc
tizen_src/ewk/efl_integration/public/ewk_geolocation.h
tizen_src/ewk/efl_integration/public/ewk_geolocation_internal.h
tizen_src/ewk/efl_integration/public/ewk_highcontrast.cc [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_highcontrast_product.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_history.cc
tizen_src/ewk/efl_integration/public/ewk_history_internal.h
tizen_src/ewk/efl_integration/public/ewk_hit_test.cc
tizen_src/ewk/efl_integration/public/ewk_hit_test_internal.h
tizen_src/ewk/efl_integration/public/ewk_intercept_request.cc
tizen_src/ewk/efl_integration/public/ewk_intercept_request.h
tizen_src/ewk/efl_integration/public/ewk_intercept_request_internal.h
tizen_src/ewk/efl_integration/public/ewk_ipc_message.cc
tizen_src/ewk/efl_integration/public/ewk_ipc_message_internal.h
tizen_src/ewk/efl_integration/public/ewk_log_internal.h
tizen_src/ewk/efl_integration/public/ewk_main.cc
tizen_src/ewk/efl_integration/public/ewk_main.h
tizen_src/ewk/efl_integration/public/ewk_main_internal.h
tizen_src/ewk/efl_integration/public/ewk_manifest.cc [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_manifest.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_manifest_internal.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_media_playback_info.cc [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_media_playback_info.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_media_playback_info_product.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_media_subtitle_info.cc [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_media_subtitle_info.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_media_subtitle_info_product.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_notification.cc
tizen_src/ewk/efl_integration/public/ewk_notification_internal.h
tizen_src/ewk/efl_integration/public/ewk_object.cc
tizen_src/ewk/efl_integration/public/ewk_object_internal.h
tizen_src/ewk/efl_integration/public/ewk_page_group.cc
tizen_src/ewk/efl_integration/public/ewk_page_group_internal.h
tizen_src/ewk/efl_integration/public/ewk_policy_decision.cc
tizen_src/ewk/efl_integration/public/ewk_policy_decision.h
tizen_src/ewk/efl_integration/public/ewk_policy_decision_internal.h
tizen_src/ewk/efl_integration/public/ewk_policy_decision_product.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_popup_menu_item.cc
tizen_src/ewk/efl_integration/public/ewk_popup_menu_item_internal.h
tizen_src/ewk/efl_integration/public/ewk_quota_permission_request.cc
tizen_src/ewk/efl_integration/public/ewk_quota_permission_request_internal.h
tizen_src/ewk/efl_integration/public/ewk_security_origin.cc
tizen_src/ewk/efl_integration/public/ewk_security_origin.h
tizen_src/ewk/efl_integration/public/ewk_security_origin_internal.h
tizen_src/ewk/efl_integration/public/ewk_settings.cc
tizen_src/ewk/efl_integration/public/ewk_settings.h
tizen_src/ewk/efl_integration/public/ewk_settings_internal.h
tizen_src/ewk/efl_integration/public/ewk_settings_product.h
tizen_src/ewk/efl_integration/public/ewk_storage_manager.cc
tizen_src/ewk/efl_integration/public/ewk_storage_manager_internal.h
tizen_src/ewk/efl_integration/public/ewk_text_style.cc
tizen_src/ewk/efl_integration/public/ewk_text_style.h [deleted file]
tizen_src/ewk/efl_integration/public/ewk_text_style_internal.h
tizen_src/ewk/efl_integration/public/ewk_touch_internal.h
tizen_src/ewk/efl_integration/public/ewk_tracing.cc
tizen_src/ewk/efl_integration/public/ewk_tracing_internal.h
tizen_src/ewk/efl_integration/public/ewk_user_media.cc
tizen_src/ewk/efl_integration/public/ewk_user_media.h [deleted file]
tizen_src/ewk/efl_integration/public/ewk_user_media_internal.h
tizen_src/ewk/efl_integration/public/ewk_value.cc [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_value_product.h [new file with mode: 0644]
tizen_src/ewk/efl_integration/public/ewk_view.cc
tizen_src/ewk/efl_integration/public/ewk_view.h
tizen_src/ewk/efl_integration/public/ewk_view_internal.h
tizen_src/ewk/efl_integration/public/ewk_view_product.h
tizen_src/ewk/efl_integration/public/ewk_web_application_icon_data.cc
tizen_src/ewk/efl_integration/public/ewk_web_application_icon_data_internal.h
tizen_src/ewk/efl_integration/public/ewk_window_features.cc
tizen_src/ewk/efl_integration/public/ewk_window_features_internal.h

index 01ba041..497c66c 100644 (file)
@@ -416,12 +416,15 @@ shared_library("chromium-ewk") {
     "public/ewk_console_message.h",
     "public/ewk_content_screening_detection.cc",
     "public/ewk_content_screening_detection.h",
+    "public/ewk_content_screening_detection_internal.h",
+    "public/ewk_content_screening_detection_product.h",
     "public/ewk_context.cc",
     "public/ewk_context.h",
     "public/ewk_context_menu.cc",
     "public/ewk_context_menu.h",
     "public/ewk_cookie_manager.cc",
     "public/ewk_cookie_manager.h",
+    "public/ewk_cookie_manager_product.h",
     "public/ewk_custom_handlers.cc",
     "public/ewk_custom_handlers.h",
     "public/ewk_dispatcher.cc",
@@ -431,10 +434,14 @@ shared_library("chromium-ewk") {
     "public/ewk_error.h",
     "public/ewk_favicon_database.cc",
     "public/ewk_favicon_database.h",
+    "public/ewk_form_repost_decision.cc",
+    "public/ewk_form_repost_decision_product.h",
     "public/ewk_frame.cc",
     "public/ewk_frame.h",
     "public/ewk_geolocation.cc",
     "public/ewk_geolocation.h",
+    "public/ewk_highcontrast.cc",
+    "public/ewk_highcontrast_product.h",
     "public/ewk_history.cc",
     "public/ewk_history.h",
     "public/ewk_hit_test.cc",
@@ -446,6 +453,11 @@ shared_library("chromium-ewk") {
     "public/ewk_log.h",
     "public/ewk_main.cc",
     "public/ewk_main.h",
+    "public/ewk_manifest_internal.h",
+    "public/ewk_media_playback_info.cc",
+    "public/ewk_media_playback_info_product.h",
+    "public/ewk_media_subtitle_info.cc",
+    "public/ewk_media_subtitle_info_product.h",
     "public/ewk_notification.cc",
     "public/ewk_notification.h",
     "public/ewk_object.cc",
@@ -454,6 +466,7 @@ shared_library("chromium-ewk") {
     "public/ewk_page_group.h",
     "public/ewk_policy_decision.cc",
     "public/ewk_policy_decision.h",
+    "public/ewk_policy_decision_product.h",
     "public/ewk_popup_menu_item.cc",
     "public/ewk_popup_menu_item.h",
     "public/ewk_quota_permission_request.cc",
@@ -471,6 +484,8 @@ shared_library("chromium-ewk") {
     "public/ewk_tracing.h",
     "public/ewk_user_media.cc",
     "public/ewk_user_media.h",
+    "public/ewk_value.cc",
+    "public/ewk_value_product.h",
     "public/ewk_view.cc",
     "public/ewk_view.h",
     "public/ewk_web_application_icon_data.cc",
index 6062b8f..fab1d5b 100644 (file)
@@ -115,6 +115,7 @@ void ContextMenuControllerEfl::GetProposedContextMenu() {
         std::string(dgettext("WebKit", "IDS_WEBVIEW_OPT_COPY_LINK_URL_ABB")),
         std::string(),
         params_.link_url.spec());
+#if !defined(EWK_BRINGUP)
 #if defined(OS_TIZEN)
     AddItemToProposedList(EWK_CONTEXT_MENU_ITEM_TYPE_ACTION,
         EWK_CONTEXT_MENU_ITEM_TAG_SHARE_LINK,
@@ -122,6 +123,7 @@ void ContextMenuControllerEfl::GetProposedContextMenu() {
         std::string(),
         params_.link_url.spec());
 #endif
+#endif
     AddItemToProposedList(EWK_CONTEXT_MENU_ITEM_TYPE_ACTION,
         EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_LINK_TO_DISK,
         std::string(dgettext("WebKit", "IDS_BR_BODY_SAVE_LINK")),
@@ -808,6 +810,7 @@ void ContextMenuControllerEfl::MenuItemSelected(ContextMenuItemEfl* menu_item)
               WindowOpenDisposition::NEW_FOREGROUND_TAB);
       break;
     }
+#if !defined(EWK_BRINGUP)
     case EWK_CONTEXT_MENU_ITEM_TAG_SHARE_LINK: {
 #if defined(OS_TIZEN)
       ShareLink(GURL(params_.link_url.spec()));
@@ -816,6 +819,7 @@ void ContextMenuControllerEfl::MenuItemSelected(ContextMenuItemEfl* menu_item)
 #endif
       break;
     }
+#endif
     case EWK_CONTEXT_MENU_ITEM_TAG_GO_BACK: {
       webview_->GoBack();
       break;
index 7d1b90c..389bcb8 100644 (file)
@@ -1,20 +1,19 @@
 /*
- * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2016 Samsung Electronics.
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
+ * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
index f69ebbd..4ac0c4b 100644 (file)
@@ -1,20 +1,26 @@
 /*
  * Copyright (C) 2016 Samsung Electronics. All rights reserved.
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
 #include "ewk_geolocation_internal.h"
 #include "ewk_history_internal.h"
 #include "ewk_hit_test_internal.h"
+#include "ewk_intercept_request_internal.h"
 #include "ewk_ipc_message_internal.h"
 #include "ewk_log_internal.h"
 #include "ewk_main_internal.h"
+#include "ewk_manifest_internal.h"
 #include "ewk_notification_internal.h"
 #include "ewk_object_internal.h"
 #include "ewk_page_group_internal.h"
index 5d1b5b8..471ec38 100644 (file)
@@ -1,20 +1,26 @@
 /*
  * Copyright (C) 2016 Samsung Electronics. All rights reserved.
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
 
 #include "ewk_context_menu_product.h"
 #include "ewk_context_product.h"
+#include "ewk_cookie_manager_product.h"
+#include "ewk_form_repost_decision_product.h"
+#include "ewk_highcontrast_product.h"
+#include "ewk_media_playback_info_product.h"
+#include "ewk_media_subtitle_info_product.h"
 #include "ewk_settings_product.h"
+#include "ewk_value_product.h"
 #include "ewk_view_product.h"
 
 /**
diff --git a/tizen_src/ewk/efl_integration/public/ewk_app_installation_request_internal.h b/tizen_src/ewk/efl_integration/public/ewk_app_installation_request_internal.h
new file mode 100644 (file)
index 0000000..d362343
--- /dev/null
@@ -0,0 +1,74 @@
+// Copyright 2017 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ewk_app_installation_request_internal_h
+#define ewk_app_installation_request_internal_h
+
+#include "ewk_manifest.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Struct for app installation request.
+ *
+ * @since_tizen 4.0
+ */
+typedef struct _Ewk_App_Installation_Request Ewk_App_Installation_Request;
+
+/**
+ * @brief Gets origin from which app installation request was called
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] request app installation request
+ *
+ * @return @c origin string. The string is only valid until related
+ *         Ewk_App_Installation_Request object is valid.
+ */
+EXPORT_API const char* ewk_app_installation_request_origin_get(Ewk_App_Installation_Request* request);
+
+/**
+ * @brief Gets app url provided along with app installation request
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] request app installation request
+ *
+ * @return @c app url string. The string is only valid until related
+ *         Ewk_App_Installation_Request object is valid.
+ */
+EXPORT_API const char* ewk_app_installation_request_app_url_get(Ewk_App_Installation_Request* request);
+
+/**
+ * @brief Gets manifest obtained from url provided along with app installation
+ *        request
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] request app installation request
+ *
+ * @return @c manifest instance. The object is only valid until related
+ *         Ewk_App_Installation_Request object is valid.
+ */
+EXPORT_API Ewk_View_Request_Manifest* ewk_app_installation_request_manifest_get(Ewk_App_Installation_Request* request);
+
+/**
+ * @brief Gets service worker url provided along with app installation request
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] request app installation request
+ *
+ * @return @c service worker url string. The string is only valid until related; Can be nullptr
+ *         Ewk_App_Installation_Request object is valid.
+ */
+EXPORT_API const char* ewk_app_installation_request_service_worker_url_get(Ewk_App_Installation_Request* request);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // ewk_app_installation_request_internal_h
index e67d396..04dc958 100644 (file)
@@ -1,8 +1,30 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_application_cache_manager_internal.h"
+#include "ewk_context_internal.h"
 #include "private/ewk_private.h"
 #include "ewk_context_internal.h"
 #include "tizen/system_info.h"
index 041c0ff..ad9fbb9 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_application_cache_manager_internal.h
index 4f5fb98..c30a020 100644 (file)
@@ -1,7 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_auth_challenge_internal.h"
 
index 4f478aa..f7cd233 100644 (file)
@@ -1,20 +1,26 @@
 /*
- * Copyright (C) 2012 Samsung Electronics
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
index 0d59279..b807a79 100644 (file)
@@ -1,7 +1,28 @@
-// Copyright (C) 2012 Intel Corporation. All rights reserved.
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2012 Intel Corporation. All rights reserved.
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_auth_request_internal.h"
 #include "private/ewk_private.h"
index a8a0a9b..395af04 100644 (file)
@@ -1,7 +1,28 @@
-// Copyright (C) 2012 Intel Corporation. All rights reserved.
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * copyright (C) 2012 Intel Corporation. All rights reserved.
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_auth_request_internal.h
index 884f329..8931ca2 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_autofill_profile.h"
 
index 194d1e7..46a6e2c 100644 (file)
@@ -1,20 +1,19 @@
 /*
- * Copyright (C) 2016 Samsung Electronics
+ * Copyright (C) 2016 Samsung Electronics.
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
+ * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
index f11d46d..2c09f49 100644 (file)
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 #include "ewk_back_forward_list.h"
@@ -33,25 +33,25 @@ Ewk_Back_Forward_List_Item* ewk_back_forward_list_current_item_get(const Ewk_Bac
   return static_cast<_Ewk_Back_Forward_List_Item *>(list->GetCurrentItem());
 }
 
-Ewk_Back_Forward_List_Item *ewk_back_forward_list_previous_item_get(const Ewk_Back_Forward_List *list)
+Ewk_Back_Forward_List_Item* ewk_back_forward_list_previous_item_get(const Ewk_Back_Forward_List* list)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(list, NULL);
   return static_cast<_Ewk_Back_Forward_List_Item *>(list->GetPrevItem());
 }
 
-Ewk_Back_Forward_List_Item *ewk_back_forward_list_next_item_get(const Ewk_Back_Forward_List *list)
+Ewk_Back_Forward_List_Item* ewk_back_forward_list_next_item_get(const Ewk_Back_Forward_List* list)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(list, NULL);
   return static_cast<_Ewk_Back_Forward_List_Item *>(list->GetNextItem());
 }
 
-Ewk_Back_Forward_List_Item *ewk_back_forward_list_item_at_index_get(const Ewk_Back_Forward_List *list, int index)
+Ewk_Back_Forward_List_Item* ewk_back_forward_list_item_at_index_get(const Ewk_Back_Forward_List* list, int index)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(list, NULL);
   return static_cast<_Ewk_Back_Forward_List_Item *>(list->GetItemAtIndex(index));
 }
 
-unsigned ewk_back_forward_list_count(Ewk_Back_Forward_List *list)
+unsigned ewk_back_forward_list_count(Ewk_Back_Forward_Listlist)
 {
   // Maybe -1 would be better when list is NULL
   // but 0 is here to be compliant with WebKit-EFL
@@ -59,7 +59,7 @@ unsigned ewk_back_forward_list_count(Ewk_Back_Forward_List *list)
   return list->GetLength();
 }
 
-Eina_List *ewk_back_forward_list_n_back_items_copy(const Ewk_Back_Forward_List *list, int limit)
+Eina_List* ewk_back_forward_list_n_back_items_copy(const Ewk_Back_Forward_List* list, int limit)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(list, NULL);
   int count = list->GetBackListLength();
@@ -73,7 +73,7 @@ Eina_List *ewk_back_forward_list_n_back_items_copy(const Ewk_Back_Forward_List *
   return result;
 }
 
-Eina_List *ewk_back_forward_list_n_forward_items_copy(const Ewk_Back_Forward_List *list, int limit)
+Eina_List* ewk_back_forward_list_n_forward_items_copy(const Ewk_Back_Forward_List* list, int limit)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(list, NULL);
   int count = list->GetForwardListLength();
index 2dd7686..fe48045 100644 (file)
@@ -1,27 +1,20 @@
 /*
- * Copyright (C) 2012 Intel Corporation. All rights reserved.
- * Copyright (C) 2016 Samsung Electronics. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions, and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * Copyright (C) 2012 Intel Corporation.
+ * Copyright (C) 2014-2016 Samsung Electronics.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
index 6a0f298..6c0a772 100644 (file)
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 #include "ewk_back_forward_list_item.h"
index 917fea5..1cfdf08 100644 (file)
@@ -1,26 +1,20 @@
 /*
- * Copyright (C) 2012 Intel Corporation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions, and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions, and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * Copyright (C) 2012 Intel Corporation.
+ * Copyright (C) 2014-2016 Samsung Electronics.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
index 00c1aa0..bcb58f3 100644 (file)
@@ -1,12 +1,34 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_certificate_internal.h"
 
 #include <string>
 
 #include "private/ewk_certificate_private.h"
+#include "private/ewk_private.h"
 
 void ewk_certificate_policy_decision_allowed_set(Ewk_Certificate_Policy_Decision* certificatePolicyDecision, Eina_Bool allowed)
 {
@@ -32,8 +54,25 @@ Eina_Stringshare* ewk_certificate_policy_decision_certificate_pem_get(Ewk_Certif
   return certificatePolicyDecision->certificatePem();
 }
 
-int ewk_certificate_policy_decision_error_get(Ewk_Certificate_Policy_Decision* certificatePolicyDecision)
+Ewk_Certificate_Policy_Decision_Error ewk_certificate_policy_decision_error_get(Ewk_Certificate_Policy_Decision* certificate_policy_decision)
 {
-  EINA_SAFETY_ON_NULL_RETURN_VAL(certificatePolicyDecision, 0);
-  return certificatePolicyDecision->error();
+  LOG_EWK_API_MOCKUP();
+  return EWK_CERTIFICATE_POLICY_DECISION_ERROR_UNKNOWN;
+}
+
+const char* ewk_certificate_info_pem_get(const Ewk_Certificate_Info* cert_info)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Eina_Bool ewk_certificate_info_is_context_secure(const Ewk_Certificate_Info* cert_info)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+Eina_Bool ewk_certificate_policy_decision_from_main_frame_get(const Ewk_Certificate_Policy_Decision* certificate_policy_decision)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
 }
index a0f33ae..1ddfa60 100644 (file)
@@ -1,9 +1,36 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/**
+ * @file    ewk_certificate_internal.h
+ * @brief   This file describes the engine APIs which allow deciding
+ *          whether pages with certificate compromise should be opened or not.
+ */
 
-#ifndef ewk_certificate_h
-#define ewk_certificate_h
+#ifndef ewk_certificate_internal_h
+#define ewk_certificate_internal_h
 
 #include <Eina.h>
 #include <tizen.h>
 extern "C" {
 #endif
 
+typedef enum _Ewk_Certificate_Policy_Decision_Error {
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_COMMON_NAME_INVALID, /**< The server
+      responded with a certificate whose common name did not match the host
+      name. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_DATE_INVALID, /**< The server responded
+     with a certificate that by our clock, appears to either not yet be valid or
+     to have expired. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_AUTHORITY_INVALID, /**< The server
+     responded with a certificate that is signed by an authority we don't
+     trust. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_NO_REVOCATION_MECHANISM, /**<
+     The certificate has no mechanism for determining if it is revoked. In
+     effect, this certificate cannot be revoked. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_UNABLE_TO_CHECK_REVOCATION, /**<
+     Revocation information for the security certificate for this site is not
+     available. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_REVOKED, /**< The server responded with
+      a certificate that has been revoked. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_INVALID, /**< The server responded with
+      a certificate that is invalid. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_WEAK_ALGORITHM, /**< The server
+      responded with a certificate that is signed using a weak signature
+      algorithm. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_NON_UNIQUE_NAME, /**< The host name
+      specified in the certificate is not unique. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_WEAK_KEY, /**< The server responded with
+      a certificate that contains a weak key (e.g. a too-small RSA key). */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_PINNED_KEY_NOT_IN_CHAIN, /**<
+      The certificate didn't match the public key pins for the host name. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_NAME_VIOLATION, /**< The certificate
+      claimed DNS names that are in violation of name constraints. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_VALIDITY_TOO_LONG, /**<
+      The certificate's validity period is too long. */
+
+  EWK_CERTIFICATE_POLICY_DECISION_ERROR_UNKNOWN = 1000 /**< Reported in case of
+      wrong usage of ewk_certificate_policy_decision_error_get API. */
+} Ewk_Certificate_Policy_Decision_Error;
+
 typedef struct _Ewk_Certificate_Policy_Decision Ewk_Certificate_Policy_Decision;
 
 /**
@@ -30,6 +107,9 @@ EXPORT_API void ewk_certificate_policy_decision_allowed_set(Ewk_Certificate_Poli
  *
  * This suspends the operation for certificate error policy decision when the signal for policy is emitted.
  * This is very usefull to decide the policy from the additional UI operation like the popup.
+ * After calling this API the client must call
+ * ewk_certificate_policy_decision_allowed_set in order to finalize the certificate
+ * handling. Otherwise the memory leak will occur.
  *
  * @param certificate_policy_decision certificate information data
  *
@@ -59,13 +139,58 @@ EXPORT_API Eina_Stringshare* ewk_certificate_policy_decision_url_get(Ewk_Certifi
 EXPORT_API Eina_Stringshare* ewk_certificate_policy_decision_certificate_pem_get(Ewk_Certificate_Policy_Decision* certificate_policy_decision);
 
 /**
- * Get the variable errro number to check the error cause about certificate error.
+ * Get the error of the certificate.
  *
  * @param certificate_policy_decision certificate information data
  *
- * @return @c error number
+ * @return @c error number on success or EWK_CERTIFICATE_POLICY_DECISION_ERROR_UNKNOWN
+ *         on failure
+ */
+EXPORT_API Ewk_Certificate_Policy_Decision_Error ewk_certificate_policy_decision_error_get(Ewk_Certificate_Policy_Decision* certificate_policy_decision);
+
+/**
+ * @brief The structure type that hold certificate's information
+ */
+typedef struct _Ewk_Certificate_Info Ewk_Certificate_Info;
+
+/**
+ * @brief Query certificate's PEM data
+ *
+ * @param[in] cert_info Certificate's information
+ *
+ * @return A certificate itself in the PEM format. It may be null what indicates that
+ *         webpage doesn't use the SSL protocol (e.g. HTTP).
+ */
+EXPORT_API const char* ewk_certificate_info_pem_get(const Ewk_Certificate_Info* cert_info);
+
+/**
+ * @brief Query if the context loaded with a given certificate is secure
+ *
+ * @details Even that webpage was successfully loaded with a given certificate, its context may not be secure.
+ *         Secure context means that webpage is fully authenticated (using SSL certificates) and
+ *         its content doesn't contain any insecure elements (like HTTP CSS, images, scripts etc.)
+ *
+ * @param[in] cert_info Certificate's information
+ *
+ * @return EINA_TRUE if the context is secure. Otherwise returns EINA_FALSE
+ */
+EXPORT_API Eina_Bool ewk_certificate_info_is_context_secure(const Ewk_Certificate_Info* cert_info);
+
+/**
+ * Returns information whether the certificate compromise comes from main frame.
+ *
+ * Certificate issue can be associated with main frame or sub resource
+ * such as image, script, font etc. Browsers usually notify the user about
+ * certificate compromise if it comes from main frame, whereas all
+ * sub resource are silently blocked, since the user does not really
+ * have a context for making the right decision.
+ *
+ * @certificate_policy_decision certificate information data
+ *
+ * @return @c EINA_TRUE if the certificate compromise comes from main frame,
+ * @c EINA_FALSE otherwise
  */
-EXPORT_API int ewk_certificate_policy_decision_error_get(Ewk_Certificate_Policy_Decision* certificate_policy_decision);
+EXPORT_API Eina_Bool ewk_certificate_policy_decision_from_main_frame_get(const Ewk_Certificate_Policy_Decision* certificate_policy_decision);
 
 #ifdef __cplusplus
 }
index 0928298..f0e05bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
  *
  */
 
-#include "public/ewk_chromium.h"
+#include "ewk_chromium.h"
 
 #include "command_line_efl.h"
 
-Eina_Bool ewk_chromium_append_command_line_flag(const char* flag)
+Eina_Bool ewk_chromium_append_command_line_flag(const char*)
 {
-  EINA_SAFETY_ON_NULL_RETURN_VAL(flag, EINA_FALSE);
-  CommandLineEfl::AppendSwitch(flag);
-  return EINA_TRUE;
+  // Deprecated in favour of ewk_set_arguments.
+  return EINA_FALSE;
 }
index b799838..62f877d 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_console_message_internal.h"
 
index 2e274d4..dfadc4b 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_console_message_internal.h
index 5a5727b..3eb84de 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_content_screening_detection_internal.h"
 #include "private/ewk_private.h"
@@ -24,3 +45,23 @@ Ewk_Error* ewk_content_screening_detection_error_get(Ewk_Content_Screening_Detec
   return NULL;
 }
 
+int ewk_content_screening_detection_level_get(Ewk_Content_Screening_Detection* content_screening_detection)
+{
+  // API is postponed. Possibly chromium's mechanism may be reused.
+  LOG_EWK_API_MOCKUP("Not Supported yet");
+  return 0;
+}
+
+const char* ewk_content_screening_detection_name_get(Ewk_Content_Screening_Detection* content_screening_detection)
+{
+  // API is postponed. Possibly chromium's mechanism may be reused.
+  LOG_EWK_API_MOCKUP("Not Supported yet");
+  return NULL;
+}
+
+const char* ewk_content_screening_detection_url_get(Ewk_Content_Screening_Detection* content_screening_detection)
+{
+  // API is postponed. Possibly chromium's mechanism may be reused.
+  LOG_EWK_API_MOCKUP("Not Supported yet");
+  return NULL;
+}
index ba3b28a..9e85273 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_content_screening_detection_internal_h
 #define ewk_content_screening_detection_internal_h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_content_screening_detection_product.h b/tizen_src/ewk/efl_integration/public/ewk_content_screening_detection_product.h
new file mode 100644 (file)
index 0000000..451ac64
--- /dev/null
@@ -0,0 +1,105 @@
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef ewk_content_screening_detection_product_h
+#define ewk_content_screening_detection_product_h
+
+#include <Eina.h>
+#include <tizen.h>
+#include "ewk_error.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _Ewk_Content_Screening_Detection Ewk_Content_Screening_Detection;
+
+/**
+ * Set the variable to allow the release confirm about malware error.
+ *
+ * @param content_screening_detection malware information data
+ *
+ * @param confirmed decided permission value from user
+ */
+EXPORT_API void ewk_content_screening_detection_confirmed_set(Ewk_Content_Screening_Detection* content_screening_detection, Eina_Bool confirmed);
+
+/**
+ * Suspend the operation for content screening detection.
+ *
+ * This suspends the operation for content screening detection when the signal is emitted.
+ * This is very usefull to decide the policy from the additional UI operation like the popup.
+ *
+ * @param content_screening_detection malware information data
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API void ewk_content_screening_detection_suspend(Ewk_Content_Screening_Detection* content_screening_detection);
+
+/**
+ * Get the variable errro structure to check the error cause about malware error.
+ *
+ * @param content_screening_detection malware information data
+ *
+ * @return @c error
+ */
+EXPORT_API Ewk_Error* ewk_content_screening_detection_error_get(Ewk_Content_Screening_Detection* content_screening_detection);
+
+/**
+ * @brief Get the level to check the error cause about malware error.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] content_screening_detection malware information data
+ *
+ * @return level
+ */
+EXPORT_API int ewk_content_screening_detection_level_get(Ewk_Content_Screening_Detection* content_screening_detection);
+
+/**
+ * @brief Get the name to check the error cause about malware error.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] content_screening_detection malware information data
+ *
+ * @return name
+ */
+EXPORT_API const char* ewk_content_screening_detection_name_get(Ewk_Content_Screening_Detection* content_screening_detection);
+
+/**
+ * @brief Get the url to check the error cause about malware error.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] content_screening_detection malware information data
+ *
+ * @return url
+ */
+EXPORT_API const char* ewk_content_screening_detection_url_get(Ewk_Content_Screening_Detection* content_screening_detection);
+
+#ifdef __cplusplus
+}
+#endif
+#endif //ewk_content_screening_detection_product_h
index 693dc76..dcfb218 100644 (file)
@@ -1,8 +1,29 @@
-// Copyright 2013-2015 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ewk_context.h"
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "ewk_context_product.h"
 
 #include "base/memory/ref_counted.h"
 #include "browser/favicon/favicon_database_p.h"
@@ -272,7 +293,7 @@ Eina_Bool ewk_context_cache_model_set(Ewk_Context* context, Ewk_Cache_Model mode
   return true;
 }
 
-Ewk_Cache_Model ewk_context_cache_model_get(Ewk_Context* context)
+Ewk_Cache_Model ewk_context_cache_model_get(const Ewk_Context* context)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(context, EWK_CACHE_MODEL_DOCUMENT_VIEWER);
   return context->GetCacheModel();
@@ -553,6 +574,12 @@ void ewk_context_tizen_app_id_set(Ewk_Context* context,
   context->SetWidgetInfo(tizen_app_id, 1.0, "theme", "encoded_bundle");
 }
 
+Eina_Bool ewk_context_tizen_app_version_set(Ewk_Context* context, const char* tizen_app_version)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
 Ewk_Application_Cache_Manager* ewk_context_application_cache_manager_get(const Ewk_Context* ewkContext)
 {
   LOG_EWK_API_MOCKUP("for Tizen TV Browser");
@@ -628,3 +655,173 @@ Eina_Bool ewk_context_notification_callbacks_reset(Ewk_Context* context)
   context->SetNotificationCallbacks(nullptr, nullptr, nullptr);
   return EINA_TRUE;
 }
+
+void ewk_context_compression_proxy_enabled_set(Ewk_Context* context, Eina_Bool enabled)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_context_compression_proxy_enabled_get(Ewk_Context* context)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_context_compression_proxy_image_quality_set(Ewk_Context* context, Ewk_Compression_Proxy_Image_Quality quality)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Ewk_Compression_Proxy_Image_Quality ewk_context_compression_proxy_image_quality_get(Ewk_Context* context)
+{
+  LOG_EWK_API_MOCKUP();
+  return EWK_COMPRESSION_PROXY_IMAGE_QUALITY_LOW;
+}
+
+void ewk_context_compression_proxy_data_size_get(Ewk_Context* context, unsigned* original_size, unsigned* compressed_size)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_context_compression_proxy_data_size_reset(Ewk_Context* context)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Ewk_Context *ewk_context_new_with_injected_bundle_path_in_incognito_mode(const char *path)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Eina_Bool ewk_context_audio_latency_mode_set(Ewk_Context* context, Ewk_Audio_Latency_Mode latency_mode)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Ewk_Audio_Latency_Mode ewk_context_audio_latency_mode_get(Ewk_Context* context)
+{
+  LOG_EWK_API_MOCKUP();
+  return EWK_AUDIO_LATENCY_MODE_ERROR;
+}
+
+Eina_Bool ewk_context_push_message_callback_set(Ewk_Context *context, Ewk_Push_Message_Cb callback, void *user_data)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_context_send_push_message(Ewk_Context *context, const char *push_data)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_context_proxy_set(Ewk_Context* context, const char* proxy, const char* bypass_rule)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+const char* ewk_context_proxy_bypass_rule_get(Ewk_Context* context)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Eina_Bool ewk_context_proxy_default_auth_set(Ewk_Context* context, const char* username, const char* password)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_context_password_confirm_popup_callback_set(Ewk_Context* context, Ewk_Context_Password_Confirm_Popup_Callback callback, void* user_data)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_context_password_confirm_popup_reply(Ewk_Context* context, Ewk_Context_Password_Popup_Option result)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_context_form_password_data_list_get(Ewk_Context* context, Ewk_Context_Form_Password_Data_List_Get_Callback callback, void* user_data)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_context_icon_database_delete_all(Ewk_Context* context)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_context_check_accessible_path_callback_set(Ewk_Context* context, Ewk_Context_Check_Accessible_Path_Callback callback, void* user_data)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_context_register_url_schemes_as_cors_enabled(Ewk_Context* context, const Eina_List* schemes)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_context_register_jsplugin_mime_types(Ewk_Context* context, const Eina_List* mime_types)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_context_websdi_set(Eina_Bool enable)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_context_websdi_get()
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_context_disable_nosniff_set(Ewk_Context* context, Eina_Bool enable)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_context_emp_certificate_file_set(Ewk_Context *context, const char* empCAPath, const char* defaultCAPath)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_context_web_database_usage_for_origin_get(Ewk_Context* context, Ewk_Web_Database_Usage_Get_Callback callback, void* user_data, Ewk_Security_Origin* origin)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_context_form_password_data_update(Ewk_Context* context, const char* url, Eina_Bool useFingerprint)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_context_background_music_set(Ewk_Context *ewkContext, Eina_Bool enable)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_context_application_type_set(Ewk_Context* ewkContext, const Ewk_Application_Type applicationType) {
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_context_pwa_storage_path_set(Ewk_Context* context, const char* pwa_storage_path) {
+  LOG_EWK_API_MOCKUP();
+  return EINA_FALSE;
+}
+
+void ewk_context_url_maxchars_set(Ewk_Context* context, size_t max_chars) {
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_context_service_worker_register(Ewk_Context* context, const char* scope_url, const char* script_url, Ewk_Context_Service_Worker_Registration_Result_Callback result_callback, void* user_data) {
+  LOG_EWK_API_MOCKUP();
+}
index 8422922..b58b80b 100644 (file)
@@ -1,20 +1,19 @@
 /*
- * Copyright (C) 2016 Samsung Electronics
+ * Copyright (C) 2013-2016 Samsung Electronics.
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
+ * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
@@ -61,7 +60,7 @@ extern "C" {
 typedef struct Ewk_Context Ewk_Context;
 
 /**
- * \enum    Ewk_Cache_Model
+ * \enum   _Ewk_Cache_Model
  * @brief   Contains option for cache model
  *
  * @since_tizen 2.4
@@ -127,7 +126,7 @@ EXPORT_API Eina_Bool ewk_context_cache_model_set(Ewk_Context* context, Ewk_Cache
  *
  * @return #Ewk_Cache_Model
  */
-EXPORT_API Ewk_Cache_Model ewk_context_cache_model_get(Ewk_Context* context);
+EXPORT_API Ewk_Cache_Model ewk_context_cache_model_get(const Ewk_Context* context);
 
 /**
  * @if MOBILE
@@ -271,28 +270,6 @@ EXPORT_API Evas_Object* ewk_context_icon_database_icon_object_add(Ewk_Context* c
 
 /**
  * @if MOBILE
- * @deprecated Deprecated 2.4
- *
- * @brief Sets the list of preferred languages.
- *
- * @details This function sets the list of preferred langages.\n
- *          This list will be used to build the "Accept-Language" header that
- *          will be included in the network requests.\n
- *          The client can pass @c NULL for languages to clear what is set
- *          before.
- *
- * @since_tizen 2.3
- *
- * @remarks All contexts will be affected.
- *
- * @param[in] languages The list of preferred languages (char* as data),\n
- *                      otherwise @c NULL
- * @endif
- */
-EXPORT_API void ewk_context_preferred_languages_set(Eina_List* languages);
-
-/**
- * @if MOBILE
  * @brief Requests for deleting all web indexed databases.
  *
  * @since_tizen 2.4
index 1965dd1..50df975 100644 (file)
@@ -1,20 +1,26 @@
 /*
- * Copyright (C) 2016 Samsung Electronics
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
@@ -64,6 +70,25 @@ typedef void (*Ewk_Context_Notification_Cancel_Callback)(
     void*);
 
 /**
+ * @internal
+ * @brief Enumeration for compression proxy image quality.
+ * @since_tizen 2.3
+ */
+enum _Ewk_Compression_Proxy_Image_Quality {
+  EWK_COMPRESSION_PROXY_IMAGE_QUALITY_LOW = 0,    /**< @internal Low */
+  EWK_COMPRESSION_PROXY_IMAGE_QUALITY_MEDIUM,     /**< @internal Medium */
+  EWK_COMPRESSION_PROXY_IMAGE_QUALITY_HIGH        /**< @internal High */
+};
+
+/**
+ * @internal
+ * @brief Creates a type name for @a #Ewk_Compression_Proxy_Image_Quality.
+ * @since_tizen 2.3
+ */
+typedef enum _Ewk_Compression_Proxy_Image_Quality Ewk_Compression_Proxy_Image_Quality;
+
+
+/**
  * Deletes Ewk_Context.
  *
  * @param context Ewk_Context to delete
@@ -150,14 +175,6 @@ typedef void (*Ewk_Web_Database_Quota_Get_Callback)(uint64_t quota, void* user_d
 typedef void (*Ewk_Web_Storage_Origins_Get_Callback)(Eina_List* origins, void* user_data);
 
 /**
- * Callback for ewk_context_web_storage_usage_for_origin_get.
- *
- * @param usage usage of web storage
- * @param user_data user_data will be passsed when ewk_context_web_storage_usage_for_origin_get is called
- */
-typedef void (*Ewk_Web_Storage_Usage_Get_Callback)(uint64_t usage, void* user_data);
-
-/**
  * Callback for didStartDownload
  *
  * @param download_url url to download
@@ -255,6 +272,9 @@ EXPORT_API Eina_Bool ewk_context_soup_data_directory_set(Ewk_Context* context, c
 /**
 * Toggles the cache enable and disable
 *
+* Function works asynchronously.
+* By default the cache is disabled resulting in not storing network data on disk.
+*
 * @param context context object
 * @param enable or disable cache
 *
@@ -279,6 +299,79 @@ EXPORT_API Eina_Bool ewk_context_cache_disabled_set(Ewk_Context* ewkContext, Ein
  */
 EXPORT_API Eina_Bool ewk_context_certificate_file_set(Ewk_Context *context, const char *certificate_path);
 
+
+/**
+ * @internal
+ * @brief Enable or disable proxy
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] context context object
+ * @param[in] enabled enable or disable proxy
+ *
+ */
+EXPORT_API void ewk_context_compression_proxy_enabled_set(Ewk_Context* context, Eina_Bool enabled);
+
+/**
+ * @internal
+ * @brief Returns currently proxy is enabled or not
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] context context object
+ *
+ * @return @c EINA_TRUE on enabled or @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_context_compression_proxy_enabled_get(Ewk_Context* context);
+
+/**
+ * @internal
+ * @brief Set image quality of proxy compression
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] context context object
+ * @param[in] quality image quality
+ *
+ */
+EXPORT_API void ewk_context_compression_proxy_image_quality_set(Ewk_Context* context, Ewk_Compression_Proxy_Image_Quality quality);
+
+/**
+ * @internal
+ * @brief Returns current image quality
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] context context object
+ *
+ * @return @c Ewk_Compression_Proxy_Image_Quality
+ */
+EAPI Ewk_Compression_Proxy_Image_Quality ewk_context_compression_proxy_image_quality_get(Ewk_Context* context);
+
+/**
+ * @internal
+ * @brief Returns original and compressed data size
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] context context object
+ * @param[out] original_size uncompressed data size
+ * @param[out] compressed_size compressed size
+ *
+ */
+EXPORT_API void ewk_context_compression_proxy_data_size_get(Ewk_Context* context, unsigned* original_size, unsigned* compressed_size);
+
+/**
+ * @internal
+ * @brief Reset original and compressed data size
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] context context object
+ *
+ */
+EXPORT_API void ewk_context_compression_proxy_data_size_reset(Ewk_Context* context);
+
 /**
 * Gets CA certifcate file path
 *
@@ -375,9 +468,6 @@ EXPORT_API Ewk_Context *ewk_context_new(void);
  *
  * The returned Ewk_Context object @b should be unref'ed after use.
  *
- * Ewk view based on chromium engine does not support this API
- * Avoid using this API
- *
  * @param path path of injected bundle library
  *
  * @return Ewk_Context object on success or @c NULL on failure
@@ -388,6 +478,18 @@ EXPORT_API Ewk_Context *ewk_context_new(void);
 EXPORT_API Ewk_Context *ewk_context_new_with_injected_bundle_path(const char *path);
 
 /**
+ * @brief Creates a new Ewk_Context in incognito mode.
+ *
+ * @param[in] path Path of injected bundle library
+ *
+ * @return The Ewk_Context object on success or otherwise @c NULL on failure
+ *
+ * @see ewk_context_new
+ * @see ewk_context_new_with_injected_bundle_path
+ */
+EXPORT_API Ewk_Context *ewk_context_new_with_injected_bundle_path_in_incognito_mode(const char *path);
+
+/**
  * Sets additional plugin directory.
  *
  * @param context context object
@@ -413,11 +515,6 @@ EXPORT_API Eina_Bool ewk_context_additional_plugin_path_set(Ewk_Context *context
  */
 EXPORT_API void ewk_context_vibration_client_callbacks_set(Ewk_Context *context, Ewk_Vibration_Client_Vibrate_Cb vibrate, Ewk_Vibration_Client_Vibration_Cancel_Cb cancel, void *data);
 
-struct Ewk_Password_Data {
-    char* url;
-    Eina_Bool useFingerprint;
-};
-
 /**
  * Sets callback for profiles change notification.
  *
@@ -547,6 +644,20 @@ EINA_DEPRECATED EXPORT_API void ewk_send_widget_info(Ewk_Context *context, const
 EXPORT_API void ewk_context_tizen_app_id_set(Ewk_Context *context, const char *tizen_app_id);
 
 /**
+ * Sets tizen application version for @a context.
+ *
+ * Must be called after use ewk_context_tizen_app_id_set
+ * or ewk_send_widget_info beacuse need drop the process
+ * privillage and set dynamic plugin.
+ *
+ * @param context context object
+ * @param tizen_app_version tizen application version
+ *
+ * @return @c EINA_TRUE if successful, @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_context_tizen_app_version_set(Ewk_Context* context, const char* tizen_app_version);
+
+/**
  * Gets the application cache manager instance for this @a context.
  *
  * @param context context object to query.
@@ -631,6 +742,93 @@ EXPORT_API void ewk_context_timezone_offset_set(Ewk_Context* context,
                                                 double time_zone_offset,
                                                 double daylight_saving_time);
 
+enum _Ewk_Audio_Latency_Mode {
+    EWK_AUDIO_LATENCY_MODE_LOW = 0, /**< Low audio latency mode */
+    EWK_AUDIO_LATENCY_MODE_MID, /**< Middle audio latency mode */
+    EWK_AUDIO_LATENCY_MODE_HIGH, /**< High audio latency mode */
+    EWK_AUDIO_LATENCY_MODE_ERROR = -1 /** Error */
+};
+
+typedef enum _Ewk_Audio_Latency_Mode Ewk_Audio_Latency_Mode;
+
+/**
+ * @brief Set the mode of audio latency.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] context context object
+ * @param[in] latency_mode Ewk_Audio_Latency_Mode
+ *
+ * @return @c EINA_TRUE if successful, @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_context_audio_latency_mode_set(Ewk_Context* context, Ewk_Audio_Latency_Mode latency_mode);
+
+/**
+ * @brief Get the mode of audio latency.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] context context object
+ *
+ * @return @c Ewk_Audio_Latency_Mode if successful, @c EWK_AUDIO_LATENCY_MODE_ERROR otherwise
+ */
+EXPORT_API Ewk_Audio_Latency_Mode ewk_context_audio_latency_mode_get(Ewk_Context* context);
+
+/**
+ * @typedef Ewk_Push_Message_Cb
+ * @brief Type definition for a function that will be called back when send web_push_message
+ * request receiveed from the web_push controller.
+ */
+typedef void (*Ewk_Push_Message_Cb)(const char *sender_id, const char *push_data, void *user_data);
+
+/**
+ * Sets web push callbacks to handle the web push message
+ *
+ * To stop web push events, you may call this function with @c
+ * NULL for the callbacks.
+ *
+ * @param context context object to set vibration client callbacks.
+ * @param push call funstion when the send the web push message from the
+ *        controller (may be @c NULL).
+ * @param user_data User data (may be @c NULL).
+ *
+ * @return @c EINA_TRUE if successful, @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_context_push_message_callback_set(Ewk_Context *context, Ewk_Push_Message_Cb callback, void *user_data);
+
+/**
+ * Sends the web push message to control web push events.
+ *
+ * @param context context object to set vibration client callbacks.
+ * @param push_data User data (may be @c NULL).
+ *
+ * @return @c EINA_TRUE if successful, @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_context_send_push_message(Ewk_Context *context, const char *push_data);
+
+/**
+ * Result callback for @a ewk_context_service_worker_register api.
+ *
+ * @param context context object
+ * @param scope_url scope url for which service worker registration was called
+ * @param script_url service worker script url
+ * @param result @c EINA_TRUE on success or @c EINA_FALSE on failure
+ * @param user_data user data passed to @a ewk_context_service_worker_register api
+ */
+typedef void (*Ewk_Context_Service_Worker_Registration_Result_Callback)(Ewk_Context *context, const char* scope_url, const char* script_url, Eina_Bool result, void* user_data);
+
+/**
+ * Register service worker for scope. It allows to register third party service
+ * workers also.
+ *
+ * @param context context object
+ * @param scope_url scope url for which service worker should be registered
+ * @param script_url service worker script url
+ * @param result_callback result callback
+ * @param user_data user data to be passed to @a result_callback
+ */
+EXPORT_API void ewk_context_service_worker_register(Ewk_Context* context, const char* scope_url, const char* script_url, Ewk_Context_Service_Worker_Registration_Result_Callback result_callback, void* user_data);
+
 #ifdef __cplusplus
 }
 #endif
index db41d2e..f36a847 100644 (file)
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "ewk_context_menu.h"
+#include "ewk_context_menu_product.h"
 
 #include <Eina.h>
-
+#include "private/ewk_private.h"
 #include "private/ewk_context_menu_private.h"
 #include "context_menu_controller_efl.h"
 
@@ -101,3 +101,59 @@ const char* ewk_context_menu_item_image_url_get(Ewk_Context_Menu_Item* item)
   content::ContextMenuItemEfl *info_item = item->GetMenuItem();
   return info_item->ImageURL().c_str();
 }
+
+const char* ewk_context_menu_item_title_get(const Ewk_Context_Menu_Item* item)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Eina_Bool ewk_context_menu_item_checked_get(const Ewk_Context_Menu_Item* item)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Ewk_Context_Menu* ewk_context_menu_item_submenu_get(const Ewk_Context_Menu_Item* item)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+const Eina_List* ewk_context_menu_items_get(const Ewk_Context_Menu* menu)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Ewk_Context_Menu* ewk_context_menu_item_parent_menu_get(const Ewk_Context_Menu_Item* item)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Eina_Bool ewk_context_menu_item_select(Ewk_Context_Menu* menu, Ewk_Context_Menu_Item* item)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_context_menu_hide(Ewk_Context_Menu* menu)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+#if defined(OS_TIZEN_TV)
+int ewk_context_menu_pos_x_get(Ewk_Context_Menu* menu)
+{
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+int ewk_context_menu_pos_y_get(Ewk_Context_Menu* menu)
+{
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+#endif // OS_TIZEN_TV
index 7558e0e..b41c786 100644 (file)
@@ -1,21 +1,19 @@
 /*
- * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2013-2016 Samsung Electronics.
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA  02110-1301, USA.
+ * Lesser General Public License for more details.
  *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
@@ -58,7 +56,6 @@ enum _Ewk_Context_Menu_Item_Tag{
     EWK_CONTEXT_MENU_ITEM_TAG_GO_BACK,  /**< Go back */
     EWK_CONTEXT_MENU_ITEM_TAG_GO_FORWARD,  /**< Go forward */
     EWK_CONTEXT_MENU_ITEM_TAG_STOP,  /**< Stop */
-    EWK_CONTEXT_MENU_ITEM_TAG_SHARE_LINK,
     EWK_CONTEXT_MENU_ITEM_TAG_SHARE,  /**< Share */
     EWK_CONTEXT_MENU_ITEM_TAG_RELOAD,  /**< Reload */
     EWK_CONTEXT_MENU_ITEM_TAG_CUT,  /**< Cut  */
@@ -185,6 +182,9 @@ EXPORT_API Ewk_Context_Menu_Item* ewk_context_menu_nth_item_get(Ewk_Context_Menu
 /**
  * @brief Removes the context menu item from the context menu object.
  *
+ * @remarks If all context menu items are removed, neither context menu nor\n
+ *          selection handles will be shown.
+ *
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
  *
  * @param[in] menu The context menu object
@@ -249,7 +249,7 @@ EXPORT_API Ewk_Context_Menu_Item_Tag ewk_context_menu_item_tag_get(Ewk_Context_M
  *
  * @since_tizen 2.3
  *
- * @param[in] menu The context menu item object
+ * @param[in] item The context menu item object
  *
  * @return The current link url string on success,\n
  *         otherwise @c 0 on failure
@@ -263,7 +263,7 @@ EXPORT_API const char* ewk_context_menu_item_link_url_get(Ewk_Context_Menu_Item*
  *
  * @since_tizen 2.3
  *
- * @param[in] menu The context menu item object
+ * @param[in] item The context menu item object
  *
  * @return The current image url string on success,\n
  *         otherwise @c 0 on failure
index b5ff0d4..7e0e2a3 100644 (file)
@@ -1,21 +1,26 @@
 /*
- * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA  02110-1301, USA.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
index 79c457d..59a75c8 100644 (file)
@@ -1,21 +1,26 @@
 /*
- * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA  02110-1301, USA.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
@@ -33,6 +38,17 @@ extern "C" {
 #endif
 
 /**
+ * @brief The enum of Ewk_Context_Menu_Item_Tag for additional item tags
+ * @since_tizen 2.4.0.2
+ */
+
+enum _Ewk_Context_Menu_New_Item_Tag {
+    EWK_CONTEXT_MENU_ITEM_NEW_TAGS = 9000,
+    EWK_CONTEXT_MENU_ITEM_TAG_QUICKMEMO,
+    EWK_CONTEXT_MENU_ITEM_TAG_OPEN_LINK_IN_BACKGROUND
+};
+
+/**
  * Gets a title of the item.
  *
  * @param item the item to get the title
@@ -93,6 +109,24 @@ EXPORT_API Eina_Bool ewk_context_menu_item_select(Ewk_Context_Menu *menu, Ewk_Co
  */
 EXPORT_API Eina_Bool ewk_context_menu_hide(Ewk_Context_Menu *menu);
 
+#if defined(OS_TIZEN_TV)
+/**
+ * Gets the x_position of context menu.
+ *
+ * @param menu the context menu to get x_position
+ * @return the x_position of context menu on success or @c 0 on failure
+ */
+EXPORT_API int ewk_context_menu_pos_x_get(Ewk_Context_Menu* menu);
+
+/**
+ * Gets the y_position of context menu.
+ *
+ * @param menu the context menu to get y_position
+ * @return the y_position of context menu on success or @c 0 on failure
+ */
+EXPORT_API int ewk_context_menu_pos_y_get(Ewk_Context_Menu* menu);
+#endif // OS_TIZEN_TV
+
 #ifdef __cplusplus
 }
 #endif
index 2b36616..2ab4676 100644 (file)
@@ -1,20 +1,26 @@
 /*
- * Copyright (C) 2016 Samsung Electronics
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
@@ -56,7 +62,38 @@ enum _Ewk_Application_Type {
 typedef enum _Ewk_Application_Type Ewk_Application_Type;
 
 /**
+ * @brief Enumeration for password popup option.
+ * @since_tizen 2.3
+ */
+enum Ewk_Context_Password_Popup_Option {
+  EWK_CONTEXT_PASSWORD_POPUP_SAVE,    /**< The option of response */
+  EWK_CONTEXT_PASSWORD_POPUP_NOT_NOW, /**< The option of response */
+  EWK_CONTEXT_PASSWORD_POPUP_NEVER    /**< The option of response */
+};
+/**
+ * @brief Creates a type name for @a Ewk_Context_Password_Popup_Option.
+ * @since_tizen 2.3
+ */
+typedef enum Ewk_Context_Password_Popup_Option Ewk_Context_Password_Popup_Option;
+
+/**
+ * Callback to check a file request is allowed for specific tizen app id
+ *
+ * @param tizen_app_id Tizen app id.
+ * @param url The url for the file request.
+ * @return @c EINA_TRUE if the url can access or @c EINA_FALSE otherwise.
+ */
+typedef Eina_Bool (*Ewk_Context_Check_Accessible_Path_Callback)(
+    const char* tizen_app_id,
+    const char* url,
+    void* user_data);
+
+/**
  * @brief Sets the given proxy to network backend of specific context.
+ *        Proxy string and bypass_rule string follow rules of proxy_config.h
+ *        Note that, it does not support username:password. If proxy string
+ *        contains username:password, the proxy setting will not work.
+ *        default auth setting see @c ewk_context_proxy_default_auth_set api
  *
  * @since_tizen 2.3
  *
@@ -69,6 +106,17 @@ EXPORT_API void ewk_context_proxy_set(Ewk_Context* context,
                                       const char* bypass_rule);
 
 /**
+ * @brief Sets the given proxy URI to network backend of specific context.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] context object to set proxy URI
+ * @param[in] proxy URI to set
+ */
+EXPORT_API void ewk_context_proxy_uri_set(Ewk_Context* context,
+                                          const char* proxy);
+
+/**
  * @brief Gets the proxy URI from the network backend of specific context.
  *
  * @details It returns an internal string and should not\n
@@ -87,6 +135,16 @@ EXPORT_API void ewk_context_proxy_set(Ewk_Context* context,
 EXPORT_API const char* ewk_context_proxy_uri_get(Ewk_Context* context);
 
 /**
+ * @brief Sets the given proxy URI to network backend of specific context.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] context object to set proxy URI
+ * @param[in] proxy URI to set
+ */
+EXPORT_API void ewk_context_proxy_uri_set(Ewk_Context* context, const char* proxy);
+
+/**
  * @brief Gets the proxy bypass rule from the network backend of specific
  *        context.
  *
@@ -116,6 +174,26 @@ EXPORT_API const char* ewk_context_proxy_bypass_rule_get(Ewk_Context* context);
 EXPORT_API void ewk_context_url_maxchars_set(Ewk_Context* context, size_t max_chars);
 
 /**
+ * @brief Sets a proxy auth credential to network backend of specific context.
+ *
+ * @details Normally, proxy auth credential should be got from the callback
+ *          set by ewk_view_authentication_callback_set, once the username in
+ *          this API has been set with a non-null value, the authentication
+ *          callback will never been invoked. Try to avoid using this API.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] context context object to set proxy
+ * @param[in] username username to set
+ * @param[in] password password to set
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_context_proxy_default_auth_set(Ewk_Context* context,
+                                                        const char* username,
+                                                        const char* password);
+
+/**
  * @brief Callback for ewk_context_local_file_system_origins_get
  *
  * @since_tizen 2.3
@@ -149,6 +227,16 @@ typedef void (*Ewk_Web_Database_Quota_Get_Callback)(uint64_t quota, void* user_d
 typedef void (*Ewk_Web_Storage_Origins_Get_Callback)(Eina_List* origins, void* user_data);
 
 /**
+ * @brief Callback for ewk_context_web_database_usage_for_origin_get.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] usage web database usage
+ * @param[in] user_data user_data will be passsed when ewk_context_web_database_usage_for_origin_get is called
+ */
+typedef void (*Ewk_Web_Database_Usage_Get_Callback)(uint64_t usage, void* user_data);
+
+/**
  * @brief Callback for ewk_context_web_storage_usage_for_origin_get.
  *
  * @since_tizen 2.3
@@ -181,6 +269,27 @@ typedef void (*Ewk_Context_Did_Start_Download_Callback)(const char* download_url
 typedef void (*Ewk_Context_Password_Confirm_Popup_Callback)(Evas_Object* view, void* user_data);
 
 /**
+* @brief Sets callback for show password confirm popup.
+*
+* @since_tizen 2.3
+*
+* @param[in] context context object
+* @param[in] callback callback for show password confirm popup
+* @param[in] user_data user data
+*/
+EXPORT_API void ewk_context_password_confirm_popup_callback_set(Ewk_Context* context, Ewk_Context_Password_Confirm_Popup_Callback callback, void* user_data);
+
+/**
+* @brief Password confirm popup reply
+*
+* @since_tizen 2.3
+*
+* @param[in] context context object
+* @param[in] result The option of response
+*/
+EXPORT_API void ewk_context_password_confirm_popup_reply(Ewk_Context* context, Ewk_Context_Password_Popup_Option result);
+
+/**
  * @brief Requests for setting application cache quota for origin.
  *
  * @since_tizen 2.3
@@ -322,8 +431,13 @@ EXPORT_API Eina_Bool ewk_context_cache_disabled_get(const Ewk_Context* context);
  *
  * @since_tizen 2.3
  *
+ * @details This function is for logging of memory usage. The log file will be
+ *          created in /tmp path. Sample is gathered every second until the
+ *          specified interval has passed, 0 for infinite.
+ *
  * @param[in] context context object
- * @param[in] timer_interval time gap to fire the timer
+ * @param[in] timer_interval time in seconds after which sampler should
+ *            stop gathering the measurement
 */
 EXPORT_API void ewk_context_memory_sampler_start(Ewk_Context* context, double timer_interval);
 
@@ -373,6 +487,15 @@ typedef void (*Ewk_Vibration_Client_Vibration_Cancel_Cb)(void* user_data);
 EXPORT_API void ewk_context_memory_saving_mode_set(Ewk_Context* context, Eina_Bool mode);
 
 /**
+ * @brief Struct for password data
+ * @since_tizen 2.3
+ */
+struct Ewk_Password_Data {
+  char* url;
+  Eina_Bool useFingerprint;
+};
+
+/**
  * @brief Deletes password data from DB for given URL
  *
  * @details The API will delete the a password data from DB.
@@ -387,22 +510,34 @@ EXPORT_API void ewk_context_memory_saving_mode_set(Ewk_Context* context, Eina_Bo
  */
 EXPORT_API void ewk_context_form_password_data_delete(Ewk_Context* context, const char* url);
 
+
 /**
- * @brief Get all password url list
+ * @brief Callback for ewk_context_form_password_data_list_get
  *
- * @details The API will delete the a password data list only from the memory.\n
- *          To remove the password data for URL permenantly,
- *          use ewk_context_form_password_data_delete
+ * @since_tizen 3.0
  *
- * @since_tizen 2.3
+ * @param[in] list list of Ewk_Password_Data
+ * @param[in] user_data user_data will be passed when
+ *            ewk_context_form_password_data_list_get is called
+ */
+typedef void (*Ewk_Context_Form_Password_Data_List_Get_Callback)(Eina_List* list, void* user_data);
+
+/**
+ * @brief Asynchronous request to get list of all password data
+ *
+ * @since_tizen 3.0
  *
  * @param[in] context context object
+ * @param[in] callback callback to get list of password data
+ * @param[in] user_data user data will be passed when callback is called
  *
- * @return @c Eina_List of Ewk_Password_Data @c NULL otherwise
  * @see ewk_context_form_password_data_delete
  * @see ewk_context_form_password_data_list_free
  */
-EXPORT_API Eina_List* ewk_context_form_password_data_list_get(Ewk_Context* context);
+EXPORT_API void ewk_context_form_password_data_list_get(
+    Ewk_Context* context,
+    Ewk_Context_Form_Password_Data_List_Get_Callback callback,
+    void* user_data);
 
 /**
  * @brief Deletes a given password data list
@@ -434,6 +569,15 @@ EXPORT_API void ewk_context_form_password_data_list_free(Ewk_Context* context, E
 EXPORT_API Eina_Bool ewk_context_icon_database_path_set(Ewk_Context* context, const char* path);
 
 /**
+ * @brief Deletes all known icons from database.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] context context object
+ */
+EXPORT_API void ewk_context_icon_database_delete_all(Ewk_Context* context);
+
+/**
  * @brief Requests for getting web database quota for origin.
  *
  * @since_tizen 2.3
@@ -558,67 +702,240 @@ EXPORT_API Eina_Bool ewk_context_cache_model_memory_max_dead_capacity_get(
     Ewk_Context* ewk_context,
     uint32_t* capacity_value);
 
-enum _Ewk_Audio_Latency_Mode {
-    EWK_AUDIO_LATENCY_MODE_LOW = 0, /**< Low audio latency mode */
-    EWK_AUDIO_LATENCY_MODE_MID, /**< Middle audio latency mode */
-    EWK_AUDIO_LATENCY_MODE_HIGH, /**< High audio latency mode */
-    EWK_AUDIO_LATENCY_MODE_ERROR = -1 /** Error */
-};
-
-typedef enum _Ewk_Audio_Latency_Mode Ewk_Audio_Latency_Mode;
+/**
+ * @brief Sets default zoom factor
+ *
+ * Sets default zoom factor for all pages opened with this context. Default
+ * zoom can be overridden with ewk_view_page_zoom_set on per page basis.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] context context object
+ * @param[in] zoom_factor default zoom factor
+ */
+EXPORT_API void ewk_context_default_zoom_factor_set(Ewk_Context* context, double zoom_factor);
 
 /**
- * @brief Set the mode of audio latency.
+ * @brief Gets default zoom factor
+ *
+ * Gets default zoom factor for all pages opened with this context.
  *
  * @since_tizen 3.0
  *
  * @param[in] context context object
- * @param[in] latency_mode Ewk_Audio_Latency_Mode
  *
+ * @return @c default zoom factor or negative value on error
+ */
+EXPORT_API double ewk_context_default_zoom_factor_get(Ewk_Context* context);
+
+/**
+ * @brief Sets callback for checking file request accessibility. When requested
+ *        to load a file, need to invoke the callback to check whether the file
+ *        path is accessible
+ *
+ * @param context context object
+ * @param callback The callback of Ewk_Context_Check_Accessible_Path_Callback
  * @return @c EINA_TRUE if successful, @c EINA_FALSE otherwise
  */
-EXPORT_API Eina_Bool ewk_context_audio_latency_mode_set(Ewk_Context* context, Ewk_Audio_Latency_Mode latency_mode);
+EXPORT_API Eina_Bool ewk_context_check_accessible_path_callback_set(
+    Ewk_Context* context,
+    Ewk_Context_Check_Accessible_Path_Callback callback,
+    void* user_data);
 
 /**
- * @brief Get the mode of audio latency.
+ * @brief Registers url schemes as CORS enabled. It is applied
+ *        for all the pages opened within the context.
+ *        This API is supposed to be used by Web frameworks,
+ *        not by Web browser application.
  *
- * @since_tizen 3.0
+ * @param context context object
+ * @param schemes The URL schemes list which will be added to
+ *                web security policy as valid schemes to pass CORS check.
  *
- * @param[in] context context object
+ */
+EXPORT_API void ewk_context_register_url_schemes_as_cors_enabled(Ewk_Context* context,
+                                                                 const Eina_List* schemes);
+
+/**
+ * @brief Register JS plugin mime types. It is applied
+ *        for all the pages opened within the context.
+ *        The API is intended to be used by web applications to
+ *        override default behaviour of the object tag.
  *
- * @return @c Ewk_Audio_Latency_Mode if successful, @c EWK_AUDIO_LATENCY_MODE_ERROR otherwise
+ * @param context context object
+ * @param mime_types The MIME types will be checked by the renderer frame loader
+ *                   to skip creating default frame for the object tags
+ *                   with the registered MIME type.
  */
-EXPORT_API Ewk_Audio_Latency_Mode ewk_context_audio_latency_mode_get(Ewk_Context* context);
+EXPORT_API void ewk_context_register_jsplugin_mime_types(Ewk_Context* context,
+                                                         const Eina_List* mime_types);
 
 /**
- * @brief Sets default zoom factor
+ * Sets callback for started download.
  *
- * Sets default zoom factor for all pages opened with this context. Default
- * zoom can be overridden with ewk_view_page_zoom_set on per page basis.
+ * @param context context object
+ * @param callback callback for started download
+ * @param user_data user data
+ */
+EXPORT_API void ewk_context_did_start_download_callback_set(Ewk_Context* context, Ewk_Context_Did_Start_Download_Callback callback, void* user_data);
+
+/**
+ * Sets vibration client callbacks to handle the tactile feedback in the form of
+ * vibration in the client application when the content asks for vibration.
  *
- * @since_tizen 3.0
+ * To stop listening for vibration events, you may call this function with @c
+ * @param vibrate The function to call when the vibrate request received from the
+ *        controller (may be @c NULL).
+ * @param cancel The function to call when the cancel vibration request received
+ *        from the controller (may be @c NULL).
+ * @param data User data (may be @c NULL).
+ */
+EXPORT_API void ewk_context_vibration_client_callbacks_set(Ewk_Context *context, Ewk_Vibration_Client_Vibrate_Cb vibrate, Ewk_Vibration_Client_Vibration_Cancel_Cb cancel, void *data);
+
+/**
+ * @brief Set WebSDI.
+ *        To use WebSDI for client authentication,
+ *        'web-sdi' metadata need to be added in config.xml of each app.
+ *        In that case, XWalk will call ewk_context_websdi_set API with true
+ *        value.
  *
- * @param[in] context context object
- * @param[in] zoom_factor default zoom factor
+ * @param enable true means app wants to get a Client Certificate as WebSDI,
+ *               otherwise, false
  */
-EXPORT_API void ewk_context_default_zoom_factor_set(Ewk_Context* context, double zoom_factor);
+EXPORT_API void ewk_context_websdi_set(Eina_Bool enable);
+
+EXPORT_API Eina_Bool ewk_context_websdi_get();
 
 /**
- * @brief Gets default zoom factor
+ * @brief Set disable nosniff.
+ *        Some apps have the wrong "Content-Type" in response header and
+ *        at the same time, set "X-Content-Type-Options:nosniff" which
+ *        don't allow WebCore to sniff the right content type
  *
- * Gets default zoom factor for all pages opened with this context.
+ *since_tizen 3.0
  *
- * @since_tizen 3.0
+ *
+ * @param context context object.
+ * @param enable true means app wants to disable nosniff,
+ *               otherwise, false
+ */
+EXPORT_API void ewk_context_disable_nosniff_set(Ewk_Context* context, Eina_Bool enable);
+
+/**
+ * @brief Set EMP Certificate file.
+ *        First, Try to check a empCAPath and load certificate files in a empCAPath.
+ *        If there is no file or it is not valid file, Try to load certificate files in a defaultCAPath.
+ *
+ * @param context context object.
+ * @param empCAPath Path to certificate files downloaded via EMP
+ * @param defaultCAPath Path to certificate files have been used
+ */
+EXPORT_API void ewk_context_emp_certificate_file_set(Ewk_Context *context, const char* empCAPath, const char* defaultCAPath);
+
+/**
+ * @brief Requests for getting web database usage for origin.
+ *
+ * @since_tizen 2.3
  *
  * @param[in] context context object
+ * @param[in] callback callback to get web database usage
+ * @param[in] user_data user_data will be passed when callback is called\n
+ *    -I.e., user data will be kept until callback is called
+ * @param[in] origin database origin
  *
- * @return @c default zoom factor or negative value on error
+ * @return @c EINA_TRUE on successful request or @c EINA_FALSE on failure
  */
-EXPORT_API double ewk_context_default_zoom_factor_get(Ewk_Context* context);
+EXPORT_API Eina_Bool ewk_context_web_database_usage_for_origin_get(Ewk_Context* context, Ewk_Web_Database_Usage_Get_Callback callback, void* user_data, Ewk_Security_Origin* origin);
 
 /**
-* @}
+* @brief Updates use fingerprint value from DB for given URL
+*
+* @details The API will update use fingerprint value on DB for given URL.
+*
+* @since_tizen 2.3
+*
+* @param[in] context context object
+* @param[in] url url saved form password
+* @param[in] useFingerprint fingerprint for given URL will be used or not
+*
+* @see ewk_context_form_password_data_list_free
+* @see ewk_context_form_password_data_delete
+* @see ewk_context_form_password_data_list_get
 */
+EXPORT_API void ewk_context_form_password_data_update(Ewk_Context* context, const char* url, Eina_Bool useFingerprint);
+
+/**
+ * @brief Toggles tizen background music property enable and disable
+ *
+ * @since_tizen 2.3.2
+ *
+ * @param[in] context context object
+ * @param[in] enable enable or disable tizen background music property
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_context_background_music_set(Ewk_Context *ewkContext, Eina_Bool enable);
+
+/**
+ * @brief Sets the list of preferred languages.
+ *
+ * @details This function sets the list of preferred langages.\n
+ *          This list will be used to build the "Accept-Language" header that
+ *          will be included in the network requests.\n
+ *          The client can pass @c NULL for languages to clear what is set
+ *          before.
+ *
+ * @since_tizen 2.3
+ *
+ * @remarks All contexts will be affected.
+ *
+ * @param[in] languages The list of preferred languages (char* as data),\n
+ *                      otherwise @c NULL
+ */
+EXPORT_API void ewk_context_preferred_languages_set(Eina_List* languages);
+
+/**
+ * @brief Set WebSDI.
+ *        To use WebSDI for client authentication,
+ *        'web-sdi' metadata need to be added in config.xml of each app.
+ *        In that case, XWalk will call ewk_context_websdi_set API with true
+ *        value.
+ *
+ * @param enable true means app wants to get a Client Certificate as WebSDI,
+ *               otherwise, false
+ */
+EXPORT_API void ewk_context_websdi_set(Eina_Bool enable);
+
+/**
+ * Sets PWA storage path @a context.
+ *
+ * @param context context object
+ * @param pwa_storage_path PWA storage path
+ *
+ * @return @c EINA_TRUE if the pwa_storage_path set successfully, @c EINA_FALSE
+ * otherwise
+ */
+EXPORT_API Eina_Bool
+ewk_context_pwa_storage_path_set(Ewk_Context* context,
+                                 const char* pwa_storage_path);
+
+/**
+ * @brief Sets callback for checking file request accessibility. When requested
+ *        to load a file, need to invoke the callback to check whether the file
+ *        path is accessible
+ *
+ * @param context context object
+ * @param callback The callback of Ewk_Context_Check_Accessible_Path_Callback
+ * @return @c EINA_TRUE if successful, @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_context_check_accessible_path_callback_set(
+    Ewk_Context* context,
+    Ewk_Context_Check_Accessible_Path_Callback callback,
+    void* user_data);
+
+/**
+ * @}
+ */
 
 #ifdef __cplusplus
 }
index f1006fc..ab77d9a 100644 (file)
@@ -1,12 +1,34 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
-#include "ewk_cookie_manager.h"
-
-#include "cookie_manager.h"
+#include "ewk_cookie_manager_internal.h"
+#include "ewk_cookie_manager_product.h"
 #include "ewk_log_internal.h"
+#include "cookie_manager.h"
 #include "private/ewk_cookie_manager_private.h"
+#include "private/ewk_private.h"
 
 #define EWK_COOKIE_MANAGER_GET_OR_RETURN(manager, cookie_manager, ...)   \
   if (!(manager)) {                                                      \
@@ -71,3 +93,22 @@ void ewk_cookie_manager_cookies_clear(Ewk_Cookie_Manager* manager)
   cookie_manager->DeleteCookiesAsync();
 }
 
+Eina_Bool ewk_cookie_manager_file_scheme_cookies_allow_get(Ewk_Cookie_Manager* manager)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_cookie_manager_file_scheme_cookies_allow_set(Ewk_Cookie_Manager* manager, Eina_Bool allow)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+
+void ewk_cookie_manager_changes_watch(Ewk_Cookie_Manager* manager,
+                                      Ewk_Cookie_Manager_Changes_Watch_Cb callback,
+                                      void *data)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
index 3c6f9ac..aa5f361 100644 (file)
@@ -1,27 +1,20 @@
 /*
- * Copyright (C) 2012 Intel Corporation. All rights reserved.
- * Copyright (C) 2016 Samsung Electronics. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * Copyright (C) 2012 Intel Corporation.
+ * Copyright (C) 2013-2016 Samsung Electronics.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
@@ -34,7 +27,6 @@
 
 #include <Eina.h>
 #include <tizen.h>
-#include "ewk_error.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -138,6 +130,43 @@ EXPORT_API Eina_Bool ewk_cookie_manager_file_scheme_cookies_allow_get(Ewk_Cookie
 EXPORT_API void ewk_cookie_manager_file_scheme_cookies_allow_set(Ewk_Cookie_Manager *manager, Eina_Bool allow);
 
 /**
+ * \enum  Ewk_Cookie_Persistent_Storage
+ * @brief Enumeration that creates a type name for the #Ewk_Cookie_Persistent_Storage.
+ * @since_tizen 3.0
+ */
+enum Ewk_Cookie_Persistent_Storage {
+  EWK_COOKIE_PERSISTENT_STORAGE_TEXT, /**<  Cookies are stored in a text file in the Mozilla "cookies.txt" format. */
+  EWK_COOKIE_PERSISTENT_STORAGE_SQLITE  /**<  Cookies are stored in a SQLite file in the current Mozilla format. */
+};
+
+/**
+ * @brief The enum type that creates a type name for Ewk_Cookie_Persistent_Storage.
+ * @since_tizen 3.0
+ */
+typedef enum Ewk_Cookie_Persistent_Storage Ewk_Cookie_Persistent_Storage;
+
+/**
+ * @brief Sets the @a path where non-session cookies are stored persistently using
+ *        @a storage as the format to read/write the cookies.
+ *
+ * @details Cookies are initially read from @a path/Cookies to create an initial
+ *          set of cookies. Then, non-session cookies will be written to @a path/Cookies.
+ *          By default, @a manager doesn't store the cookies persistenly, so you need to
+ *          call this method to keep cookies saved across sessions.
+ *          If @a path does not exist it will be created.
+ *
+ * @remarks http://tizen.org/privilege/mediastorage is needed if input or output path is relevant to media storage.\n
+ *          http://tizen.org/privilege/externalstorage is needed if input or output path is relevant to external storage.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manager The cookie manager to update
+ * @param[in] path The path where to read/write Cookies
+ * @param[in] storage The type of storage
+ */
+EXPORT_API void ewk_cookie_manager_persistent_storage_set(Ewk_Cookie_Manager *manager, const char *path, Ewk_Cookie_Persistent_Storage storage);
+
+/**
 * @}
 */
 
index ed99d03..b305e2e 100644 (file)
@@ -1,20 +1,26 @@
 /*
- * Copyright (C) 2016 Samsung Electronics
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
 #define ewk_cookie_manager_internal_h
 
 #include "ewk_cookie_manager.h"
+#include "ewk_error.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 /**
- * \enum    Ewk_Cookie_Persistent_Storage
- *
- * @brief   Enum values to denote cookies persistent storage type.
- */
-enum Ewk_Cookie_Persistent_Storage {
-    /// Cookies are stored in a text file in the Mozilla "cookies.txt" format.
-    EWK_COOKIE_PERSISTENT_STORAGE_TEXT,
-    /// Cookies are stored in a SQLite file in the current Mozilla format.
-    EWK_COOKIE_PERSISTENT_STORAGE_SQLITE
-};
-
-/// Creates a type name for the Ewk_Cookie_Persistent_Storage.
-typedef enum Ewk_Cookie_Persistent_Storage Ewk_Cookie_Persistent_Storage;
-
-/**
  * @typedef Ewk_Cookie_Manager_Async_Hostnames_Get_Cb Ewk_Cookie_Manager_Async_Hostnames_Get_Cb
  * @brief Callback type for use with ewk_cookie_manager_async_hostnames_with_cookies_get
  *
diff --git a/tizen_src/ewk/efl_integration/public/ewk_cookie_manager_product.h b/tizen_src/ewk/efl_integration/public/ewk_cookie_manager_product.h
new file mode 100644 (file)
index 0000000..ba045b2
--- /dev/null
@@ -0,0 +1,69 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/**
+ * @file    ewk_cookie_manager_product.h
+ * @brief   Describes the Ewk Cookie Manager product API.
+ */
+
+#ifndef ewk_cookie_manager_product_h
+#define ewk_cookie_manager_product_h
+
+#include "ewk_cookie_manager.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @typedef Ewk_Cookie_Manager_Changes_Watch_Cb Ewk_Cookie_Manager_Changes_Watch_Cb
+ * @brief Callback type for use with ewk_cookie_manager_changes_watch()
+ * @warning Callback is not called on UI thread, so user should be cautious
+ *          when accessing their data also used on UI thread.
+ */
+typedef void (*Ewk_Cookie_Manager_Changes_Watch_Cb)(void *event_info);
+
+/**
+ * Watch for cookies' changes in @a manager.
+ *
+ * Pass @c NULL as value for @a callback to stop watching for changes.
+ *
+ * When the cookie is modified, it actually is deleted and added again so
+ * the callback is called twice. User data provided to the API is passed
+ * to callback function as a parameter. Callback function is not informed
+ * about action type (add/delete) and does not get any identification
+ * information about it (like page URL or cookie name).
+ *
+ * @param manager The cookie manager to watch.
+ * @param callback function that will be called every time cookies are added, removed or modified.
+ * @param data User data (may be @c NULL).
+ */
+EXPORT_API void ewk_cookie_manager_changes_watch(Ewk_Cookie_Manager *manager, Ewk_Cookie_Manager_Changes_Watch_Cb callback, void *data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // ewk_cookie_manager_product_h
index 94d439b..ebfed39 100644 (file)
@@ -1,37 +1,50 @@
-// Copyright 2012 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2012-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_custom_handlers_internal.h"
 
-#include "private/ewk_custom_handlers_private.h"
-
-Eina_Stringshare* ewk_custom_handlers_data_target_get(const Ewk_Custom_Handlers_Data* customHandlersData)
-{
-  EINA_SAFETY_ON_NULL_RETURN_VAL(customHandlersData, 0);
-  return customHandlersData->getTarget();
+Eina_Stringshare* ewk_custom_handlers_data_target_get(
+    const Ewk_Custom_Handlers_Data*) {
+  return nullptr;
 }
 
-Eina_Stringshare* ewk_custom_handlers_data_base_url_get(const Ewk_Custom_Handlers_Data* customHandlersData)
-{
-  EINA_SAFETY_ON_NULL_RETURN_VAL(customHandlersData, 0);
-  return customHandlersData->getBaseUrl();
+Eina_Stringshare* ewk_custom_handlers_data_base_url_get(
+    const Ewk_Custom_Handlers_Data*) {
+  return nullptr;
 }
 
-Eina_Stringshare* ewk_custom_handlers_data_url_get(const Ewk_Custom_Handlers_Data* customHandlersData)
-{
-  EINA_SAFETY_ON_NULL_RETURN_VAL(customHandlersData, 0);
-  return customHandlersData->getUrl();
+Eina_Stringshare* ewk_custom_handlers_data_url_get(
+    const Ewk_Custom_Handlers_Data*) {
+  return nullptr;
 }
 
-Eina_Stringshare* ewk_custom_handlers_data_title_get(const Ewk_Custom_Handlers_Data* customHandlersData)
-{
-  EINA_SAFETY_ON_NULL_RETURN_VAL(customHandlersData, 0);
-  return customHandlersData->getTitle();
+Eina_Stringshare* ewk_custom_handlers_data_title_get(
+    const Ewk_Custom_Handlers_Data*) {
+  return nullptr;
 }
 
-void ewk_custom_handlers_data_result_set(Ewk_Custom_Handlers_Data* customHandlersData, Ewk_Custom_Handlers_State result)
-{
-  EINA_SAFETY_ON_NULL_RETURN(customHandlersData);
-  customHandlersData->setResult(result);
+void ewk_custom_handlers_data_result_set(Ewk_Custom_Handlers_Data*,
+    Ewk_Custom_Handlers_State) {
 }
diff --git a/tizen_src/ewk/efl_integration/public/ewk_custom_handlers.h b/tizen_src/ewk/efl_integration/public/ewk_custom_handlers.h
deleted file mode 100644 (file)
index af19813..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @file    ewk_custom_handlers.h
- * @brief   Custom scheme and content handlers. (http://www.w3.org/TR/html5/webappapis.html#custom-handlers)
- */
-
-#ifndef ewk_custom_handlers_h
-#define ewk_custom_handlers_h
-
-#include <Eina.h>
-#include <Evas.h>
-#include <tizen.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct Ewk_Custom_Handlers_Data Ewk_Custom_Handlers_Data;
-
-/// Defines the handler states.
-enum _Ewk_Custom_Handlers_State {
-    /// Indicates that no attempt has been made to register the given handler.
-    EWK_CUSTOM_HANDLERS_NEW,
-    /// Indicates that the given handler has been registered or that the site is blocked from registering the handler.
-    EWK_CUSTOM_HANDLERS_REGISTERED,
-    /// Indicates that the given handler has been offered but was rejected.
-    EWK_CUSTOM_HANDLERS_DECLINED
-};
-
-/// Creates a type name for @a _Ewk_Custom_Handlers_State.
-typedef enum _Ewk_Custom_Handlers_State Ewk_Custom_Handlers_State;
-
-/**
- * Get target(scheme or mime type) of custom handlers.
- *
- * @param data custom handlers's structure.
- *
- * @return @c target (scheme or mime type).
- */
-EXPORT_API Eina_Stringshare* ewk_custom_handlers_data_target_get(const Ewk_Custom_Handlers_Data* data);
-
-/**
- * Get base url of custom handlers.
- *
- * @param data custom handlers's structure.
- *
- * @return @c base url.
- */
-EXPORT_API Eina_Stringshare* ewk_custom_handlers_data_base_url_get(const Ewk_Custom_Handlers_Data* data);
-
-/**
- * Get url of custom handlers.
- *
- * @param data custom handlers's structure.
- *
- * @return @c url.
- */
-EXPORT_API Eina_Stringshare* ewk_custom_handlers_data_url_get(const Ewk_Custom_Handlers_Data* data);
-
-/**
- * Get title of custom handlers.
- *
- * @param data custom handlers's structure.
- *
- * @return @c title.
- */
-EXPORT_API Eina_Stringshare* ewk_custom_handlers_data_title_get(const Ewk_Custom_Handlers_Data* data);
-
-/**
- * Set result of isProtocolRegistered API.
- *
- * @param data custom handlers's structure
- * @param result(Ewk_Custom_Handlers_State) of isProtocolRegistered and isContentRegistered API
- */
-EXPORT_API void ewk_custom_handlers_data_result_set(Ewk_Custom_Handlers_Data* data, Ewk_Custom_Handlers_State result);
-#ifdef __cplusplus
-}
-#endif
-#endif // ewk_custom_handlers_h
index 7d2f489..8e21d01 100644 (file)
@@ -1,21 +1,27 @@
 /*
-    Copyright (C) 2012 Samsung Electronics
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2012-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_custom_handlers_internal.h
index 7d82dbc..8d16a23 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_dispatcher_internal.h"
 #include <assert.h>
index 62cc2f8..e5ad9e3 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_dispatcher_internal_h
 #define ewk_dispatcher_internal_h
index 43bb8b6..1cf86b2 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_enums_internal_h
 #define ewk_enums_internal_h
index 212ad2d..4d9b715 100644 (file)
@@ -1,7 +1,28 @@
-// Copyright (C) 2012 Intel Corporation.
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2012 Intel Corporation. All rights reserved.
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_error_internal.h"
 
index baca895..596b4ba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Intel Corporation. All rights reserved.
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
index f178007..78161fe 100644 (file)
@@ -1,7 +1,28 @@
-//Copyright (C) 2012 Intel Corporation. All rights reserved.
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2012 Intel Corporation. All rights reserved.
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_favicon_database_internal.h"
 
index 4e9b336..3599201 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2012 Intel Corporation. All rights reserved.
- * Copyright (C) 2014 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
diff --git a/tizen_src/ewk/efl_integration/public/ewk_form_repost_decision.cc b/tizen_src/ewk/efl_integration/public/ewk_form_repost_decision.cc
new file mode 100644 (file)
index 0000000..6ad7e87
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2017 Samsung Electronics.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include "ewk_form_repost_decision_product.h"
+#include "private/ewk_private.h"
+
+void ewk_form_repost_decision_request_reply(Ewk_Form_Repost_Decision_Request* request, Eina_Bool allow)
+{
+  LOG_EWK_API_MOCKUP();
+}
diff --git a/tizen_src/ewk/efl_integration/public/ewk_form_repost_decision_product.h b/tizen_src/ewk/efl_integration/public/ewk_form_repost_decision_product.h
new file mode 100644 (file)
index 0000000..969f388
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * Copyright (C) 2017 Samsung Electronics.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+/**
+ * @file    ewk_form_repost_decision_product.h
+ * @brief   This file describes the Ewk RepostForm API.
+ */
+
+#ifndef ewk_form_repost_decision_product_h
+#define ewk_form_repost_decision_product_h
+
+#include <Eina.h>
+#include "tizen.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief The structure type that creates a type name for #Ewk_Form_Repost_Decision_Request
+ *
+ */
+typedef struct _Ewk_Form_Repost_Decision_Request Ewk_Form_Repost_Decision_Request;
+
+/**
+ * Reply the result about form repost decision
+ *
+ * @param request Ewk_Form_Repost_Decision_Request object to get the
+ *        information about repostform decision request.
+ * @param allow result about repostform decision request.
+ */
+EXPORT_API void ewk_form_repost_decision_request_reply(Ewk_Form_Repost_Decision_Request* request, Eina_Bool allow);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // ewk_form_repost_decision_product_h
index 00b930b..6345f5f 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2012 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2012-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_frame_internal.h"
 
index c3749b0..7d39ac4 100644 (file)
@@ -1,21 +1,27 @@
 /*
-   Copyright (C) 2016 Samsung Electronics
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2012-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_frame_internal_h
 #define ewk_frame_internal_h
index c321db3..fae5eed 100644 (file)
@@ -1,10 +1,31 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
-#include "public/ewk_geolocation_internal.h"
+#include "ewk_geolocation_internal.h"
 
-#include "public/ewk_security_origin.h"
+#include "ewk_security_origin.h"
 #include "private/ewk_security_origin_private.h"
 #include "private/ewk_geolocation_private.h"
 
index c933222..8227c69 100644 (file)
@@ -1,20 +1,19 @@
 /*
- * Copyright (C) 2012 Samsung Electronics
+ * Copyright (C) 2013-2016 Samsung Electronics.
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
+ * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
index 34714a9..63d923a 100644 (file)
@@ -1,21 +1,27 @@
 /*
-   Copyright (C) 2016 Samsung Electronics
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_geolocation_internal_h
 #define ewk_geolocation_internal_h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_highcontrast.cc b/tizen_src/ewk/efl_integration/public/ewk_highcontrast.cc
new file mode 100644 (file)
index 0000000..2256038
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "ewk_highcontrast_product.h"
+#include "private/ewk_private.h"
+
+void ewk_highcontrast_enabled_set(Eina_Bool enabled)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_highcontrast_enabled_get()
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_highcontrast_forbidden_url_add(const char* url)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_highcontrast_forbidden_url_remove(const char* url)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
diff --git a/tizen_src/ewk/efl_integration/public/ewk_highcontrast_product.h b/tizen_src/ewk/efl_integration/public/ewk_highcontrast_product.h
new file mode 100644 (file)
index 0000000..7f084f5
--- /dev/null
@@ -0,0 +1,76 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef ewk_highcontrast_h
+#define ewk_highcontrast_h
+
+#include <Eina.h>
+
+#include <tizen.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+* Set enable/disable highcontrast.
+*
+* If highcontrast enabled, highcontrast controller listen system highcontrast configuration.
+*
+* @param enabled enable/disable set for high contrast
+*/
+EXPORT_API void ewk_highcontrast_enabled_set(Eina_Bool enabled);
+
+/**
+ * Returns current hightcontrast settings.
+ *
+ * @return EINA_TRUE if highcontrast enabled
+ */
+EXPORT_API Eina_Bool ewk_highcontrast_enabled_get();
+
+/**
+ * Add highcontrast forbidden URL.
+ *
+ * If the current page's url contains this url, it should not use highcontrast filter
+ *
+ * @param url URL that should not apply hightcontrast filter
+ * @return EINA_TRUE if successfully added
+ */
+EXPORT_API Eina_Bool ewk_highcontrast_forbidden_url_add(const char* url);
+
+/**
+ * Remove the specific highcontrast forbidden URL.
+ *
+ * @param url URL that already in the forbidden url list
+ * @return EINA_TRUE if successfully removed
+ */
+EXPORT_API Eina_Bool ewk_highcontrast_forbidden_url_remove(const char* url);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // ewk_highcontrast_h
index ca7bc58..c81e7f4 100644 (file)
@@ -1,11 +1,31 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_history_internal.h"
 #include "private/ewk_private.h"
 #include "private/ewk_history_private.h"
-#include "Eina.h"
 
 int ewk_history_back_list_length_get(Ewk_History* history)
 {
index d025a85..521983f 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2012 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_history_internal.h
index 221ed9d..883ccbe 100644 (file)
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "public/ewk_hit_test_internal.h"
+#include "ewk_hit_test_internal.h"
+#include "ewk_view.h"
 
 #include "eweb_view.h"
 #include "web_contents_delegate_efl.h"
-#include "public/ewk_view.h"
 #include "private/ewk_hit_test_private.h"
 
 void ewk_hit_test_free(Ewk_Hit_Test* hitTest)
index 3db204c..8905cd2 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_hit_test_internal_h
 #define ewk_hit_test_internal_h
index 6201b56..1c70b4f 100644 (file)
@@ -1,8 +1,30 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "ewk_intercept_request_internal.h"
 
-#include "ewk_intercept_request.h"
 #include "private/ewk_private.h"
 
 
@@ -12,33 +34,43 @@ Eina_Bool ewk_intercept_request_ignore(Ewk_Intercept_Request* interceptRequest)
   return true;
 }
 
-const char* ewk_intercept_request_url_get (Ewk_Intercept_Request* interceptRequest)
+const char* ewk_intercept_request_url_get(Ewk_Intercept_Request* interceptRequest)
 {
   LOG_EWK_API_MOCKUP();
   return NULL;
 }
 
-const char* ewk_intercept_request_http_method_get (Ewk_Intercept_Request* interceptRequest)
+const char* ewk_intercept_request_http_method_get(Ewk_Intercept_Request* interceptRequest)
 {
   LOG_EWK_API_MOCKUP();
   return NULL;
 }
 
-const char* ewk_intercept_request_body_get (Ewk_Intercept_Request* interceptRequest)
+const Eina_Hash* ewk_intercept_request_headers_get(Ewk_Intercept_Request* interceptRequest)
 {
   LOG_EWK_API_MOCKUP();
   return NULL;
 }
 
-const Eina_Hash* ewk_intercept_request_headers_get (Ewk_Intercept_Request* interceptRequest)
+Eina_Bool ewk_intercept_request_response_set(Ewk_Intercept_Request* interceptRequest, const char* headers, const char* body, int length)
 {
   LOG_EWK_API_MOCKUP();
-  return NULL;
+  return false;
 }
 
-Eina_Bool ewk_intercept_request_response_set (Ewk_Intercept_Request* interceptRequest, const char* headers, const char* body, int length)
+const char* ewk_intercept_request_scheme_get(Ewk_Intercept_Request* intercept_request)
 {
   LOG_EWK_API_MOCKUP();
-  return true;
+  return NULL;
 }
 
+const char* ewk_intercept_request_body_get(Ewk_Intercept_Request* intercept_request)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+int64_t ewk_intercept_request_body_length_get(Ewk_Intercept_Request* intercept_request)
+{
+  LOG_EWK_API_MOCKUP();
+  return -1;
+}
index 6442ab1..f284580 100644 (file)
@@ -1,6 +1,20 @@
-// Copyright 2013-2016 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
 
 /**
  * @file    ewk_intercept_request.h
@@ -72,7 +86,7 @@ EXPORT_API const char* ewk_intercept_request_http_method_get(
  *
  * @since_tizen 3.0
  *
- * @param[in] intercpet_request intercept request instance received from
+ * @param[in] intercept_request intercept request instance received from
  *            Ewk_Context_Intercept_Request_Callback ewk_context callback
  *
  * @return @c Eina_Hash mapping from header name string to header value string
@@ -137,8 +151,8 @@ EXPORT_API Eina_Bool ewk_intercept_request_ignore(
  *            Ewk_Context_Intercept_Request_Callback ewk_context callback
  * @param[in] headers Null-terminated string representing response's headers
  *            for the intercept request.
- *            By HTTP spec, lines should end with a newline ('\r\n') and
- *            headers should end with an empty line ('\r\n\r\n').
+ *            By HTTP spec, lines should end with a newline ('\\r\\n') and
+ *            headers should end with an empty line ('\\r\\n\\r\\n').
  * @param[in] body Response body for the intercept request
  * @param[in] length Length of response body
  *
index 7bb8056..ec0ba4b 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013-2016 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef EWK_EFL_INTEGRATION_PUBLIC_EWK_INTERCEPT_REQUEST_INTERNAL_H_
 #define EWK_EFL_INTEGRATION_PUBLIC_EWK_INTERCEPT_REQUEST_INTERNAL_H_
@@ -28,6 +49,44 @@ extern "C" {
 EXPORT_API const char* ewk_intercept_request_scheme_get(
     Ewk_Intercept_Request* intercept_request);
 
+/**
+ * @brief Returns request's body from Intercept Request object.
+ *
+ * @remarks Returned bytes are owned by Intercept Request object, you have to
+ *          make a copy if you want to use it past owner lifetime.
+ *
+ *          It is only allowed to use this function *inside* the
+ *          Ewk_Context_Intercept_Request_Callback.
+ *
+ *          Use ewk_intercept_request_body_length_get to get length of returned
+ *          bytes.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] intercept_request intercept request instance received from
+ *            Ewk_Context_Intercept_Request_Callback ewk_context callback
+ *
+ * @return @c request's body data on success or NULL on failure
+ */
+EXPORT_API const char* ewk_intercept_request_body_get(
+        Ewk_Intercept_Request* intercept_request);
+
+/**
+ * @brief Returns request's body's length from Intercept Request object.
+ *
+ * @remarks It is only allowed to use this function *inside* the
+ *          Ewk_Context_Intercept_Request_Callback.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] intercept_request intercept request instance received from
+ *            Ewk_Context_Intercept_Request_Callback ewk_context callback
+ *
+ * @return @c request's body length on success or -1 on failure
+ */
+EXPORT_API int64_t ewk_intercept_request_body_length_get(
+        Ewk_Intercept_Request* intercept_request);
+
 #ifdef __cplusplus
 }
 #endif
index 218f09b..dd181fc 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_ipc_message_internal.h"
 
index fadd271..095bdf4 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_ipc_message_internal.h
index e63981f..f210a99 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_log_internal.h
index 8ab5920..7ad4265 100644 (file)
@@ -1,23 +1,21 @@
 /*
  * Copyright (C) 2009-2010 ProFUSION embedded systems
- * Copyright (C) 2009-2013 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2009-2016 Samsung Electronics. All rights reserved.
  * Copyright (C) 2012 Intel Corporation
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA  02110-1301, USA.
+ * Lesser General Public License for more details.
  *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include "ewk_main_internal.h"
index d63f721..ad37e90 100644 (file)
@@ -1,23 +1,22 @@
 /*
-    Copyright (C) 2009-2010 ProFUSION embedded systems
-    Copyright (C) 2016 Samsung Electronics
-    Copyright (C) 2012 Intel Corporation
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2009-2010 ProFUSION embedded systems
+ * Copyright (C) 2009-2016 Samsung Electronics
+ * Copyright (C) 2012 Intel Corporation
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
 
 /**
  * @file    ewk_main.h
index b4040d1..68ff729 100644 (file)
@@ -1,21 +1,27 @@
 /*
-    Copyright (C) 2016 Samsung Electronics
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_main_internal.h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_manifest.cc b/tizen_src/ewk/efl_integration/public/ewk_manifest.cc
new file mode 100644 (file)
index 0000000..40bc62e
--- /dev/null
@@ -0,0 +1,168 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "ewk_manifest_internal.h"
+
+#include "private/ewk_private.h"
+#include "private/ewk_manifest_private.h"
+#include "private/ewk_private.h"
+#include "third_party/skia/include/core/SkColor.h"
+
+const char* ewk_manifest_short_name_get(Ewk_View_Request_Manifest* manifest) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, nullptr);
+  return !(manifest->short_name.empty()) ? manifest->short_name.c_str()
+                                         : nullptr;
+}
+
+const char* ewk_manifest_name_get(Ewk_View_Request_Manifest* manifest) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, nullptr);
+  return !(manifest->name.empty()) ? manifest->name.c_str() : nullptr;
+}
+
+const char* ewk_manifest_start_url_get(Ewk_View_Request_Manifest* manifest) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, nullptr);
+  return !(manifest->start_url.empty()) ? manifest->start_url.c_str() : nullptr;
+}
+
+Ewk_View_Orientation_Type ewk_manifest_orientation_type_get(
+    Ewk_View_Request_Manifest* manifest) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, WebScreenOrientationLockDefault);
+  return manifest->orientation_type;
+}
+
+Ewk_View_Web_Display_Mode ewk_manifest_web_display_mode_get(
+    Ewk_View_Request_Manifest* manifest) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, WebDisplayModeUndefined);
+  return manifest->web_display_mode;
+}
+
+Eina_Bool ewk_manifest_theme_color_get(_Ewk_View_Request_Manifest* manifest,
+                                       uint8_t* r,
+                                       uint8_t* g,
+                                       uint8_t* b,
+                                       uint8_t* a) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, EINA_FALSE);
+  if (manifest->theme_color == content::Manifest::kInvalidOrMissingColor)
+    return EINA_FALSE;
+
+  if (r)
+    *r = SkColorGetR(manifest->theme_color);
+  if (g)
+    *g = SkColorGetG(manifest->theme_color);
+  if (b)
+    *b = SkColorGetB(manifest->theme_color);
+  if (a)
+    *a = SkColorGetA(manifest->theme_color);
+
+  return EINA_TRUE;
+  ;
+}
+
+Eina_Bool ewk_manifest_background_color_get(
+    _Ewk_View_Request_Manifest* manifest,
+    uint8_t* r,
+    uint8_t* g,
+    uint8_t* b,
+    uint8_t* a) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, EINA_FALSE);
+  if (manifest->background_color == content::Manifest::kInvalidOrMissingColor)
+    return EINA_FALSE;
+
+  if (r)
+    *r = SkColorGetR(manifest->background_color);
+  if (g)
+    *g = SkColorGetG(manifest->background_color);
+  if (b)
+    *b = SkColorGetB(manifest->background_color);
+  if (a)
+    *a = SkColorGetA(manifest->background_color);
+
+  return EINA_TRUE;
+}
+
+size_t ewk_manifest_icons_count_get(_Ewk_View_Request_Manifest* manifest) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, 0);
+  return manifest->icons.size();
+}
+
+const char* ewk_manifest_icons_src_get(_Ewk_View_Request_Manifest* manifest,
+                                       size_t number) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, nullptr);
+  if (manifest->icons.size() <= number)
+    return nullptr;
+
+  return !(manifest->icons[number].src.empty())
+             ? manifest->icons[number].src.c_str()
+             : nullptr;
+}
+
+const char* ewk_manifest_icons_type_get(_Ewk_View_Request_Manifest* manifest,
+                                        size_t number) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, nullptr);
+  if (manifest->icons.size() <= number)
+    return nullptr;
+
+  return !(manifest->icons[number].type.empty())
+             ? manifest->icons[number].type.c_str()
+             : nullptr;
+}
+
+size_t ewk_manifest_icons_sizes_count_get(_Ewk_View_Request_Manifest* manifest,
+                                          size_t number) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, 0);
+  return !(manifest->icons.size() <= number)
+             ? manifest->icons[number].sizes.size()
+             : 0;
+}
+
+int ewk_manifest_icons_width_get(_Ewk_View_Request_Manifest* manifest,
+                                 size_t number,
+                                 size_t sizes_number) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, -1);
+  if (manifest->icons.size() <= number)
+    return -1;
+
+  return !(manifest->icons[number].sizes.size() <= sizes_number)
+             ? manifest->icons[number].sizes[sizes_number].width
+             : -1;
+}
+
+int ewk_manifest_icons_height_get(_Ewk_View_Request_Manifest* manifest,
+                                  size_t number,
+                                  size_t sizes_number) {
+  EINA_SAFETY_ON_NULL_RETURN_VAL(manifest, -1);
+  if (manifest->icons.size() <= number)
+    return -1;
+
+  return !(manifest->icons[number].sizes.size() <= sizes_number)
+             ? manifest->icons[number].sizes[sizes_number].height
+             : -1;
+}
+
+const char* ewk_manifest_push_sender_id_get(
+    Ewk_View_Request_Manifest* manifest) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
diff --git a/tizen_src/ewk/efl_integration/public/ewk_manifest.h b/tizen_src/ewk/efl_integration/public/ewk_manifest.h
new file mode 100644 (file)
index 0000000..4fe87b1
--- /dev/null
@@ -0,0 +1,306 @@
+// Copyright 2016 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ewk_manifest_h
+#define ewk_manifest_h
+
+#include <Eina.h>
+#include <tizen.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @addtogroup WEBVIEW
+ * @{
+ */
+
+/**
+ * @brief Get for web page manifest. Used for getting information about
+ *        the manifest of web page.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct _Ewk_View_Request_Manifest Ewk_View_Request_Manifest;
+
+/**
+ * \enum _Ewk_View_Orientation_Type
+ * @brief  Enumeration that provides the type of orientation.
+ *         These are attributes locking the screen orientation.
+ *
+ * @details It contains enum values used to specify orientation types.
+ *
+ * @since_tizen 3.0
+ */
+enum _Ewk_View_Orientation_Type {
+  WebScreenOrientationLockDefault = 0, /**< Equivalent to unlock. */
+  WebScreenOrientationLockPortraitPrimary, /**< portrait-primary */
+  WebScreenOrientationLockPortraitSecondary, /**< portrait-secondary */
+  WebScreenOrientationLockLandscapePrimary, /**< landscape-primary */
+  WebScreenOrientationLockLandscapeSecondary, /**< landscape-secondary */
+  WebScreenOrientationLockAny, /**< any */
+  WebScreenOrientationLockLandscape, /**< landscape */
+  WebScreenOrientationLockPortrait, /**< portrait */
+  WebScreenOrientationLockNatural, /**< natural */
+};
+
+/**
+ * @brief Enumeration that creates a type name for the #_Ewk_View_Orientation_Type.
+ *
+ * @since_tizen 3.0
+ */
+typedef enum _Ewk_View_Orientation_Type Ewk_View_Orientation_Type;
+
+/**
+ * \enum _Ewk_View_Web_Display_Mode
+ *
+ * @brief  Enumeration that provides the mode of web display.
+ *         These are attributes representing how the web application is being
+ *         presented within the context.
+ *
+ * @details It contains enum values used to specify web display mode.
+ *
+ * @since_tizen 3.0
+ */
+enum _Ewk_View_Web_Display_Mode {
+  WebDisplayModeUndefined = 0, /**< undefined */
+  WebDisplayModeBrowser, /**< browser */
+  WebDisplayModeMinimalUi, /**< minimul-ui */
+  WebDisplayModeStandalone, /**< standalone */
+  WebDisplayModeFullscreen, /**< fullscreen */
+  WebDisplayModeLast = WebDisplayModeFullscreen
+};
+
+/**
+ * @brief Enumeration that creates a type name for the #_Ewk_View_Web_Display_Mode.
+ *
+ * @since_tizen 3.0
+ */
+typedef enum _Ewk_View_Web_Display_Mode Ewk_View_Web_Display_Mode;
+
+/**
+ * @brief Get the short name of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ *
+ * @return @c short name string if short name exists otherwise null.
+ * The string is only valid until related Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API const char* ewk_manifest_short_name_get(Ewk_View_Request_Manifest* manifest);
+
+/**
+ * @brief Get the name of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ *
+ * @return @c name string if name exists otherwise null. The string
+ * is only valid until related Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API const char* ewk_manifest_name_get(Ewk_View_Request_Manifest* manifest);
+
+/**
+ * @brief Get the start url of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ *
+ * @return @c start url string if start url exists otherwise null. The string
+ * is only valid until related Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API const char* ewk_manifest_start_url_get(Ewk_View_Request_Manifest* manifest);
+
+/**
+ * @brief Get the orientation type of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ *
+ * @return @c orientation type enum if orientation type exists
+ * otherwise WebScreenOrientationLockDefault.
+ * The enum is only valid until related
+ * Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API Ewk_View_Orientation_Type ewk_manifest_orientation_type_get(Ewk_View_Request_Manifest* manifest);
+
+/**
+ * @brief Get the web display mode of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ *
+ * @return @c web display mode enum if web display mode exists
+ * otherwise WebDisplayModeUndefined.
+ * The enum is only valid until related
+ * Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API Ewk_View_Web_Display_Mode ewk_manifest_web_display_mode_get(Ewk_View_Request_Manifest* manifest);
+
+/**
+ * @brief Get the theme color of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ *
+ * @param[out] r The red component of the theme color,
+ *             Pass NULL if you don't want to get the value.
+ * @param[out] g The green component of the theme color,
+ *             Pass NULL if you don't want to get the value.
+ * @param[out] b The blue component of the theme color,
+ *             Pass NULL if you don't want to get the value.
+ * @param[out] a The alpha component of the theme color,
+ *             Pass NULL if you don't want to get the value.
+ *
+ * @return @c EINA_TRUE if theme color exists
+ * otherwise EINA_FALSE. The value is only valid
+ * until related Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API Eina_Bool ewk_manifest_theme_color_get(Ewk_View_Request_Manifest* manifest, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a);
+
+/**
+ * @brief Get the background color of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ *
+ * @param[out] r The red component of the background color,
+ *             Pass NULL if you don't want to get the value.
+ * @param[out] g The green component of the background color,
+ *             Pass NULL if you don't want to get the value.
+ * @param[out] b The blue component of the background color,
+ *             Pass NULL if you don't want to get the value.
+ * @param[out] a The alpha component of the background color,
+ *             Pass NULL if you don't want to get the value.
+ *
+ * @return @c EINA_TRUE if background color exists
+ * otherwise EINA_FALSE. The value is only valid
+ * until related Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API Eina_Bool ewk_manifest_background_color_get(Ewk_View_Request_Manifest* manifest, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a);
+
+/**
+ * @brief Get the count of icon of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ *
+ * @return @c count of icon if icons exist otherwise 0. The value
+ * is only valid until related Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API size_t ewk_manifest_icons_count_get(Ewk_View_Request_Manifest* manifest);
+
+/**
+ * @brief Get the src of icon of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ * @param[in] number the index of icons to be obtained
+ *
+ * @return @c src of icon if src exists otherwise null. The value
+ * is only valid until related Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API const char* ewk_manifest_icons_src_get(Ewk_View_Request_Manifest* manifest, size_t number);
+
+/**
+ * @brief Get the type of icon of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ * @param[in] number the index of icons to be obtained
+ *
+ * @return @c type of icon if type exists otherwise null. The string
+ * is only valid until related Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API const char* ewk_manifest_icons_type_get(Ewk_View_Request_Manifest* manifest, size_t number);
+
+/**
+ * @brief Get the count of the icon's sizes
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ * @param[in] number the index of icons to be obtained
+ *
+ * @return @c count of the icon's sizes if size of icons exists otherwise 0.
+ * The value is only valid until related
+ * Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API size_t ewk_manifest_icons_sizes_count_get(Ewk_View_Request_Manifest* manifest, size_t number);
+
+/**
+ * @brief Get the width of icon of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ * @param[in] number the index of icons to be obtained
+ * @param[in] sizes_number the index of sizes to be obtained
+ *
+ * @return @c width of icon if width exists otherwise -1.
+ * The value is only valid until related
+ * Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API int ewk_manifest_icons_width_get(Ewk_View_Request_Manifest* manifest, size_t number, size_t sizes_number);
+
+/**
+ * @brief Get the height of icon of the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest Manifest object to get manifest information.
+ * @param[in] number the index of icons to be obtained
+ * @param[in] sizes_number the index of sizes to be obtained
+ *
+ * @return @c height of icon if height exists otherwise -1.
+ * The value is only valid until related
+ * Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API int ewk_manifest_icons_height_get(Ewk_View_Request_Manifest* manifest, size_t number, size_t sizes_number);
+
+/**
+* @}
+*/
+
+#ifdef __cplusplus
+}
+#endif
+#endif // ewk_manifest_h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_manifest_internal.h b/tizen_src/ewk/efl_integration/public/ewk_manifest_internal.h
new file mode 100644 (file)
index 0000000..65658b2
--- /dev/null
@@ -0,0 +1,57 @@
+/*
+* Copyright (C) 2017 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef ewk_manifest_internal_h
+#define ewk_manifest_internal_h
+
+#include "ewk_manifest.h"
+
+#include <tizen.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _Ewk_View_Request_Manifest Ewk_View_Request_Manifest;
+
+/**
+ * @brief Get the spp_sender_id from the manifest
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] manifest object to get manifest information.
+ *
+ * @return @c string of spp_sender_id.
+ * The value is only valid until related
+ * Ewk_View_Request_Manifest object is valid.
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API const char* ewk_manifest_push_sender_id_get(Ewk_View_Request_Manifest* manifest);
+
+#ifdef __cplusplus
+}
+#endif
+#endif // ewk_manifest_internal_h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_media_playback_info.cc b/tizen_src/ewk/efl_integration/public/ewk_media_playback_info.cc
new file mode 100644 (file)
index 0000000..d5b4991
--- /dev/null
@@ -0,0 +1,67 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "ewk_media_playback_info_product.h"
+#include "private/ewk_private.h"
+
+const char* ewk_media_playback_info_media_url_get(
+    Ewk_Media_Playback_Info* data) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+const char* ewk_media_playback_info_mime_type_get(
+    Ewk_Media_Playback_Info* data) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+const char* ewk_media_playback_info_translated_url_get(
+    Ewk_Media_Playback_Info* data) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+const char* ewk_media_playback_info_drm_info_get(
+    Ewk_Media_Playback_Info* data) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+void ewk_media_playback_info_media_resource_acquired_set(
+    Ewk_Media_Playback_Info* data,
+    unsigned char media_resource_acquired) {
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_media_playback_info_translated_url_set(Ewk_Media_Playback_Info* data,
+                                                const char* translated_url) {
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_media_playback_info_drm_info_set(Ewk_Media_Playback_Info* data,
+                                          const char* drm_info) {
+  LOG_EWK_API_MOCKUP();
+}
diff --git a/tizen_src/ewk/efl_integration/public/ewk_media_playback_info.h b/tizen_src/ewk/efl_integration/public/ewk_media_playback_info.h
new file mode 100644 (file)
index 0000000..ca49616
--- /dev/null
@@ -0,0 +1,114 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/**
+ * @file    ewk_media_playback_info.h
+ * @brief   This file describes the ewk media playback info API.
+ */
+
+#ifndef ewk_media_playback_info_h
+#define ewk_media_playback_info_h
+
+#include <Eina.h>
+#include <Evas.h>
+#include <tizen.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _Ewk_Media_Playback_Info Ewk_Media_Playback_Info;
+
+/**
+ * Get url of media.
+ *
+ * @param meia playback info's structure
+ *
+ * @return @c media url
+ */
+EXPORT_API const char* ewk_media_playback_info_media_url_get(
+    Ewk_Media_Playback_Info* data);
+
+/**
+ * Get mime type of media.
+ *
+ * @param meia playback info's structure
+ *
+ * @return @c mime type
+ */
+EXPORT_API const char* ewk_media_playback_info_mime_type_get(
+    Ewk_Media_Playback_Info* data);
+
+/**
+ * Get translated url of media.
+ *
+ * @param media playback info's structure
+ *
+ * @return @c translated url
+ */
+EXPORT_API const char* ewk_media_playback_info_translated_url_get(
+    Ewk_Media_Playback_Info* data);
+
+/**
+ * Get drm info of media.
+ *
+ * @param media playback info's structure
+ *
+ * @return @c drm info
+ */
+EXPORT_API const char* ewk_media_playback_info_drm_info_get(
+    Ewk_Media_Playback_Info* data);
+
+/**
+ * Set media resource acquired of media.
+ *
+ * @param media playback info's structure
+ */
+EXPORT_API void ewk_media_playback_info_media_resource_acquired_set(
+    Ewk_Media_Playback_Info* data,
+    unsigned char media_resource_acquired);
+
+/**
+ * Set translated url of media.
+ *
+ * @param media playback info's structure
+ */
+EXPORT_API void ewk_media_playback_info_translated_url_set(
+    Ewk_Media_Playback_Info* data,
+    const char* translated_url);
+
+/**
+ * Set drm info of media.
+ *
+ * @param media playback info's structure
+ */
+EXPORT_API void ewk_media_playback_info_drm_info_set(
+    Ewk_Media_Playback_Info* data,
+    const char* drm_info);
+
+#ifdef __cplusplus
+}
+#endif
+#endif  // ewk_media_playback_info_h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_media_playback_info_product.h b/tizen_src/ewk/efl_integration/public/ewk_media_playback_info_product.h
new file mode 100644 (file)
index 0000000..5061f9e
--- /dev/null
@@ -0,0 +1,114 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/**
+ * @file    ewk_media_playback_info_product.h
+ * @brief   This file describes the ewk media playback info API.
+ */
+
+#ifndef ewk_media_playback_info_product_h
+#define ewk_media_playback_info_product_h
+
+#include <Eina.h>
+#include <Evas.h>
+#include <tizen.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _Ewk_Media_Playback_Info Ewk_Media_Playback_Info;
+
+/**
+ * Get url of media.
+ *
+ * @param meia playback info's structure
+ *
+ * @return @c media url
+ */
+EXPORT_API const char* ewk_media_playback_info_media_url_get(
+    Ewk_Media_Playback_Info* data);
+
+/**
+ * Get mime type of media.
+ *
+ * @param meia playback info's structure
+ *
+ * @return @c mime type
+ */
+EXPORT_API const char* ewk_media_playback_info_mime_type_get(
+    Ewk_Media_Playback_Info* data);
+
+/**
+ * Get translated url of media.
+ *
+ * @param media playback info's structure
+ *
+ * @return @c translated url
+ */
+EXPORT_API const char* ewk_media_playback_info_translated_url_get(
+    Ewk_Media_Playback_Info* data);
+
+/**
+ * Get drm info of media.
+ *
+ * @param media playback info's structure
+ *
+ * @return @c drm info
+ */
+EXPORT_API const char* ewk_media_playback_info_drm_info_get(
+    Ewk_Media_Playback_Info* data);
+
+/**
+ * Set media resource acquired of media.
+ *
+ * @param media playback info's structure
+ */
+EXPORT_API void ewk_media_playback_info_media_resource_acquired_set(
+    Ewk_Media_Playback_Info* data,
+    unsigned char media_resource_acquired);
+
+/**
+ * Set translated url of media.
+ *
+ * @param media playback info's structure
+ */
+EXPORT_API void ewk_media_playback_info_translated_url_set(
+    Ewk_Media_Playback_Info* data,
+    const char* translated_url);
+
+/**
+ * Set drm info of media.
+ *
+ * @param media playback info's structure
+ */
+EXPORT_API void ewk_media_playback_info_drm_info_set(
+    Ewk_Media_Playback_Info* data,
+    const char* drm_info);
+
+#ifdef __cplusplus
+}
+#endif
+#endif  // ewk_media_playback_info_product_h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_media_subtitle_info.cc b/tizen_src/ewk/efl_integration/public/ewk_media_subtitle_info.cc
new file mode 100644 (file)
index 0000000..c4e071e
--- /dev/null
@@ -0,0 +1,54 @@
+// Copyright 2016 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ewk_media_subtitle_info_product.h"
+#include "private/ewk_private.h"
+
+int ewk_media_subtitle_info_id_get(Ewk_Media_Subtitle_Info *data)
+{
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+const char* ewk_media_subtitle_info_url_get(Ewk_Media_Subtitle_Info *data)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+const char* ewk_media_subtitle_info_lang_get(Ewk_Media_Subtitle_Info *data)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+const char* ewk_media_subtitle_info_label_get(Ewk_Media_Subtitle_Info *data)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+int ewk_media_subtitle_data_id_get(Ewk_Media_Subtitle_Data *data)
+{
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+double ewk_media_subtitle_data_timestamp_get(Ewk_Media_Subtitle_Data *data)
+{
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+unsigned ewk_media_subtitle_data_size_get(Ewk_Media_Subtitle_Data *data)
+{
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+const void* ewk_media_subtitle_data_get(Ewk_Media_Subtitle_Data *data)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
diff --git a/tizen_src/ewk/efl_integration/public/ewk_media_subtitle_info.h b/tizen_src/ewk/efl_integration/public/ewk_media_subtitle_info.h
new file mode 100644 (file)
index 0000000..708c4e0
--- /dev/null
@@ -0,0 +1,100 @@
+// Copyright 2016 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+* @file    ewk_media_subtitle_info.h
+* @brief   .
+*/
+
+#ifndef ewk_media_subtitle_info_h
+#define ewk_media_subtitle_info_h
+
+#include <Eina.h>
+#include <Evas.h>
+#include <tizen.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _Ewk_Media_Subtitle_Info Ewk_Media_Subtitle_Info;
+
+/**
+* Get id of subtitle.
+*
+* @param meia subtitle info's structure
+*
+* @return @c subtitle id
+*/
+EXPORT_API int ewk_media_subtitle_info_id_get(Ewk_Media_Subtitle_Info *data);
+
+/**
+* Get url of subtitle.
+*
+* @param meia subtitle info's structure
+*
+* @return @c subtitle url
+*/
+EXPORT_API const char *ewk_media_subtitle_info_url_get(Ewk_Media_Subtitle_Info *data);
+
+/**
+* Get srcLang of subtitle.
+*
+* @param meia subtitle info's structure
+*
+* @return @c subtitle srcLang
+*/
+EXPORT_API const char *ewk_media_subtitle_info_lang_get(Ewk_Media_Subtitle_Info *data);
+
+/**
+* Get label of subtitle.
+*
+* @param meia subtitle info's structure
+*
+* @return @c subtitle label
+*/
+EXPORT_API const char *ewk_media_subtitle_info_label_get(Ewk_Media_Subtitle_Info *data);
+
+typedef struct _Ewk_Media_Subtitle_Data Ewk_Media_Subtitle_Data;
+
+/**
+* Get id of subtitle.
+*
+* @param meia subtitle data's structure
+*
+* @return @c subtitle id
+*/
+EXPORT_API int ewk_media_subtitle_data_id_get(Ewk_Media_Subtitle_Data *data);
+
+/**
+* Get timestamp of subtitle.
+*
+* @param meia subtitle data's structure
+*
+* @return @c subtitle timestamp
+*/
+EXPORT_API double ewk_media_subtitle_data_timestamp_get(Ewk_Media_Subtitle_Data *data);
+
+/**
+* Get data size of subtitle.
+*
+* @param meia subtitle data's structure
+*
+* @return @c subtitle data size
+*/
+EXPORT_API unsigned ewk_media_subtitle_data_size_get(Ewk_Media_Subtitle_Data *data);
+
+/**
+* Get data of subtitle.
+*
+* @param meia subtitle data's structure
+*
+* @return @c subtitle data
+*/
+EXPORT_API const void* ewk_media_subtitle_data_get(Ewk_Media_Subtitle_Data *data);
+
+#ifdef __cplusplus
+}
+#endif
+#endif // ewk_media_subtitle_info_h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_media_subtitle_info_product.h b/tizen_src/ewk/efl_integration/public/ewk_media_subtitle_info_product.h
new file mode 100644 (file)
index 0000000..9c2b088
--- /dev/null
@@ -0,0 +1,121 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/**
+* @file    ewk_media_subtitle_info_product.h
+* @brief   .
+*/
+
+#ifndef ewk_media_subtitle_info_product_h
+#define ewk_media_subtitle_info_product_h
+
+#include <Eina.h>
+#include <Evas.h>
+#include <tizen.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _Ewk_Media_Subtitle_Info Ewk_Media_Subtitle_Info;
+
+/**
+* Get id of subtitle.
+*
+* @param meia subtitle info's structure
+*
+* @return @c subtitle id
+*/
+EXPORT_API int ewk_media_subtitle_info_id_get(Ewk_Media_Subtitle_Info *data);
+
+/**
+* Get url of subtitle.
+*
+* @param meia subtitle info's structure
+*
+* @return @c subtitle url
+*/
+EXPORT_API const char *ewk_media_subtitle_info_url_get(Ewk_Media_Subtitle_Info *data);
+
+/**
+* Get srcLang of subtitle.
+*
+* @param meia subtitle info's structure
+*
+* @return @c subtitle srcLang
+*/
+EXPORT_API const char *ewk_media_subtitle_info_lang_get(Ewk_Media_Subtitle_Info *data);
+
+/**
+* Get label of subtitle.
+*
+* @param meia subtitle info's structure
+*
+* @return @c subtitle label
+*/
+EXPORT_API const char *ewk_media_subtitle_info_label_get(Ewk_Media_Subtitle_Info *data);
+
+typedef struct _Ewk_Media_Subtitle_Data Ewk_Media_Subtitle_Data;
+
+/**
+* Get id of subtitle.
+*
+* @param meia subtitle data's structure
+*
+* @return @c subtitle id
+*/
+EXPORT_API int ewk_media_subtitle_data_id_get(Ewk_Media_Subtitle_Data *data);
+
+/**
+* Get timestamp of subtitle.
+*
+* @param meia subtitle data's structure
+*
+* @return @c subtitle timestamp
+*/
+EXPORT_API double ewk_media_subtitle_data_timestamp_get(Ewk_Media_Subtitle_Data *data);
+
+/**
+* Get data size of subtitle.
+*
+* @param meia subtitle data's structure
+*
+* @return @c subtitle data size
+*/
+EXPORT_API unsigned ewk_media_subtitle_data_size_get(Ewk_Media_Subtitle_Data *data);
+
+/**
+* Get data of subtitle.
+*
+* @param meia subtitle data's structure
+*
+* @return @c subtitle data
+*/
+EXPORT_API const void* ewk_media_subtitle_data_get(Ewk_Media_Subtitle_Data *data);
+
+#ifdef __cplusplus
+}
+#endif
+#endif // ewk_media_subtitle_info_product_h
index b33f6d9..b05e9e5 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_notification_internal.h"
 
index 3d83ee9..4d39c9f 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_notification_internal_h
 #define ewk_notification_internal_h
index e837602..5ecb158 100644 (file)
@@ -1,7 +1,28 @@
-// Copyright (C) 2012 Intel Corporation. All rights reserved.
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2012 Intel Corporation. All rights reserved.
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_object_internal.h"
 #include "private/ewk_object_private.h"
index b274dd5..3b8d7cc 100644 (file)
@@ -1,7 +1,28 @@
-// copyright (C) 2012 Intel Corporation. All rights reserved.
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * copyright (C) 2012 Intel Corporation. All rights reserved.
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_object_internal.h
index a702af2..dcde641 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_page_group_internal.h"
 #include "private/ewk_private.h"
index 26dc5fa..63ffbca 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_page_group_internal.h
index 575e0e0..54c8e38 100644 (file)
@@ -1,15 +1,37 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ewk_policy_decision.h"
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "ewk_policy_decision_internal.h"
+#include "ewk_policy_decision_product.h"
 
 #include "private/ewk_frame_private.h"
 #include "private/ewk_policy_decision_private.h"
 #include "private/ewk_private.h"
 #include "web_contents_delegate_efl.h"
 
-const char* ewk_policy_decision_cookie_get(const Ewk_Policy_Decision* policyDecision)
+const char* ewk_policy_decision_cookie_get(Ewk_Policy_Decision* policyDecision)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(policyDecision, NULL);
   return policyDecision->GetCookie();
@@ -57,19 +79,19 @@ Ewk_Policy_Decision_Type ewk_policy_decision_type_get(const Ewk_Policy_Decision*
   return policyDecision->GetDecisionType();
 }
 
-const char* ewk_policy_decision_response_mime_get(const Ewk_Policy_Decision* policyDecision)
+const char* ewk_policy_decision_response_mime_get(Ewk_Policy_Decision* policyDecision)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(policyDecision, NULL);
   return policyDecision->GetResponseMime();
 }
 
-const Eina_Hash* ewk_policy_decision_response_headers_get(const Ewk_Policy_Decision* policyDecision)
+const Eina_Hash* ewk_policy_decision_response_headers_get(Ewk_Policy_Decision* policyDecision)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(policyDecision, NULL);
   return policyDecision->GetResponseHeaders();
 }
 
-int ewk_policy_decision_response_status_code_get(const Ewk_Policy_Decision* policyDecision)
+int ewk_policy_decision_response_status_code_get(Ewk_Policy_Decision* policyDecision)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(policyDecision, 0);
   return policyDecision->GetResponseStatusCode();
@@ -102,7 +124,7 @@ Eina_Bool ewk_policy_decision_download(Ewk_Policy_Decision* policyDecision)
   return EINA_TRUE;
 }
 
-Ewk_Policy_Navigation_Type ewk_policy_decision_navigation_type_get(const Ewk_Policy_Decision* policyDecision)
+Ewk_Policy_Navigation_Type ewk_policy_decision_navigation_type_get(Ewk_Policy_Decision* policyDecision)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(policyDecision, EWK_POLICY_NAVIGATION_TYPE_OTHER);
   return policyDecision->GetNavigationType();
@@ -120,3 +142,8 @@ Eina_Bool ewk_policy_decision_is_main_frame(const Ewk_Policy_Decision* policyDec
   return policyDecision->GetFrameRef()->IsMainFrame() ? EINA_TRUE : EINA_FALSE;
 }
 
+const char* ewk_policy_decision_http_body_get(Ewk_Policy_Decision* policyDecision)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
index 2d7d0ef..b82e68e 100644 (file)
@@ -1,21 +1,20 @@
 /*
-   Copyright (C) 2016 Samsung Electronics
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2013-2016 Samsung Electronics.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
 
 /**
  * @file    ewk_policy_decision.h
@@ -90,7 +89,7 @@ typedef enum _Ewk_Policy_Navigation_Type Ewk_Policy_Navigation_Type;
  * @return The cookie string on success,\n
  *         otherwise an empty string on failure
  */
-EXPORT_API const char* ewk_policy_decision_cookie_get(const Ewk_Policy_Decision* policy_decision);
+EXPORT_API const char* ewk_policy_decision_cookie_get(Ewk_Policy_Decision* policy_decision);
 
 /**
  * @brief Returns a URL from the Policy Decision object.
@@ -150,7 +149,7 @@ EXPORT_API const char* ewk_policy_decision_http_method_get(Ewk_Policy_Decision*
  * @return The MIME type string on success,\n
  *         otherwise an empty string on failure
  */
-EXPORT_API const char* ewk_policy_decision_response_mime_get(const Ewk_Policy_Decision* policy_decision);
+EXPORT_API const char* ewk_policy_decision_response_mime_get(Ewk_Policy_Decision* policy_decision);
 
 /**
  * @brief Return HTTP headers for response data from the Policy Decision object.
@@ -162,7 +161,7 @@ EXPORT_API const char* ewk_policy_decision_response_mime_get(const Ewk_Policy_De
  * @return The HTTP headers on success,\n
  *         otherwise @c NULL on failure
  */
-EXPORT_API const Eina_Hash* ewk_policy_decision_response_headers_get(const Ewk_Policy_Decision* policy_decision);
+EXPORT_API const Eina_Hash* ewk_policy_decision_response_headers_get(Ewk_Policy_Decision* policy_decision);
 
 /**
  * @brief Returns an HTTP status code from the Policy Decision object.
@@ -173,7 +172,7 @@ EXPORT_API const Eina_Hash* ewk_policy_decision_response_headers_get(const Ewk_P
  *
  * @return The HTTP status code number
  */
-EXPORT_API int ewk_policy_decision_response_status_code_get(const Ewk_Policy_Decision* policy_decision);
+EXPORT_API int ewk_policy_decision_response_status_code_get(Ewk_Policy_Decision* policy_decision);
 
 /**
  * @brief Returns a policy type from the Policy Decision object.
@@ -219,7 +218,7 @@ EXPORT_API Eina_Bool ewk_policy_decision_ignore(Ewk_Policy_Decision* policy_deci
  *
  * @return The navigation type
  */
-EXPORT_API Ewk_Policy_Navigation_Type ewk_policy_decision_navigation_type_get(const Ewk_Policy_Decision* policy_decision);
+EXPORT_API Ewk_Policy_Navigation_Type ewk_policy_decision_navigation_type_get(Ewk_Policy_Decision* policy_decision);
 
 /**
 * @}
index 7be6577..602fcf9 100644 (file)
@@ -1,21 +1,27 @@
 /*
-   Copyright (C) 2016 Samsung Electronics
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_policy_decision_internal_h
 #define ewk_policy_decision_internal_h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_policy_decision_product.h b/tizen_src/ewk/efl_integration/public/ewk_policy_decision_product.h
new file mode 100644 (file)
index 0000000..e5aa788
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef ewk_policy_decision_product_h
+#define ewk_policy_decision_product_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Returns http body from Policy Decision object.
+ *
+ * @since_tizen 2.4
+ *
+ * @param[in] policy_decision policy decsision object
+ *
+ * @return @c http body string on success or empty string on failure
+ */
+EXPORT_API const char* ewk_policy_decision_http_body_get(Ewk_Policy_Decision* policy_decision);
+
+/**
+* @}
+*/
+
+#ifdef __cplusplus
+}
+#endif
+#endif // ewk_policy_decision_product_h
index 1408441..c127c6b 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2012 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2012-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_popup_menu_item_internal.h"
 #include "private/ewk_private.h"
index b8635b4..15d40b7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2012-2016 Samsung Electronics. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
index 9a4944c..fa9851e 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_quota_permission_request_internal.h"
 #include "private/ewk_quota_permission_request_private.h"
index 04ace84..00aec47 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_quota_permission_request_internal_h
 #define ewk_quota_permission_request_internal_h
index 5c652b4..37fb44c 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_security_origin_internal.h"
 #include "private/ewk_security_origin_private.h"
index 174ab70..79e2c5d 100644 (file)
@@ -1,20 +1,19 @@
 /*
- * Copyright (C) 2016 Samsung Electronics
+ * Copyright (C) 2013-2016 Samsung Electronics.
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
+ * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
index 399de3c..f5e898d 100644 (file)
@@ -1,21 +1,27 @@
 /*
-   Copyright (C) 2016 Samsung Electronics
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_security_origin_internal_h
 #define ewk_security_origin_internal_h
index 273f0b4..ae024bb 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_settings_product.h"
 
@@ -8,7 +29,6 @@
 #include "ui/events/gesture_detection/gesture_configuration.h"
 #include "text_encoding_map_efl.h"
 #include "private/ewk_private.h"
-#include "private/ewk_private.h"
 #include "private/ewk_settings_private.h"
 #include "private/ewk_view_private.h"
 #include "tizen/system_info.h"
@@ -252,6 +272,12 @@ Eina_Bool ewk_settings_spdy_enabled_set(Ewk_Settings* settings, Eina_Bool spdyEn
   return EINA_TRUE;
 }
 
+Eina_Bool ewk_settings_spdy_enabled_get(Ewk_Settings *settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
 Eina_Bool ewk_settings_performance_features_enabled_set(Ewk_Settings* settings, Eina_Bool spdyEnabled)
 {
   (void) settings;
@@ -262,6 +288,12 @@ Eina_Bool ewk_settings_performance_features_enabled_set(Ewk_Settings* settings,
   return EINA_FALSE;
 }
 
+Eina_Bool ewk_settings_performance_features_enabled_get(const Ewk_Settings* settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
 void ewk_settings_link_magnifier_enabled_set(Ewk_Settings* settings, Eina_Bool enabled)
 {
   EINA_SAFETY_ON_NULL_RETURN(settings);
@@ -612,7 +644,7 @@ Eina_Bool ewk_settings_default_font_size_set(Ewk_Settings* settings, int size)
   return true;
 }
 
-const char* ewk_settings_default_text_encoding_name_get(Ewk_Settings* settings)
+const char* ewk_settings_default_text_encoding_name_get(const Ewk_Settings* settings)
 {
   EINA_SAFETY_ON_NULL_RETURN_VAL(settings, NULL);
   return settings->defaultTextEncoding();
@@ -740,3 +772,146 @@ void ewk_settings_extra_feature_set(Ewk_Settings* settings, const char* feature,
   EINA_SAFETY_ON_NULL_RETURN(feat);
   feat->set(settings, enable);
 }
+
+Eina_Bool ewk_settings_tizen_compatibility_mode_set(Ewk_Settings* settings, unsigned major, unsigned minor, unsigned release)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_settings_webkit_text_size_adjust_enabled_get(const Ewk_Settings* settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_settings_scan_malware_enabled_get(const Ewk_Settings* settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_settings_default_mixed_contents_policy_set(Ewk_Settings* settings, Eina_Bool enable)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_settings_disable_webgl_set(Ewk_Settings* settings, Eina_Bool disable)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_settings_uses_arrow_scroll_set(Ewk_Settings* settings, Eina_Bool enabled)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_settings_uses_arrow_scroll_get(Ewk_Settings* settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_settings_uses_scrollbar_thumb_focus_notifications_set(Ewk_Settings* settings, Eina_Bool use)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_settings_media_playback_notification_set(Ewk_Settings* settings, Eina_Bool enabled)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_settings_media_playback_notification_get(const Ewk_Settings* settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_settings_media_subtitle_notification_set(Ewk_Settings *settings, Eina_Bool enabled)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_settings_media_subtitle_notification_get(const Ewk_Settings *settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_settings_text_autosizing_scale_factor_set(Ewk_Settings* settings, double factor)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+double ewk_settings_text_autosizing_scale_factor_get(const Ewk_Settings* settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Eina_Bool ewk_settings_legacy_font_size_enabled_set(Ewk_Settings* settings, Eina_Bool enabled)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_settings_legacy_font_size_enabled_get(Ewk_Settings* settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_settings_use_system_font_set(Ewk_Settings* settings, Eina_Bool use)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_settings_use_system_font_get(Ewk_Settings* settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_settings_selection_handle_enabled_set(Ewk_Settings* settings, Eina_Bool enable)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_settings_selection_handle_enabled_get(const Ewk_Settings* settings)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_settings_disclose_set_cookie_headers_enabled(Ewk_Settings* settings, Eina_Bool Enabled)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_settings_viewport_meta_tag_set(Ewk_Settings* settings, Eina_Bool enable) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_settings_spatial_navigation_enabled_set(Ewk_Settings* settings, Eina_Bool Enabled) {
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_settings_ime_panel_enabled_set(Ewk_Settings* settings, Eina_Bool Enabled) {
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_settings_allow_file_access_from_external_url_set(Ewk_Settings* settings, Eina_Bool allow) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_settings_swipe_to_refresh_enabled_set(Ewk_Settings* settings, Eina_Bool enable) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
index 9cd94a2..868fd3c 100644 (file)
@@ -1,26 +1,19 @@
 /*
- * Copyright (C) 2016 Samsung Electronics
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * Copyright (C) 2013-2016 Samsung Electronics.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /**
@@ -206,7 +199,7 @@ EXPORT_API Eina_Bool ewk_settings_default_text_encoding_name_set(Ewk_Settings* s
  *
  * @return The default text encoding name
  */
-EXPORT_API const char* ewk_settings_default_text_encoding_name_get(Ewk_Settings* settings);
+EXPORT_API const char* ewk_settings_default_text_encoding_name_get(const Ewk_Settings* settings);
 
 /**
  * @brief Sets the default font size.
@@ -236,41 +229,6 @@ EXPORT_API Eina_Bool ewk_settings_default_font_size_set(Ewk_Settings* settings,
 EXPORT_API int ewk_settings_default_font_size_get(const Ewk_Settings* settings);
 
 /**
- * @if MOBILE
- * @deprecated Deprecated since 2.4
- *
- * @brief Requests to enable/disable private browsing.
- *
- * @since_tizen 2.3
- *
- * @param[in] settings The settings object to set private browsing
- * @param[in] enable If @c EINA_TRUE private browsing is enabled\n
- *                   otherwise @c EINA_FALSE to disable it
- *
- * @return @c EINA_TRUE on success,\n
- *         otherwise @c EINA_FALSE on failure
- * @endif
- */
-EXPORT_API Eina_Bool ewk_settings_private_browsing_enabled_set(Ewk_Settings* settings, Eina_Bool enable);
-
-/**
- * @if MOBILE
- * @deprecated Deprecated since 2.4
- *
- * @brief Enables/disables private browsing.
- *
- * @since_tizen 2.3
- *
- * @param[in] settings The settings object to query if private browsing is
- *            enabled
- *
- * @return @c EINA_TRUE if private browsing is enabled,\n
- *         otherwise @c EINA_FALSE if not or on failure
- * @endif
- */
-EXPORT_API Eina_Bool ewk_settings_private_browsing_enabled_get(const Ewk_Settings* settings);
-
-/**
  * @brief Enables/disables if the scripts can open new windows.
  *
  * @details By default, the scripts can open new windows.
@@ -301,8 +259,23 @@ EXPORT_API Eina_Bool ewk_settings_scripts_can_open_windows_set(Ewk_Settings* set
 EXPORT_API Eina_Bool ewk_settings_scripts_can_open_windows_get(const Ewk_Settings* settings);
 
 /**
-* @}
-*/
+ * Enables/disables the viewport meta tag.
+ *
+ * By default, the viewport meta tag is enabled on mobile and wearable,
+ * but it is disabled on TV.
+ *
+ * @param settings settings object
+ * @param enable @c EINA_TRUE to enable the viewport meta tag
+ *               @c EINA_FALSE to disable
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_viewport_meta_tag_set(Ewk_Settings* settings,
+                                                        Eina_Bool enable);
+
+/**
+ * @}
+ */
 
 #ifdef __cplusplus
 }
index bcab30d..4abe353 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Samsung Electronics
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
@@ -452,6 +452,17 @@ EINA_DEPRECATED EXPORT_API Eina_Bool ewk_settings_initial_list_style_position_se
 EXPORT_API Eina_Bool ewk_settings_webkit_text_size_adjust_enabled_set(Ewk_Settings* settings, Eina_Bool enabled);
 
 /**
+* @brief Gets the staus of -webkit-text-size-adjust supporting.
+*
+* @since_tizen 2.3
+*
+* @param[in] settings setting object to get the status of -webkit-text-size-adjust supporting
+*
+* @return the status of -webkit-text-size-adjust supporting
+*/
+EXPORT_API Eina_Bool ewk_settings_webkit_text_size_adjust_enabled_get(const Ewk_Settings* settings);
+
+/**
  * Requests to enable/disable to detect email address when tapping on email address without link property
  *
  * @param settings settings object to enable/disable to detect email address when tapping on email address without link property
@@ -546,6 +557,50 @@ EXPORT_API Eina_Bool ewk_settings_dom_paste_allowed_set(Ewk_Settings *settings,
  */
 EXPORT_API Eina_Bool ewk_settings_dom_paste_allowed_get(const Ewk_Settings *settings);
 
+/**
+ * Sets compatibility mode with the given Tizen version.
+ *
+ * @since_tizen 3.0
+ *
+ * This API allows rendering the pages as if they are run with the specified
+ * engine version. The compatibility mode changes behavior of web features
+ * since they follow the newest specifications resulting in different behaviour
+ * for web apps/pages written for earlier engines.
+ *
+ * To have content compatible with Tizen 2.4 (WebKit) one should call:
+ *   ewk_settings_tizen_compatibility_mode_set(settings, 2, 4, 0);
+ *
+ * This API must be called before loading content.
+ *
+ * @param settings setting object on which compatibility mode is set
+ * @param major major version
+ * @param minor minor version
+ * @param release release version
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool
+ewk_settings_tizen_compatibility_mode_set(Ewk_Settings* settings,
+                                          unsigned major,
+                                          unsigned minor,
+                                          unsigned release);
+
+/*
+ * Enables/disables swipe to refresh feature. Swipe to refresh allows
+ * us to refresh page using swipe gesture.
+ *
+ * Default value for swipe to refresh setting is @c EINA_FALSE.
+ *
+ * @param settings settings object to enable swipe to refresh feature
+ * @param enable @c EINA_TRUE to enable swipe to refresh feature or
+ *               @c EINA_FALSE to disable
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool
+ewk_settings_swipe_to_refresh_enabled_set(Ewk_Settings* settings,
+                                          Eina_Bool enable);
+
 #ifdef __cplusplus
 }
 #endif
index 247066b..568e437 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Samsung Electronics
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**
@@ -108,6 +108,16 @@ EXPORT_API Eina_Bool ewk_settings_scripts_window_open_get(const Ewk_Settings *se
 EXPORT_API const char* ewk_settings_default_encoding_get(const Ewk_Settings *settings);
 
 /**
+ * Requests to set default text encoding name.
+ *
+ * @param settings settings object to set default text encoding name
+ * @param encoding default text encoding name
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_default_encoding_set(Ewk_Settings *settings, const char* encoding);
+
+/**
  * Requests to set editable link behavior.
  *
  * @param settings settings object to set editable link behavior
@@ -215,18 +225,37 @@ EXPORT_API Eina_Bool ewk_settings_compositing_borders_visible_set(Ewk_Settings *
 EXPORT_API Eina_Bool ewk_settings_scan_malware_enabled_set(Ewk_Settings *settings, Eina_Bool scan_malware_enabled);
 
 /**
- * Requests to set the spdy enable/disable.
+ * @brief Returns enable/disable scan malware.
  *
- * @param settings settings object to set spdy on soup
+ * @since_tizen 2.3
  *
- * @param spdy_enabled @c EINA_TRUE to enable the spdy on soup
- *        @c EINA_FALSE to disable
+ * @param[in] settings settings object to get malware scan behavior
  *
- * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ * @return @c EINA_TRUE on enable or @c EINA_FALSE on disable
+ */
+EXPORT_API Eina_Bool ewk_settings_scan_malware_enabled_get(const Ewk_Settings* settings);
+
+/**
+ * Requests to enable/disable spdy.
+ *
+ * @param settings param not needed, only present for API compatibility
+ *
+ * @param spdy_enabled @c EINA_TRUE to enable the spdy @c EINA_FALSE to disable
+ *
+ * @return always @c EINA_TRUE, only present for API compatibility
  */
 EXPORT_API Eina_Bool ewk_settings_spdy_enabled_set(Ewk_Settings *settings, Eina_Bool spdy_enabled);
 
 /**
+ * Get spdy enabled/disabled state.
+ *
+ * @param settings param not needed, only present for API compatibility
+ *
+ * @return @c EINA_TRUE if enabled or @c EINA_FALSE if disabled
+ */
+EXPORT_API Eina_Bool ewk_settings_spdy_enabled_get(Ewk_Settings *settings);
+
+/**
  * Requests to set the performance features of soup enable/disable.
  *
  * @param settings settings object to set performance features on soup
@@ -239,6 +268,17 @@ EXPORT_API Eina_Bool ewk_settings_spdy_enabled_set(Ewk_Settings *settings, Eina_
 EXPORT_API Eina_Bool ewk_settings_performance_features_enabled_set(Ewk_Settings *settings, Eina_Bool performance_features_enabled);
 
 /**
+ * @brief Returns enable/disable performance features on soup.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] settings settings object to get performance features
+ *
+ * @return @c EINA_TRUE on enable or @c EINA_FALSE on disable
+ */
+EXPORT_API Eina_Bool ewk_settings_performance_features_enabled_get(const Ewk_Settings* settings);
+
+/**
  * Requests to set using encoding detector.
  *
  * @deprecated Deprecated since Tizen 3.0.
@@ -329,15 +369,17 @@ ewk_settings_mixed_contents_set(const Ewk_Settings* settings, Eina_Bool allow);
 EINA_DEPRECATED EXPORT_API void ewk_settings_cache_builder_extension_enabled_set(Ewk_Settings *settings, Eina_Bool enabled);
 
 /**
+ * @deprecated Deprecated since Tizen 3.0.
+ *
  * Enable/disable focus ring.
  *
- * By default, the focus ring is disabled.
+ * @note Focus ring is enabled by default but disabled for wrt on TV profile
  *
  * @param settings settings object
  * @param enabled @c EINA_TRUE to enable the focus ring
  *                @c EINA_FALSE to disable
  */
-EXPORT_API void ewk_settings_focus_ring_enabled_set(Ewk_Settings *settings, Eina_Bool enabled);
+EINA_DEPRECATED EXPORT_API void ewk_settings_focus_ring_enabled_set(Ewk_Settings *settings, Eina_Bool enabled);
 
 /**
  * Enables/disables the viewport meta tag.
@@ -354,6 +396,34 @@ EXPORT_API void ewk_settings_focus_ring_enabled_set(Ewk_Settings *settings, Eina
 EXPORT_API Eina_Bool ewk_settings_viewport_meta_tag_set(Ewk_Settings *settings, Eina_Bool enable);
 
 /**
+ * Allow/disallow to run and display mixed contents.
+ *
+ * By default, WebCore don't allow run and display mixed contents.
+ * Some Apps want to allow them by default
+ *
+ * @param settings settings object
+ * @param enable @c EINA_TRUE to allow run and display mixed contents
+ *               @c EINA_FALSE to disable
+ *
+ */
+EXPORT_API void ewk_settings_default_mixed_contents_policy_set(Ewk_Settings* settings, Eina_Bool enable);
+
+/**
+ * Enable/disable the WebGL feature.
+ *
+ * By default, the WebGL feature is Enabled.
+ * Some Apps want to disallow WebGL feature.
+ *
+ * @note Should be used before ewk_view_url_set().
+ *
+ * @param settings settings object
+ * @param disable @c EINA_TRUE to disable WebGL.
+ *                @c EINA_FALSE to enable.
+ *
+ */
+EXPORT_API void ewk_settings_disable_webgl_set(Ewk_Settings* settings, Eina_Bool disable);
+
+/**
  * Returns whether the viewport meta tag is enabled.
  *
  * @param settings settings object
@@ -389,6 +459,35 @@ EXPORT_API Eina_Bool ewk_settings_web_security_enabled_set(Ewk_Settings *setting
 EXPORT_API Eina_Bool ewk_settings_web_security_enabled_get(const Ewk_Settings *settings);
 
 /**
+ * Set to uses the arrow scroll.
+ *
+ * @param settings settings object
+ * @param enabled a state to set
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_uses_arrow_scroll_set(Ewk_Settings* settings, Eina_Bool enabled);
+
+/**
+ * Returns whether uses arrow scroll is enabled or not.
+ *
+ * @param settings settings object
+ *
+ * @return @c EINA_TRUE if uses arrow is enabled, @c EINA_FALSE otherwise
+*/
+EXPORT_API Eina_Bool ewk_settings_uses_arrow_scroll_get(Ewk_Settings* settings);
+
+/**
+ * Set to uses scrollbar thumb focus notifications.
+ *
+ * @param settings settings object
+ * @param enabled a state to set
+ */
+EXPORT_API Eina_Bool ewk_settings_uses_scrollbar_thumb_focus_notifications_set(
+    Ewk_Settings* settings,
+    Eina_Bool use);
+
+/**
  * Allow/Disallow file access from external url
  *
  * By default, file access from external url is disallowed
@@ -408,6 +507,47 @@ ewk_settings_allow_file_access_from_external_url_set(Ewk_Settings* settings,
                                                      Eina_Bool allow);
 
 /**
+ * Set to support the media playback notification.
+ *
+ * This is only for TV Product
+ *
+ * @param settings settings object
+ * @param enabled a state to set
+ *
+ */
+EXPORT_API void ewk_settings_media_playback_notification_set(Ewk_Settings* settings, Eina_Bool enabled);
+
+/**
+ * Returns enable/disable the media playback notification.
+ *
+ * This is only for TV Product
+ *
+ * @param settings settings object
+ *
+ * @return @c EINA_TRUE if media plyaback notification is enabled, @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_settings_media_playback_notification_get(const Ewk_Settings* settings);
+
+/**
+ * Set to support the subtitle notification.
+ *
+ * @param settings settings object
+ * @param enabled a state to set
+ *
+ */
+EXPORT_API void ewk_settings_media_subtitle_notification_set(Ewk_Settings *settings, Eina_Bool enabled);
+
+/**
+ * Returns enable/disable the subtitle notification.
+ *
+ * @param settings settings object
+ *
+ * @return @c EINA_TRUE if subtitle notification is enabled, @c EINA_FALSE
+otherwise
+ */
+EXPORT_API Eina_Bool ewk_settings_media_subtitle_notification_get(const Ewk_Settings *settings);
+
+/**
  * Returns whether file access from external url is enabled
  *
  * This is only for TV Product
@@ -421,6 +561,247 @@ ewk_settings_allow_file_access_from_external_url_set(Ewk_Settings* settings,
 EXPORT_API Eina_Bool ewk_settings_allow_file_access_from_external_url_get(
     const Ewk_Settings* settings);
 
+/**
+ * @brief Requests to enable/disable private browsing.
+ *
+ * @details This setting change affects all webview with same context.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] settings The settings object to set private browsing
+ * @param[in] enable If @c EINA_TRUE private browsing is enabled\n
+ *                   otherwise @c EINA_FALSE to disable it
+ *
+ * @return @c EINA_TRUE on success,\n
+ *         otherwise @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_private_browsing_enabled_set(Ewk_Settings* settings, Eina_Bool enable);
+
+/**
+ * @brief Enables/disables private browsing.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] settings The settings object to query if private browsing is
+ *            enabled
+ *
+ * @return @c EINA_TRUE if private browsing is enabled,\n
+ *         otherwise @c EINA_FALSE if not or on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_private_browsing_enabled_get(const Ewk_Settings* settings);
+
+/**
+ * Requests enables/disables to the specific extra feature
+ *
+ * @param settings setting object to enable/disable the specific extra feature
+ * @param feature feature name
+ * @param enable @c EINA_TRUE to enable the specific extra feature
+ *        @c EINA_FALSE to disable
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API void ewk_settings_extra_feature_set(Ewk_Settings* settings, const char* feature, Eina_Bool enable);
+
+/**
+ * Returns enable/disable to the specific extra feature
+ *
+ * @param settings settings object to get whether the specific extra feature is enabled or not.
+ * @param feature feature name
+ *
+ * @return @c EINA_TRUE on enable or @c EINA_FALSE on disable
+ */
+EXPORT_API Eina_Bool ewk_settings_extra_feature_get(const Ewk_Settings* settings, const char* feature);
+
+/**
+ * Enables/disables text autosizing.
+ *
+ * By default, the text autosizing is disabled.
+ *
+ * @param settings settings object to set the text autosizing
+ * @param enable @c EINA_TRUE to enable the text autosizing
+ *               @c EINA_FALSE to disable
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ *
+ * @see ewk_settings_text_autosizing_enabled_get()
+ */
+EXPORT_API Eina_Bool ewk_settings_text_autosizing_enabled_set(Ewk_Settings *settings, Eina_Bool enable);
+
+/**
+ * Returns whether the text autosizing is enabled.
+ *
+ * The text autosizing is a feature which adjusts the font size of text in wide
+ * columns, and makes text more legible.
+ *
+ * @param settings settings object to query whether text autosizing is enabled
+ *
+ * @return @c EINA_TRUE if the text autosizing is enabled
+ *         @c EINA_FALSE if not or on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_text_autosizing_enabled_get(const Ewk_Settings *settings);
+
+/**
+ * Sets the scale factor for text autosizing.
+ *
+ * Default value is 1.0.
+ *
+ * @param settings settings object to set the text autosizing
+ * @param factor font scale factor for text autosizing
+ */
+EXPORT_API Eina_Bool ewk_settings_text_autosizing_font_scale_factor_set(Ewk_Settings *settings, double factor);
+
+/**
+ * Gets the current scale factor for text autosizing.
+ *
+ * @param settings settings object to set scale factor for text autosizing
+ *
+ * @return the current font scale factor for text autosizing.
+ * In case of error, it returns non-positive value.
+ */
+EXPORT_API double ewk_settings_text_autosizing_font_scale_factor_get(const Ewk_Settings *settings);
+
+/**
+ * @brief Sets the scale factor for text autosizing.
+ *
+ * @details Default value is 1.0.
+ *
+ * @param settings settings object to set the text autosizing
+ * @param factor font scale factor for text autosizing
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_text_autosizing_scale_factor_set(Ewk_Settings* settings, double factor);
+
+/**
+* @brief Gets the current scale factor for text autosizing.
+*
+* @param settings settings object to set scale factor for text autosizing
+*
+* @return the current font scale factor for text autosizing
+*/
+EXPORT_API double ewk_settings_text_autosizing_scale_factor_get(const Ewk_Settings* settings);
+
+/**
+ * Sets text style for selection mode enabled.
+ *
+ * @param settings settings object
+ * @param enabled text style for selection mode
+ */
+
+EXPORT_API void ewk_settings_text_style_state_enabled_set(Ewk_Settings *settings, Eina_Bool enabled);
+
+/**
+ * Gets text style for selection mode enabled.
+ *
+ * @param settings settings object
+ *
+ * @return @c EINA_TRUE if text style for selection mode enabled, @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_settings_text_style_state_enabled_get(const Ewk_Settings *settings);
+
+/**
+ * @brief Enables/disables legacy font size mode
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] settings settings object
+ * @param[in] enable If @c EINA_TRUE legacy font size is enabled\n
+ *            otherwise @c EINA_FALSE to disable it
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_legacy_font_size_enabled_set(Ewk_Settings* settings, Eina_Bool enabled);
+
+/**
+ * @brief Return whether legacy font size mode is enabled
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] settings settings object
+ *
+ * @return @c EINA_TRUE if Ewk_Legacy_Font_Size_Mode set to legacy font size mode
+ *        @c EINA_FALSE if Ewk_Legacy_Font_Size_Mode not set to legacy font size mode
+ */
+EXPORT_API Eina_Bool ewk_settings_legacy_font_size_enabled_get(Ewk_Settings* settings);
+
+/**
+ * @brief Sets font-family as system font for font rendering
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] settings settings object
+ * @param[in] use @c EINA_TRUE to use one of the system fonts which is selected by user in Settings
+ *               @c EINA_FALSE to use a system default font
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_use_system_font_set(Ewk_Settings* settings, Eina_Bool use);
+
+/**
+ * @brief Returns whether we use the system font which is selected by user in Settings or use a system default font
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] settings settings object
+ *
+ * @return @c EINA_TRUE if we use the sysem font which is selected by user in Settings
+ *        @c EINA_FALSE if we use a system default font or on failure
+ */
+EXPORT_API Eina_Bool ewk_settings_use_system_font_get(Ewk_Settings* settings);
+
+/**
+* @brief Requests enables/disables to control text selection handles from app
+*
+* @since_tizen 2.3
+*
+* @param[in] settings setting object to set to control text selection handles from app
+* @param[in] enable @c EINA_TRUE to control text selection handles from app\n
+*        @c EINA_FALSE to disable
+*
+* @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+*/
+EXPORT_API void ewk_settings_selection_handle_enabled_set(Ewk_Settings* settings, Eina_Bool enable);
+
+/**
+* @brief Returns whether text selection handles are controlled from app or not
+*
+* @since_tizen 2.3
+*
+* @param[in] settings setting object to get whether text selection handles are controlled from app
+or not
+*
+* @return @c EINA_TRUE if text selection handles are controlled from app\n
+*         @c EINA_FALSE if not or on failure
+*/
+EXPORT_API Eina_Bool ewk_settings_selection_handle_enabled_get(const Ewk_Settings* settings);
+
+/**
+ * @brief disclose Set-Cookie headers over IPC.
+ *        Some apps which get cookie through xhr.getAllResponseHeaders interface
+ *        Currently blink don't disclose response header with Set-Cookie field
+ *        to XMLHttpRequest.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] settings setting object
+ * @param[in] Enabled true means app allow to disclose "Set-Cookie"
+ *
+ */
+EXPORT_API void ewk_settings_disclose_set_cookie_headers_enabled(Ewk_Settings* settings, Eina_Bool Enabled);
+
+/**
+ * Request to set enable/disable the ime panel
+ *
+ * By default, the ime panel is Enabled
+ * Some Apps want to disable ime panel
+ *
+ * @param settings setting object
+ * @param Enabled @c EINA_TRUE to enable ime panel
+ *                @c EINA_FALSE to disable ime panel
+ *
+ */
+EXPORT_API void ewk_settings_ime_panel_enabled_set(Ewk_Settings* settings, Eina_Bool Enabled);
+
 #ifdef __cplusplus
 }
 #endif
index 5eaa362..81467bc 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2012 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2012-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_storage_manager_internal.h"
 #include "private/ewk_private.h"
index 70d90b6..05b0502 100644 (file)
@@ -1,13 +1,34 @@
-// Copyright 2012 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
- /**
-  * @file   ewk_storage_manager_internal.h
-  * @brief  Describes the Ewk Storage Manager API.
-  *
-  * Ewk Storage Manager manages web storage.
-  */
+/*
+ * Copyright (C) 2012-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/**
+ * @file   ewk_storage_manager_internal.h
+ * @brief  Describes the Ewk Storage Manager API.
+ *
+ * Ewk Storage Manager manages web storage.
+ */
 
 #ifndef ewk_storage_manager_internal_h
 #define ewk_storage_manager_internal_h
index 6886927..931c540 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_text_style_internal.h"
 
diff --git a/tizen_src/ewk/efl_integration/public/ewk_text_style.h b/tizen_src/ewk/efl_integration/public/ewk_text_style.h
deleted file mode 100644 (file)
index 31d3b04..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ewk_text_style_h
-#define ewk_text_style_h
-
-#include <Eina.h>
-#include <Evas.h>
-#include <tizen.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef enum {
-    EWK_TEXT_STYLE_STATE_FALSE,
-    EWK_TEXT_STYLE_STATE_TRUE,
-    EWK_TEXT_STYLE_STATE_MIXED
-} Ewk_Text_Style_State;
-
-typedef struct _Ewk_Text_Style Ewk_Text_Style;
-
-EXPORT_API Ewk_Text_Style_State ewk_text_style_underline_get(Ewk_Text_Style* text_style);
-EXPORT_API Ewk_Text_Style_State ewk_text_style_italic_get(Ewk_Text_Style* text_style);
-EXPORT_API Ewk_Text_Style_State ewk_text_style_bold_get(Ewk_Text_Style* text_style);
-EXPORT_API Ewk_Text_Style_State ewk_text_style_ordered_list_get(Ewk_Text_Style* text_style);
-EXPORT_API Ewk_Text_Style_State ewk_text_style_unordered_list_get(Ewk_Text_Style* text_style);
-EXPORT_API Eina_Bool ewk_text_style_position_get(Ewk_Text_Style* text_style, Evas_Point* start_point, Evas_Point* end_point);
-EXPORT_API Eina_Bool ewk_text_style_bg_color_get(Ewk_Text_Style* textStyle, int* r, int* g, int* b, int* a);
-EXPORT_API Eina_Bool ewk_text_style_color_get(Ewk_Text_Style* textStyle, int* r, int* g, int* b, int* a);
-EXPORT_API const char* ewk_text_style_font_size_get(Ewk_Text_Style* textStyle);
-EXPORT_API Eina_Bool ewk_text_style_has_composition_get(Ewk_Text_Style* textStyle);
-EXPORT_API Ewk_Text_Style_State ewk_text_style_align_center_get(Ewk_Text_Style* textStyle);
-EXPORT_API Ewk_Text_Style_State ewk_text_style_align_left_get(Ewk_Text_Style* textStyle);
-EXPORT_API Ewk_Text_Style_State ewk_text_style_align_right_get(Ewk_Text_Style* textStyle);
-EXPORT_API Ewk_Text_Style_State ewk_text_style_align_full_get(Ewk_Text_Style* textStyle);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // ewk_text_style_h
index a7d9a21..7b6d31e 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013-2016 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_text_style_internal_h
 #define ewk_text_style_internal_h
index 76350e4..c034e96 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2012 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2012-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_touch_internal_h
 #define ewk_touch_internal_h
index eb7f997..33d2be6 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2014 The Samsung Electronics Co., Ltd All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_tracing_internal.h"
 
index 5134b6a..3132650 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2014 The Samsung Electronics Co., Ltd All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_tracing_internal_h
 #define ewk_tracing_internal_h
index 64b63b8..43aa4d4 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_user_media_internal.h"
 
diff --git a/tizen_src/ewk/efl_integration/public/ewk_user_media.h b/tizen_src/ewk/efl_integration/public/ewk_user_media.h
deleted file mode 100644 (file)
index 2060d82..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2012 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ewk_user_media_h
-#define ewk_user_media_h
-
-#include <Eina.h>
-#include <tizen.h>
-#include "ewk_security_origin.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct _Ewk_User_Media_Permission_Request
-  Ewk_User_Media_Permission_Request;
-
-/**
- * Sets the permission to access local media
- *
- * @param request Ewk_View_User_Media_Permission_Request object for userMedia permission
- * @param allowed decided permission value from user
- */
-EXPORT_API void ewk_user_media_permission_request_set(
-    Ewk_User_Media_Permission_Request* request, Eina_Bool allowed);
-
-/**
- * Suspend the operation for user media permission
- *
- * @param request user media permission request object
- *
- * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
- */
-EXPORT_API Eina_Bool ewk_user_media_permission_request_suspend(
-    Ewk_User_Media_Permission_Request* request);
-
-/**
- * Requests for getting origin of media permission request.
- *
- * @param request Ewk_User_Media_Permission_Request object to get origin for
- *  userMedia permission request
- *
- * @return security origin of userMedia permission request
- */
-EXPORT_API const Ewk_Security_Origin *ewk_user_media_permission_request_origin_get(
-    const Ewk_User_Media_Permission_Request* request);
-
-/**
- * Reply the result about user media permission.
- *
- * @param request Ewk_User_Media_Permission_Request object to get the information
- *  about user media permission request
- * @param allow result about user media permission
- */
-EXPORT_API void ewk_user_media_permission_reply(
-    Ewk_User_Media_Permission_Request* request, Eina_Bool allowed);
-
-#ifdef __cplusplus
-}
-#endif
-#endif // ewk_user_media_h
index 6471d99..b7cc216 100644 (file)
@@ -1,21 +1,27 @@
 /*
-   Copyright (C) 2016 Samsung Electronics
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_user_media_internal_h
 #define ewk_user_media_internal_h
diff --git a/tizen_src/ewk/efl_integration/public/ewk_value.cc b/tizen_src/ewk/efl_integration/public/ewk_value.cc
new file mode 100644 (file)
index 0000000..4b1b6a5
--- /dev/null
@@ -0,0 +1,191 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "ewk_value_product.h"
+#include "private/ewk_private.h"
+
+Ewk_Value ewk_value_ref(Ewk_Value value) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+void ewk_value_unref(Ewk_Value value) {
+  LOG_EWK_API_MOCKUP();
+}
+
+Ewk_Value_Type ewk_value_null_type_get() {
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Ewk_Value_Type ewk_value_type_get(Ewk_Value value) {
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Ewk_Value ewk_value_boolean_new(Eina_Bool initial_value) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Ewk_Value_Type ewk_value_boolean_type_get() {
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Eina_Bool ewk_value_boolean_value_get(Ewk_Value value, Eina_Bool* dst) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Ewk_Value ewk_value_double_new(double initial_value) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Ewk_Value_Type ewk_value_double_type_get() {
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Eina_Bool ewk_value_double_value_get(Ewk_Value value, double* dst) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Ewk_Value ewk_value_int_new(int initial_value) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Ewk_Value_Type ewk_value_int_type_get() {
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Eina_Bool ewk_value_int_value_get(Ewk_Value value, int* dst) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Ewk_Value ewk_value_string_new(const char* initial_value) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Ewk_Value_Type ewk_value_string_type_get() {
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Eina_Stringshare* ewk_value_string_value_get(Ewk_Value value) {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Ewk_Value ewk_value_array_new() {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Ewk_Value_Type ewk_value_array_type_get() {
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Eina_Bool ewk_value_array_is_mutable(Ewk_Value array) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_value_array_append(Ewk_Value array, Ewk_Value value) {
+  LOG_EWK_API_MOCKUP();
+
+}
+
+size_t ewk_value_array_count(Ewk_Value array) {
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Eina_Bool ewk_value_array_get(Ewk_Value array,
+                              size_t position,
+                              Ewk_Value* dst) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_value_array_remove(Ewk_Value array, size_t position) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Ewk_Value ewk_value_dictionary_new() {
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Ewk_Value_Type ewk_value_dictionary_type_get() {
+  LOG_EWK_API_MOCKUP();
+  return 0;
+}
+
+Eina_Bool ewk_value_dictionary_is_mutable(Ewk_Value dictionary) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_value_dictionary_keys(Ewk_Value dictionary, Ewk_Value* keys) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_value_dictionary_set(Ewk_Value dictionary,
+                                   Ewk_Value key,
+                                   Ewk_Value value,
+                                   Eina_Bool* new_entry) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_value_dictionary_add(Ewk_Value dictionary,
+                                   Ewk_Value key,
+                                   Ewk_Value value,
+                                   Eina_Bool* new_entry) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_value_dictionary_get(Ewk_Value dictionary,
+                                   Ewk_Value key,
+                                   Ewk_Value* dst) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_value_dictionary_remove(Ewk_Value dictionary, Ewk_Value key) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
diff --git a/tizen_src/ewk/efl_integration/public/ewk_value_product.h b/tizen_src/ewk/efl_integration/public/ewk_value_product.h
new file mode 100644 (file)
index 0000000..8a310e8
--- /dev/null
@@ -0,0 +1,370 @@
+/*
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef EWK_EFL_INTEGRATION_PUBLIC_EWK_VALUE_PRODUCT_H_
+#define EWK_EFL_INTEGRATION_PUBLIC_EWK_VALUE_PRODUCT_H_
+
+#include <Eina.h>
+#include <tizen.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef const void* Ewk_Value;
+
+typedef int32_t Ewk_Value_Type;
+
+/**
+ * Increases the reference count of the given Ewk_Value.
+ *
+ * @param value the Ewk_Value instance to increase the reference count
+ *
+ * @return a pointer to the object on success, @c NULL otherwise.
+ */
+EXPORT_API Ewk_Value ewk_value_ref(Ewk_Value value);
+
+/**
+ * Decreases the reference count of the given Ewk_Value, freeing it when
+ * the reference count reaches 0. For compound values (like arrays and
+ * dictionaries) all values are removed.
+ *
+ * @param value the Ewk_Value instance to decrease the reference count
+ */
+EXPORT_API void ewk_value_unref(Ewk_Value value);
+
+/**
+ * Returns type of the given value.
+ * The returned type can be compared to one returned by @c
+ * ewk_value_xxx_type_get() functions.
+ *
+ * @param value the Ewk_Value to get type from
+ *
+ * @return the type of value
+ *
+ * @see ewk_value_null_type_get
+ * @see ewk_value_boolean_type_get
+ * @see ewk_value_double_type_get
+ * @see ewk_value_int_type_get
+ * @see ewk_value_string_type_get
+ * @see ewk_value_array_type_get
+ * @see ewk_value_dictionary_type_get
+ */
+EXPORT_API Ewk_Value_Type ewk_value_type_get(Ewk_Value value);
+
+/**
+ * Returns type of null/invalid Ewk_Value.
+ *
+ * @return the type
+ */
+EXPORT_API Ewk_Value_Type ewk_value_null_type_get();
+
+/**
+ * Creates Ewk_Value from boolean value and passes ownership to the caller.
+ *
+ * @param initial_value the initial value
+ *
+ * @return the created Ewk_Value
+ */
+EXPORT_API Ewk_Value ewk_value_boolean_new(Eina_Bool initial_value);
+
+/**
+ * Returns type of boolean Ewk_Value.
+ *
+ * @return the type
+ */
+EXPORT_API Ewk_Value_Type ewk_value_boolean_type_get();
+
+/**
+ * Gets boolean from Ewk_Value.
+ * Fails if Ewk_Value is not of boolean type.
+ *
+ * @param value the value
+ * @param dst the extracted value
+ *
+ * @return the EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_boolean_value_get(Ewk_Value value,
+                                                 Eina_Bool* dst);
+
+/**
+ * Creates Ewk_Value from double and passes ownership to the caller.
+ *
+ * @param initial_value the initial value
+ *
+ * @return the created Ewk_Value
+ */
+EXPORT_API Ewk_Value ewk_value_double_new(double initial_value);
+
+/**
+ * Returns type of double Ewk_Value.
+ *
+ * @return the type
+ */
+EXPORT_API Ewk_Value_Type ewk_value_double_type_get();
+
+/**
+ * Gets double from Ewk_Value.
+ * Fails if Ewk_Value is not of double type.
+ *
+ * @param value the value
+ * @param dst the extracted value
+ *
+ * @return the EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_double_value_get(Ewk_Value value, double* dst);
+
+/**
+ * Creates Ewk_Value from integer and passes ownership to the caller.
+ *
+ * @param initial_value the initial value
+ *
+ * @return the created Ewk_Value
+ */
+EXPORT_API Ewk_Value ewk_value_int_new(int initial_value);
+
+/**
+ * Returns type of integer Ewk_Value.
+ *
+ * @return the type
+ */
+EXPORT_API Ewk_Value_Type ewk_value_int_type_get();
+
+/**
+ * Gets integer from Ewk_Value.
+ * Fails if Ewk_Value is not of integer type.
+ *
+ * @param value the value
+ * @param dst the extracted value
+ *
+ * @return the EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_int_value_get(Ewk_Value value, int* dst);
+
+/**
+ * Creates Ewk_Value from string and passes ownership to the caller.
+ *
+ * @param initial_value the initial value
+ *
+ * @return the created Ewk_Value
+ */
+EXPORT_API Ewk_Value ewk_value_string_new(const char* initial_value);
+
+/**
+ * Returns type of string Ewk_Value.
+ *
+ * @return the type
+ */
+EXPORT_API Ewk_Value_Type ewk_value_string_type_get();
+
+/**
+ * Gets string from Ewk_Value.
+ * Fails if Ewk_Value is not of string type.
+ *
+ * @param value the value
+ *
+ * @return the EINA shared string value if successful, NULL otherwise.
+ */
+EXPORT_API Eina_Stringshare* ewk_value_string_value_get(Ewk_Value value);
+
+/**
+ * Creates Ewk_Value as array and passes ownership to the caller.
+ *
+ * @return the created Ewk_Value
+ */
+EXPORT_API Ewk_Value ewk_value_array_new();
+
+/**
+ * Returns type of array Ewk_Value.
+ *
+ * @return the type
+ */
+EXPORT_API Ewk_Value_Type ewk_value_array_type_get();
+
+/**
+ * Checks whether array is mutable. The given Ewk_Value must be of array type.
+ *
+ * @param array the value
+ *
+ * @return EINA_TRUE if array is mutable, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_array_is_mutable(Ewk_Value array);
+
+/**
+ * Adds @c value at the end of the @c array. The given @c array must be of array
+ * type.
+ * The value can be of any type. The value is deep copied.
+ *
+ * @param array the array
+ * @param value the value
+ *
+ * @return EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_array_append(Ewk_Value array, Ewk_Value value);
+
+/**
+ * Returns size of the given @c array.
+ *
+ * @param array the array
+ *
+ * @return EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API size_t ewk_value_array_count(Ewk_Value array);
+
+/**
+ * Gets @c value from the @c array at given @c position.
+ * WARNING: Currently copy of the value is returned and the ownership
+ * of that value is passed to the caller.
+ *
+ * @param array the array
+ * @param position the position
+ * @param dst the extracted value
+ *
+ * @return EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_array_get(Ewk_Value array,
+                                         size_t position,
+                                         Ewk_Value* dst);
+
+/**
+ * Removes value from the @c array at given @c position.
+ *
+ * @param array the array
+ * @param position the position
+ *
+ * @return EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_array_remove(Ewk_Value array, size_t position);
+
+/**
+ * Creates Ewk_Value as dictionary and passes ownership to the caller.
+ *
+ * @return the created Ewk_Value
+ */
+EXPORT_API Ewk_Value ewk_value_dictionary_new();
+
+/**
+ * Returns type of dictionary Ewk_Value.
+ *
+ * @return the type
+ */
+EXPORT_API Ewk_Value_Type ewk_value_dictionary_type_get();
+
+/**
+ * Checks whether dictionary is mutable. The given Ewk_Value must be of
+ * dictionary type.
+ *
+ * @param dictionary the value
+ *
+ * @return EINA_TRUE if dictionary is mutable, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_dictionary_is_mutable(Ewk_Value dictionary);
+
+/**
+ * Gets array of existing keys in the @c dictionary. The given @c dictionary
+ * must be of dictionary type.
+ * WARNING: Currently array containing copies is returned and the ownership
+ * of that array is passed to the caller.
+ *
+ * @param dictionary the dictionary
+ * @param keys array of strings
+ *
+ * @return EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_dictionary_keys(Ewk_Value dictionary,
+                                               Ewk_Value* keys);
+
+/**
+ * Sets @c value in the @c dictionary at given @c key. The given @c dictionary
+ * must be of dictionary type.
+ * The value can be of any type. Key must be a string value.
+ * Overwrites old value if key existed before.
+ * The value is deep copied.
+ *
+ * @param dictionary the dictionary
+ * @param key the key
+ * @param value the value
+ * @param new_entry the EINA_TRUE if key did not exist before in dictionary,
+ *        EINA_FALSE otherwise.
+ *
+ * @return EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_dictionary_set(Ewk_Value dictionary,
+                                              Ewk_Value key,
+                                              Ewk_Value value,
+                                              Eina_Bool* new_entry);
+
+/**
+ * Adds @c value to the @c dictionary at given @c key. The given @c dictionary
+ * must be of dictionary type.
+ * The value can be of any type. Key must be a string value.
+ * Does nothing if key existed before.
+ * The value is deep copied.
+ *
+ * @param dictionary the dictionary
+ * @param key the key
+ * @param value the value
+ * @param new_entry the EINA_TRUE if key did not exist before in dictionary,
+ *        EINA_FALSE otherwise.
+ *
+ * @return EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_dictionary_add(Ewk_Value dictionary,
+                                              Ewk_Value key,
+                                              Ewk_Value value,
+                                              Eina_Bool* new_entry);
+
+/**
+ * Gets @c value from the @c dictionary at given @c key. The given @c dictionary
+ * must be of dictionary type.
+ * WARNING: Currently copy of the value is returned and the ownership
+ * of that value is passed to the caller.
+ *
+ * @param dictionary the dictionary
+ * @param key the key
+ * @param dst the value
+ *
+ * @return EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_dictionary_get(Ewk_Value dictionary,
+                                              Ewk_Value key,
+                                              Ewk_Value* dst);
+
+/**
+ * Removes value from the @c dictionary at given @c key.
+ *
+ * @param dictionary the dictionary
+ * @param key the key
+ *
+ * @return EINA_TRUE if successful, EINA_FALSE otherwise.
+ */
+EXPORT_API Eina_Bool ewk_value_dictionary_remove(Ewk_Value dictionary,
+                                                 Ewk_Value key);
+
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
+#endif  // EWK_EFL_INTEGRATION_PUBLIC_EWK_VALUE_PRODUCT_H_
index 3b95f8e..caaa1b9 100644 (file)
@@ -1,23 +1,21 @@
 /*
  * Copyright (C) 2009-2010 ProFUSION embedded systems
- * Copyright (C) 2009-2014 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2009-2016 Samsung Electronics. All rights reserved.
  * Copyright (C) 2012 Intel Corporation
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA  02110-1301, USA.
+ * Lesser General Public License for more details.
  *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include "ewk_view_product.h"
@@ -188,7 +186,7 @@ double ewk_view_load_progress_get(const Evas_Object* view)
   return impl->GetProgressValue();
 }
 
-Eina_Bool ewk_view_scale_set(const Evas_Object* view, double scale_factor, int x, int y)
+Eina_Bool ewk_view_scale_set(Evas_Object* view, double scale_factor, int x, int y)
 {
   // TODO: We should implement AC in order to work this API normally.
   EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
@@ -421,7 +419,7 @@ Eina_Bool ewk_view_custom_header_clear(const Evas_Object* ewkView)
 }
 
 
-Eina_Bool ewk_view_visibility_set(const Evas_Object* view, Eina_Bool enable)
+Eina_Bool ewk_view_visibility_set(Evas_Object* view, Eina_Bool enable)
 {
   EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
 
@@ -472,10 +470,10 @@ Eina_Bool ewk_view_inspector_server_stop(Evas_Object* ewkView)
   return impl->StopInspectorServer();
 }
 
-Evas_Object* ewk_view_cache_image_get(const Evas_Object* ewkView, const char* imageUrl, Evas* canvas)
+Eina_Bool ewk_view_cache_image_get(const Evas_Object* o, const char* image_url, Evas* canvas, Ewk_View_Cache_Image_Get_Callback callback, void* user_data)
 {
   LOG_EWK_API_MOCKUP();
-       return NULL;
+  return false;
 }
 
 void ewk_view_scroll_by(Evas_Object* ewkView, int deltaX, int deltaY)
@@ -602,7 +600,7 @@ Eina_Bool ewk_view_command_execute(Evas_Object* view, const char* command, const
   return true;
 }
 
-Eina_Bool ewk_view_contents_size_get(Evas_Object* view, Evas_Coord* width, Evas_Coord* height)
+Eina_Bool ewk_view_contents_size_get(const Evas_Object* view, Evas_Coord* width, Evas_Coord* height)
 {
   if (width)
     *width = 0;
@@ -811,12 +809,6 @@ Ewk_Frame_Ref ewk_view_main_frame_get(Evas_Object* o)
   return static_cast<Ewk_Frame_Ref>(impl->GetMainFrame());
 }
 
-Eina_Bool ewk_view_main_frame_scrollbar_visible_set(Evas_Object* ewkView, Eina_Bool visible)
-{
-  LOG_EWK_API_MOCKUP();
-  return false;
-}
-
 void ewk_view_content_security_policy_set(Evas_Object* ewkView, const char* policy, Ewk_CSP_Header_Type type)
 {
   EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl);
@@ -1158,3 +1150,242 @@ void ewk_view_quota_permission_request_cancel(const Ewk_Quota_Permission_Request
   EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl);
   impl->QuotaRequestCancel(request);
 }
+
+Eina_Bool ewk_view_focus_set(const Evas_Object* view, Eina_Bool focused)
+{
+  EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
+  impl->SetFocus(focused);
+  return EINA_TRUE;
+}
+
+Eina_Bool ewk_view_focus_get(const Evas_Object* view)
+{
+  EWK_VIEW_IMPL_GET_OR_RETURN(view, impl, EINA_FALSE);
+  return impl->HasFocus();
+}
+
+Eina_Bool ewk_view_page_close(Evas_Object* o)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_view_session_timeout_set(Evas_Object* o, unsigned long timeout)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_view_request_manifest(Evas_Object* o, Ewk_View_Request_Manifest_Callback callback, void* user_data)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Evas_Object* ewk_view_widget_get(Evas_Object* view)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Eina_Bool ewk_view_horizontal_panning_hold_get(Evas_Object* o)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_view_horizontal_panning_hold_set(Evas_Object* o, Eina_Bool hold)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_view_draws_transparent_background_get(Evas_Object* o)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_view_split_scroll_overflow_enabled_get(const Evas_Object* o)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_view_did_change_theme_color_callback_set(Evas_Object* o, Ewk_View_Did_Change_Theme_Color_Callback callback, void* user_data)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_view_save_page_as_mhtml(Evas_Object* o, const char* path, Ewk_View_Save_Page_Callback callback, void* user_data)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_view_reader_mode_set(Evas_Object* ewk_view, Eina_Bool enable)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_view_top_controls_height_set(Evas_Object* ewk_view, size_t top_height, size_t bottom_height)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_view_top_controls_state_set(Evas_Object* ewk_view, Ewk_Top_Control_State constraint,  Ewk_Top_Control_State current, Eina_Bool animation)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_view_main_frame_scrollbar_visible_set(Evas_Object* o, Eina_Bool visible)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_view_set_custom_device_pixel_ratio(Evas_Object* ewkView, Eina_Bool enabled)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+#if defined(OS_TIZEN_TV)
+Eina_Bool ewk_media_translated_url_set(Evas_Object* ewkView, const char* url)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_view_app_preload_set(Evas_Object* ewkView, Eina_Bool is_preload)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+#endif
+
+Eina_Bool ewk_view_html_string_override_current_entry_load(Evas_Object* view, const char* html, const char* base_uri, const char* unreachable_url)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_view_text_matches_count(Evas_Object* o, const char* text, Ewk_Find_Options options, unsigned max_match_count)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_view_voicemanager_label_draw(Evas_Object* view, Evas_Object* image, Eina_Rectangle rect){
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_view_voicemanager_labels_clear(Evas_Object* view)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_view_mirrored_blur_set(Evas_Object* o, Eina_Bool state)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_view_add_dynamic_certificate_path(const Evas_Object *ewkView, const char* host, const char* cert_path)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_view_atk_deactivation_by_app(Evas_Object* view, Eina_Bool enable)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+char* ewk_view_cookies_get(Evas_Object* o, const char* url)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+void ewk_view_notification_show_callback_set(Evas_Object *o, Ewk_View_Notification_Show_Callback show_callback, void *user_data)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_view_notification_cancel_callback_set(Evas_Object *o, Ewk_View_Notification_Cancel_Callback cancel_callback, void *user_data)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+const char* ewk_view_custom_encoding_get(const Evas_Object* o)
+{
+  LOG_EWK_API_MOCKUP();
+  return NULL;
+}
+
+Eina_Bool ewk_view_custom_encoding_set(Evas_Object* o, const char* encoding)
+{
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_view_force_layout(const Evas_Object* o)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_media_current_time_get(const Evas_Object* o, Ewk_View_Video_Current_Time_Get_Callback callback, void *user_data)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_view_send_key_event(Evas_Object* ewk_view, void* key_event, Eina_Bool is_press) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+Eina_Bool ewk_view_tts_mode_set(Evas_Object* view, ewk_tts_mode tts_mode) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_view_request_manifest_from_url(Evas_Object* o, Ewk_View_Request_Manifest_Callback callback, void* user_data, const char* host_url, const char* manifest_url)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_view_app_installation_request_callback_set(Evas_Object* o, Ewk_App_Installation_Request_Callback callback, void* user_data)
+{
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_view_bg_color_set(Evas_Object* o, int r, int g, int b, int a) {
+  LOG_EWK_API_MOCKUP("This will be implemented soon");
+  return false;
+}
+
+Eina_Bool ewk_view_key_events_enabled_set(Evas_Object* o, Eina_Bool enabled) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_view_clear_all_tiles_resources(Evas_Object* ewkView) {
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_view_set_support_video_hole(Evas_Object* ewkView, Evas_Object* window, Eina_Bool enable, Eina_Bool isVideoWindow) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
+
+void ewk_view_widget_pepper_extension_callback_set(Evas_Object* ewk_view, Generic_Sync_Call_Callback cb, void* user_data) {
+  LOG_EWK_API_MOCKUP();
+}
+
+void ewk_view_widget_pepper_extension_info_set(Evas_Object* ewk_view, Ewk_Value widget_pepper_ext_info) {
+  LOG_EWK_API_MOCKUP();
+}
+
+Eina_Bool ewk_view_app_preload_set(Evas_Object* ewkView, Eina_Bool is_preload) {
+  LOG_EWK_API_MOCKUP();
+  return false;
+}
index cf6559c..db2177f 100644 (file)
@@ -1,22 +1,21 @@
 /*
-   Copyright (C) 2016 Samsung Electronics
-   Copyright (C) 2012 Intel Corporation. All rights reserved.
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2011-2016 Samsung Electronics.
+ * Copyright (C) 2012 Intel Corporation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
 
 /**
  * @file    ewk_view.h
@@ -35,6 +34,7 @@
 #include "ewk_back_forward_list.h"
 #include "ewk_context.h"
 #include "ewk_context_menu.h"
+#include "ewk_manifest.h"
 #include "ewk_settings.h"
 
 #ifdef __cplusplus
@@ -57,7 +57,7 @@ extern "C" {
  *
  * @return @c EINA_TRUE on success, othetwise @c EINA_FALSE
  */
-EXPORT_API Eina_Bool ewk_view_visibility_set(const Evas_Object* o, Eina_Bool enable);
+EXPORT_API Eina_Bool ewk_view_visibility_set(Evas_Object* o, Eina_Bool enable);
 
 /**
  * @brief Sends the orientation of the device.
@@ -354,7 +354,7 @@ EXPORT_API const char* ewk_view_user_agent_get(const Evas_Object* o);
  *         otherwise @c EINA_FALSE on failure and\n
  *         @a width and @a height are zeroed
  */
-EXPORT_API Eina_Bool ewk_view_contents_size_get(Evas_Object* o, Evas_Coord* width, Evas_Coord* height);
+EXPORT_API Eina_Bool ewk_view_contents_size_get(const Evas_Object* o, Evas_Coord* width, Evas_Coord* height);
 
 /**
  * @brief Callback for ewk_view_script_execute().
@@ -363,7 +363,7 @@ EXPORT_API Eina_Bool ewk_view_contents_size_get(Evas_Object* o, Evas_Coord* widt
  *
  * @param[in] o The view object
  * @param[in] result_value The value returned by the script\n
- *            If executed script returns a value, it would be @a result_value\n
+ *            If executed script returns a value, it would be @a result_value,\n
  *            otherwise @c NULL if there is no value returned by the script
  * @param[in] user_data The user_data will be passsed when
  *            ewk_view_script_execute() is called
@@ -404,7 +404,7 @@ EXPORT_API Eina_Bool ewk_view_script_execute(Evas_Object* o, const char* script,
  * @return @c EINA_TRUE on success,\n
  *         otherwise EINA_FALSE
  */
-EXPORT_API Eina_Bool ewk_view_scale_set(const Evas_Object* view, double scale_factor, int x, int y);
+EXPORT_API Eina_Bool ewk_view_scale_set(Evas_Object* o, double scale_factor, int cx, int cy);
 
 /**
  * @brief Gets the current scale factor of the page.
@@ -597,6 +597,10 @@ EXPORT_API Eina_Bool ewk_view_text_find(Evas_Object* o, const char* text, Ewk_Fi
  * @details External objects such as stylesheets or images referenced
  *          in the HTML\n document are located relative to @a baseUrl.\n
  *
+ * @remarks There is an alternative API ewk_view_html_string_override_current_entry_load()
+ *          which is able to override current entry which prevents from backing back to
+ *          malicious page.
+ *
  * If an @a unreachableUrl is passed it is used as the url for the loaded
  * content.\n This is typically used to display error pages for a failed load.
  *
@@ -672,6 +676,70 @@ EXPORT_API Eina_Bool ewk_view_javascript_message_handler_add(Evas_Object* o, Ewk
  */
 EXPORT_API Eina_Bool ewk_view_evaluate_javascript(Evas_Object* o, const char* name, const char* result);
 
+/**
+ * @brief Callback invoked when requested manifest inform is responded.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o View object for which callback was set
+ * @param[in] manifest Received manifest object of current's page
+ *            This object is valid after callback data is received.
+ *            If the manifest file is empty, it is returned NULL.
+ * @param[in] user_data User data passed to
+ *            ewk_view_request_manifest
+ *
+ * @see ewk_view_request_manifest
+ */
+typedef void (*Ewk_View_Request_Manifest_Callback)(Evas_Object* o, Ewk_View_Request_Manifest* manifest, void* user_data);
+
+/**
+ * @brief Requests the manifest data of current's page.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o view object to request the manifest information
+ * @param[in] callback Ewk_View_Request_Manifest_Callback function to request manifest information
+ * @param[in] user_data user data
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API void ewk_view_request_manifest(Evas_Object* o, Ewk_View_Request_Manifest_Callback callback, void* user_data);
+
+/**
+ * @brief Requests to set or unset a web view as the currently focused one.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o The view object.
+ * @param[in] focused @c EINA_TRUE to set the focus on the web view,
+ *            @c EINA_FALSE to remove the focus from the web view.
+ *
+ * @return @c EINA_TRUE on success, otherwise @c EINA_FALSE
+ */
+EXPORT_API Eina_Bool ewk_view_focus_set(const Evas_Object* o, Eina_Bool focused);
+
+#if defined(TIZEN_VIDEO_HOLE)
+/**
+ * @brief Sets the support of video hole and video window, Use H/W overlay for
+ * performance of video output
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o the view object
+ * @param[in] o the top-level window object
+ * @param[in] enable EINA_TRUE to set on support the video hole,
+ *            EINA_FALSE otherwise
+ * @param[in] enable EINA_TRUE to set on the video window of video hole,
+ *            EINA_FALSE to set on the video windowless of video hole
+ *
+ * @return return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_view_set_support_video_hole(Evas_Object* ewkView, Evas_Object* window, Eina_Bool enable, Eina_Bool isVideoWindow);
+#endif
+
+/**
+* @}
+*/
 #ifdef __cplusplus
 }
 #endif
index 3ce98ec..41d52ee 100644 (file)
@@ -1,21 +1,27 @@
 /*
-   Copyright (C) 2016 Samsung Electronics. All rights reserved.
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2011-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_view_internal.h
@@ -27,6 +33,7 @@
 #ifndef ewk_view_internal_h
 #define ewk_view_internal_h
 
+#include "ewk_app_installation_request_internal.h"
 #include "ewk_auth_challenge_internal.h"
 #include "ewk_context_internal.h"
 #include "ewk_enums_internal.h"
@@ -136,6 +143,13 @@ enum Ewk_View_Mode {
 };
 typedef enum Ewk_View_Mode Ewk_View_Mode;
 
+enum Ewk_Top_Control_State {
+    EWK_TOP_CONTROL_SHOWN = 1,
+    EWK_TOP_CONTROL_HIDDEN = 2,
+    EWK_TOP_CONTROL_BOTH = 3
+};
+typedef enum Ewk_Top_Control_State Ewk_Top_Control_State;
+
 /// Ewk view's class, to be overridden by sub-classes.
 struct Ewk_View_Smart_Class {
     Evas_Smart_Class sc; /**< all but 'data' is free to be changed. */
@@ -403,6 +417,17 @@ EXPORT_API Evas_Object *ewk_view_smart_add(Evas *e, Evas_Smart *smart, Ewk_Conte
  */
 EXPORT_API Evas_Object *ewk_view_add_with_context(Evas *e, Ewk_Context *context);
 
+/**
+ * @brief Gets the widget of this view.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o The view object to get the widget
+ *
+ * @return widget on success or @c NULL on failure
+ */
+EXPORT_API Evas_Object* ewk_view_widget_get(Evas_Object* view);
+
 enum Ewk_Page_Visibility_State {
     EWK_PAGE_VISIBILITY_STATE_VISIBLE,
     EWK_PAGE_VISIBILITY_STATE_HIDDEN,
@@ -437,6 +462,28 @@ typedef void (*Ewk_View_Plain_Text_Get_Callback)(Evas_Object* o, const char* pla
  */
 typedef void (*Ewk_View_MHTML_Data_Get_Callback)(Evas_Object *o, const char *data, void *user_data);
 
+/**
+ * @brief Gets whether horizontal panning is holding.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] o view object to get whether horizontal panning is holding
+ *
+ * @return @c EINA_TRUE if horizontal panning is holding
+ *         @c EINA_FALSE if not or on failure
+ */
+EXPORT_API Eina_Bool ewk_view_horizontal_panning_hold_get(Evas_Object* o);
+
+/**
+ * @brief Sets to hold horizontal panning.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] o view object to set to hold horizontal panning
+ * @param[in] hold @c EINA_TRUE to hold horizontal panning
+ *        @c EINA_FALSE not to hold
+ */
+EXPORT_API void ewk_view_horizontal_panning_hold_set(Evas_Object* o, Eina_Bool hold);
 
 /**
  * @brief Gets whether vertical panning is holding.
@@ -521,10 +568,6 @@ typedef Eina_Bool (*Ewk_View_JavaScript_Prompt_Callback)(Evas_Object* o, const c
  */
 EXPORT_API void ewk_view_javascript_prompt_callback_set(Evas_Object* o, Ewk_View_JavaScript_Prompt_Callback callback, void* user_data);
 
-//#if ENABLE(TIZEN_SUPPORT_BEFORE_UNLOAD_CONFIRM_PANEL)
-typedef Eina_Bool (*Ewk_View_Before_Unload_Confirm_Panel_Callback)(Evas_Object* o, const char* message, void* user_data);
-//#endif
-
 //#if ENABLE(TIZEN_APPLICATION_CACHE)
 typedef Eina_Bool (*Ewk_View_Applicacion_Cache_Permission_Callback)(Evas_Object* o, Ewk_Security_Origin* origin,  void* user_data);
 //#endif
@@ -954,6 +997,17 @@ EXPORT_API char* ewk_view_get_cookies_for_url(Evas_Object* o, const char* url);
 EXPORT_API Eina_Bool ewk_view_draws_transparent_background_set(Evas_Object *o, Eina_Bool enabled);
 
 /**
+* @brief Queries if transparent background is enabled.
+*
+* @since_tizen 2.3
+*
+* @param[in] o view object to get whether transparent background is enabled or not
+*
+* @return @c EINA_TRUE on enable or @c EINA_FALSE on disable
+*/
+EXPORT_API Eina_Bool ewk_view_draws_transparent_background_get(Evas_Object* o);
+
+/**
  * @brief Sets the background color and transparency of the view.
  *
  * @note Should be used after ewk_view_url_set().
@@ -997,13 +1051,27 @@ EXPORT_API void ewk_view_not_found_error_page_load(Evas_Object* ewkView, const c
 EXPORT_API Eina_Bool ewk_view_split_scroll_overflow_enabled_set(Evas_Object* ewkView, const Eina_Bool enabled);
 
 /**
- * Set Draw Focus Ring for CacheBuilder
+* @brief Gets the staus of split scrolling supporting for overflow scroll.
+*
+* @since_tizen 2.3
+*
+* @param[in] o view object to get the status of split scrolling supporting
+*
+* @return the status of split scrolling supporting
+*/
+EXPORT_API Eina_Bool ewk_view_split_scroll_overflow_enabled_get(const Evas_Object* o);
+
+/**
+ * Deprecated.
+ * Enable/disable focus ring.
+ *
+ * @note Focus ring is enabled by default but disabled for wrt on TV profile
  *
  * @param ewkView view object
- * @@param enabled a state to set
+ * @param enabled @c EINA_TRUE to enable the focus ring, @c EINA_FALSE to disable
  *
  */
-EXPORT_API void ewk_view_draw_focus_ring_enable_set(Evas_Object* ewkView, Eina_Bool enable);
+EINA_DEPRECATED EXPORT_API void ewk_view_draw_focus_ring_enable_set(Evas_Object* ewkView, Eina_Bool enable);
 
 /**
  * Queries the current zoom factor of the page.
@@ -1103,30 +1171,220 @@ EXPORT_API Eina_Bool ewk_view_web_login_request(Evas_Object* ewkView);
 EXPORT_API void ewk_view_notification_permission_callback_set(Evas_Object *o, Ewk_View_Notification_Permission_Callback callback, void *user_data);
 
 /**
- * @brief Request to set or unset web view as the currently focused one.
+ * @brief Callback invoked when theme color is changed
+ *
+ * @details Ewk_View_Did_Change_Theme_Color_Callback callback allows host\n
+ *          application to receive information regarding theme color change.\n
+ *          Callback will be called in following cases:\n
+ *          - no "theme-color" meta tag => "theme-color" meta tag\n
+ *          - "theme-color" meta tag => different "theme-color" meta tag\n
+ *          - "theme-color" meta tag => no "theme-color" meta tag\n
+ *          In case of no "theme-color" meta tag @a r, @a g, @a b and @a a\n
+ *          equal 0.
  *
  * @since_tizen 3.0
  *
- * @param[in] o View object to set focus.
- * @param[in] focused EINA_TRUE to set focus on web view,
- *            EINA_FALSE otherwise.
+ * @param[in] o View object for which callback was set
+ * @param[in] r Red color component ranged from 0 to 255
+ * @param[in] g Green color component ranged from 0 to 255
+ * @param[in] b Blue color component ranged from 0 to 255
+ * @param[in] a Opacity value ranged from 0 to 255
+ * @param[in] user_data User data passed to\n
+ *                      ewk_view_did_change_theme_color_callback_set
  *
- * @return @c EINA_TRUE on success, othetwise @c EINA_FALSE
+ * @see ewk_view_did_change_theme_color_callback_set
  */
-EXPORT_API Eina_Bool ewk_view_focus_set(const Evas_Object* o,
-                                        Eina_Bool focused);
+typedef void (*Ewk_View_Did_Change_Theme_Color_Callback)(Evas_Object* o, int r, int g, int b, int a, void* user_data);
 
 /**
- * @brief Checks whether web view has the focus.
+ * @brief Sets Ewk_View_Did_Change_Theme_Color_Callback
  *
  * @since_tizen 3.0
  *
- * @param[in] o View object to set focus.
+ * @param[in] o View object to receive theme color change information
+ * @param[in] callback New callback, NULL resets current callback
+ * @param[in] user_data User data that will be passed to @a callback
+ *
+ * @return @c EINA_TRUE on success,\n
+ *         otherwise @c EINA_FALSE
  *
- * @return @c EINA_TRUE if web view has the focus, othetwise @c EINA_FALSE
+ * @see Ewk_View_Did_Change_Theme_Color_Callback
  */
-EXPORT_API Eina_Bool ewk_view_focus_get(const Evas_Object* o);
+EXPORT_API Eina_Bool ewk_view_did_change_theme_color_callback_set(Evas_Object* o, Ewk_View_Did_Change_Theme_Color_Callback callback, void* user_data);
 
+/**
+ * @brief Callback invoked when save page is done
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o View object for which callback was set
+ * @param[in] file_path File path of saved page on success or @c NULL on failure
+ * @param[in] user_data User data passed to ewk_view_save_page
+ *
+ * @see ewk_view_save_page_as_mhtml
+ */
+typedef void (*Ewk_View_Save_Page_Callback)(Evas_Object* o, const char* file_path, void* user_data);
+
+/**
+ * @brief Save current page as MHTML format
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o View object which has page to save
+ * @param[in] path File path where saved page should be placed\n
+ *                 It can be full path of saved page or path of
+ *                 existing directory\n
+ *                 If path is existing directory, file name will be chosen\n
+ *                 according to the title of the current page\n
+ *                 (e.g. /path-to-directory/Google.mhtml)\n
+ *                 If path has no extension, default extension(mhtml)\n
+ *                 will be appended
+ * @param[in] callback Callback to be called when the operation is finished
+ * @param[in] user_data User data that will be passed to @a callback
+ *
+ * @return @c EINA_TRUE on successful request,\n
+ *         otherwise @c EINA_FALSE
+ *
+ * @see Ewk_View_Save_Page_Callback
+ */
+EXPORT_API Eina_Bool ewk_view_save_page_as_mhtml(Evas_Object* o, const char* path, Ewk_View_Save_Page_Callback callback, void* user_data);
+
+/*
+ * @brief Set Reader mode enable
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] ewk_view view object to enable/disable the Reader mode
+ * @param[in] enable a state to set
+ *
+ * @note Reader Mode support or not will be known after the ewk_view object\n
+ *       received "reader,mode" callback from evas_object smart callback.
+ */
+EXPORT_API void ewk_view_reader_mode_set(Evas_Object* ewk_view, Eina_Bool enable);
+
+/**
+ * @brief Sets the height of top controls.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] ewk_view view object to set height of top control
+ * @param[in] top_height the height of the top controls in pixels
+ * @param[in] bottom_height the height of the bottom controls in pixels
+ *
+ * @return @c EINA_TRUE on success @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_view_top_controls_height_set(Evas_Object* ewk_view,
+    size_t top_height, size_t bottom_height);
+
+/**
+ * @brief Sets the state of top controls.
+ *
+ * @since_tizen 3.0
+ *
+ * @note EWK_TOP_CONTROL_BOTH for current to preserve the current position.
+ *
+ * @param[in] ewk_view view object to set state of top control
+ * @param[in] constraint constrain the top controls to being shown or hidden
+ * @param[in] current set current state
+ * @param[in] animate whether or not to animate to the proper state
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_view_top_controls_state_set(Evas_Object* ewk_view, Ewk_Top_Control_State constraint,  Ewk_Top_Control_State current, Eina_Bool animation);
+
+/**
+ * @brief Sets the visibility of main frame scrollbar.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] o view object
+ * @param[in] visible visibility of main frame scrollbar
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_view_main_frame_scrollbar_visible_set(Evas_Object* o, Eina_Bool visible);
+
+/**
+ * @brief Set Default XHR LongPolling Timeout.
+ *
+ * @details XML Http Request by default does not have a timeout value. The
+ *          timeout can be set using "timeout" field during creation of XHR
+ *          object. This API allows for setting the timeout globally for
+ *          whole View. Request timeout value will be calculated as minimum
+ *          of argument of the API and value set in XHR field. If XHR field
+ *          value is 0, value from API will be used.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o view object
+ * @param[in] timeout XHR LongPolling timeout value (in seconds)
+ */
+EXPORT_API void ewk_view_session_timeout_set(Evas_Object* o, unsigned long timeout);
+
+/**
+ * @brief Enforces web page to close
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o view
+ *
+ * @return @c EINA_TRUE on success @c EINA_FALSE otherwise
+ *
+ */
+EXPORT_API Eina_Bool ewk_view_page_close(Evas_Object* o);
+
+/**
+ * @brief Requests the manifest data from a given URL.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] o view object to request the manifest information
+ * @param[in] callback Ewk_View_Request_Manifest_Callback function
+ * @param[in] manifest_url a given URL
+ * @param[in] host_url a host url used to resolve relative URLs
+ *            located in manifest file
+ *
+ * @see Ewk_View_Request_Manifest_Callback
+ */
+EXPORT_API void ewk_view_request_manifest_from_url(Evas_Object* o, Ewk_View_Request_Manifest_Callback callback, void* user_data, const char* host_url, const char* manifest_url);
+
+/**
+ * Callback for @a ewk_view_app_installation_request_callback_set api.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] o view object
+ * @param[in] request app installation request
+ * @param[in] user_data user data passed to
+ *                      @a ewk_view_app_installation_request_callback_set api
+ */
+typedef void (*Ewk_App_Installation_Request_Callback)(Evas_Object* o, Ewk_App_Installation_Request* request, void* user_data);
+
+/**
+ * Set callback handling app installation request. It is called in reaction to
+ * window.navigator.installApp() api being called.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] o view object
+ * @param[in] callback callback to be set; Can be null
+ * @param[in] user_data user data to be passed to @a callback; Can be null
+ */
+EXPORT_API void ewk_view_app_installation_request_callback_set(Evas_Object* o, Ewk_App_Installation_Request_Callback callback, void* user_data);
+
+/**
+ * Sets the state to apply Blur Effect for widgets
+ *
+ * @since_tizen 3.0
+ *
+ * This function let WebKit knows that the widget is tizen 2.x widget.
+ * WebKit will query  this information to decide to apply Blur effect or not.
+ * @param[in] o view object to set the visibility state.
+ * @param[in] state @c EINA_TRUE if tizen 2.x widget
+ *              @c EINA_FALSE otherwise.
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
+ */
+EXPORT_API void ewk_view_mirrored_blur_set(Evas_Object* o, Eina_Bool state);
 
 #ifdef __cplusplus
 }
index 99a523b..382bb89 100644 (file)
@@ -1,21 +1,27 @@
 /*
-   Copyright (C) 2016 Samsung Electronics. All rights reserved.
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
+ * Copyright (C) 2011-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 /**
  * @file    ewk_view_product.h
@@ -28,6 +34,7 @@
 #define ewk_view_product_h
 
 #include "ewk_context_product.h"
+#include "ewk_value_product.h"
 #include "ewk_view_internal.h"
 
 #if defined(TIZEN_PEPPER_EXTENSIONS)
@@ -101,6 +108,17 @@ EXPORT_API void ewk_view_javascript_confirm_reply(Evas_Object* o, Eina_Bool resu
 EXPORT_API void ewk_view_javascript_prompt_reply(Evas_Object* o, const char* result);
 
 /**
+ * @brief Callback for before unload popup
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] o view object
+ * @param[in] message the contents of before unload popup
+ * @param[in] user_data user data
+ */
+typedef Eina_Bool (*Ewk_View_Before_Unload_Confirm_Panel_Callback)(Evas_Object* o, const char* message, void* user_data);
+
+/**
  * @brief Sets callback of before unload popup
  *
  * @since_tizen 2.3
@@ -171,19 +189,32 @@ EXPORT_API void ewk_view_unfocus_allow_callback_set(Evas_Object* o, Ewk_View_Unf
 EXPORT_API Eina_Bool ewk_view_html_contents_set(Evas_Object* o, const char* html, const char* base_uri);
 
 /**
- * @brief Returns the evas image object for the cache image specified in url.
+ * @brief Callback for ewk_view_cache_image_get
  *
- * @details The returned evas image object @b should be freed after use.
+ * @since_tizen 3.0
  *
- * @since_tizen 2.3
+ * @param[in] o view object
+ * @param[in] image_url url of the image in the cache
+ * @param[in] image cache image @b should be freed after use
+ * @param[in] user_data user data
+ */
+typedef void (*Ewk_View_Cache_Image_Get_Callback)(Evas_Object* o, const char* image_url, Evas_Object* image, void* user_data);
+
+/**
+ * @brief Asynchronous request for get the cache image specified in url.
+ *
+ * @since_tizen 3.0
  *
- * @param[in] o view object to get specified rectangle of cairo surface
+ * @param[in] o view object
  * @param[in] image_url url of the image in the cache
  * @param[in] canvas canvas for creating evas image
+ * @param[in] callback result callback to get cache image
+ * @param[in] user_data user_data will be passed when @a callback is called
  *
- * @return newly allocated evas image object on sucess or @c 0 on failure
+ * @return @c EINA_TRUE on successful request, @c EINA_FALSE on failure
  */
-EXPORT_API Evas_Object* ewk_view_cache_image_get(const Evas_Object* o, const char* image_url, Evas* canvas);
+EXPORT_API Eina_Bool ewk_view_cache_image_get(const Evas_Object* o, const char* image_url, Evas* canvas,
+                                              Ewk_View_Cache_Image_Get_Callback callback, void* user_data);
 
 /**
  * @brief Requests for getting web application capable.
@@ -369,18 +400,6 @@ typedef void (*Ewk_View_Background_Color_Get_Callback)(Evas_Object *o, int r, in
 EXPORT_API Eina_Bool ewk_view_bg_color_get(Evas_Object *o, Ewk_View_Background_Color_Get_Callback callback, void *user_data);
 
 /**
- * @brief Sets the visibility of main frame scrollbar.
- *
- * @since_tizen 2.3
- *
- * @param[in] o view object
- * @param[in] visible visibility of main frame scrollbar
- *
- * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
- */
-EXPORT_API Eina_Bool ewk_view_main_frame_scrollbar_visible_set(Evas_Object* o, Eina_Bool visible);
-
-/**
  * Callback for ewk_view_main_frame_scrollbar_visible_get
  *
  * @param o view object
@@ -476,7 +495,7 @@ EXPORT_API void ewk_view_run_mixed_content_confirm_callback_set(Evas_Object* ewk
  * @return current favicon on success or @c NULL if unavailable or on failure.
  * The returned Evas_Object needs to be freed after use.
  */
-EXPORT_API Evas_Object *ewk_view_favicon_get(const Evas_Object *item);
+EXPORT_API Evas_Object* ewk_view_favicon_get(const Evas_Object* ewkView);
 
 /**
  * To resume new url network loading
@@ -603,7 +622,40 @@ EXPORT_API Eina_Bool ewk_view_stop_video(Evas_Object* o, Ewk_Stop_Video_Callback
  */
 EXPORT_API Eina_Bool ewk_view_set_support_video_hole(Evas_Object* ewkView, Evas_Object* window, Eina_Bool enable, Eina_Bool isVideoWindow);
 
-#if defined(TIZEN_PEPPER_EXTENSIONS)
+/**
+ * @brief Sets the support of 4K video, Customize the device pixel ratio for
+ * video plane.
+ *
+ * @since_tizen 3.0
+ *
+ * @note Should be used after ewk_view_url_set().
+ *
+ * @param[in] o the view object
+ * @param[in] o enabled a state to set
+ *
+ * @return return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_view_set_custom_device_pixel_ratio(Evas_Object* ewkView, Eina_Bool enabled);
+
+/**
+ * @brief Gets whether vertical panning is holding.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] o view object to get whether vertical panning is holding
+ *
+ * @return @c EINA_TRUE if vertical panning is holding
+ *         @c EINA_FALSE if not or on failure
+ */
+EXPORT_API Eina_Bool ewk_view_vertical_panning_hold_get(Evas_Object* o);
+
+/**
+  * Block/Release the vertical pan
+  *
+  * @param o view object on which pan is to be blocked/release
+  * @param hold status of pan
+  */
+EXPORT_API void ewk_view_vertical_panning_hold_set(Evas_Object* o, Eina_Bool hold);
 
 /**
  * Callback for the generic sync call.
@@ -629,14 +681,34 @@ typedef Ewk_Value (*Generic_Sync_Call_Callback)(const char* name, Ewk_Value argu
 EXPORT_API void ewk_view_widget_pepper_extension_callback_set(Evas_Object* ewk_view, Generic_Sync_Call_Callback cb, void* user_data);
 
 /**
-* Sets the pepper widget extension info
-*
-* @param ewk_view view object to set the info in
-* @param widget_pepper_ext_info the Ewk_Value containing the information
-*/
+ * Sets the pepper widget extension info
+ *
+ * @param ewk_view view object to set the info in
+ * @param widget_pepper_ext_info the Ewk_Value containing the information
+ */
 EXPORT_API void ewk_view_widget_pepper_extension_info_set(Evas_Object* ewk_view, Ewk_Value widget_pepper_ext_info);
 
-#endif  // defined(TIZEN_PEPPER_EXTENSIONS)
+#if defined(OS_TIZEN_TV)
+/**
+ * Set the translated url to media player.
+ *
+ * @param ewkView view object
+ * @param url string
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_media_translated_url_set(Evas_Object* ewkView, const char* url);
+#endif
+
+/**
+ * Set app is preload type or not.
+ *
+ * @param ewkView view object
+ * @param is_preload if app is preload type
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_view_app_preload_set(Evas_Object* ewkView, Eina_Bool is_preload);
 
 /**
  * @brief Sends key event.
@@ -669,6 +741,20 @@ EXPORT_API Eina_Bool ewk_view_send_key_event(Evas_Object* o, void* key_event, Ei
  */
 EXPORT_API Eina_Bool ewk_view_key_events_enabled_set(Evas_Object *o, Eina_Bool enabled);
 
+enum Ewk_Scrollbar_Orientation {
+  EWK_HORIZONTAL_SCROLLBAR = 0,
+  EWK_VERTICAL_SCROLLBAR
+};
+
+typedef enum Ewk_Scrollbar_Orientation Ewk_Scrollbar_Orientation;
+
+struct Ewk_Scrollbar_Data {
+  Ewk_Scrollbar_Orientation orientation; /**< scrollbar orientation */
+  Eina_Bool focused;                     /**< isFocused */
+};
+
+typedef struct Ewk_Scrollbar_Data Ewk_Scrollbar_Data;
+
 /**
  * @brief Adds an item to back forward list
  *
@@ -684,6 +770,211 @@ ewk_view_add_item_to_back_forward_list(Evas_Object* o,
                                        const Ewk_Back_Forward_List_Item* item);
 
 /**
+ * @brief Load the specified @a html string as the content of the view overriding
+ *        current history entry. Can be used to ignore the malicious page while
+ *        navigation backward/forward.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] view object to load the HTML into
+ * @param[in] html HTML data to load
+ * @param[in] base_url Base URL used for relative paths to external objects
+ *            (optional)
+ * @param[in] unreachable_url URL that could not be reached (optional)
+ *
+ * @return @c EINA_TRUE if it the HTML was successfully loaded,
+ *         @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_view_html_string_override_current_entry_load(Evas_Object* view, const char* html, const char* base_uri, const char* unreachable_url);
+
+/**
+ * Sets whether to draw transparent background or not.
+ *
+ * @param o view object to enable/disable transparent background
+ * @param enabled a state to set
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_view_draws_transparent_background_set(Evas_Object *o, Eina_Bool enabled);
+
+/**
+ * Creates a type name for the callback function used to get the page contents.
+ *
+ * @param o view object
+ * @param data mhtml data of the page contents
+ * @param user_data user data will be passed when ewk_view_mhtml_data_get is called
+ */
+typedef void (*Ewk_View_MHTML_Data_Get_Callback)(Evas_Object *o, const char *data, void *user_data);
+
+/**
+ * Get page contents as MHTML data
+ *
+ * @param o view object to get the page contents
+ * @param callback callback function to be called when the operation is finished
+ * @param user_data user data to be passed to the callback function
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_view_mhtml_data_get(Evas_Object *o, Ewk_View_MHTML_Data_Get_Callback callback, void *user_data);
+
+/**
+ * Gets the minimum and maximum value of the scale range or -1 on failure
+ *
+ * @param o view object to get the minimum and maximum value of the scale range
+ * @param min_scale Pointer to an double in which to store the minimum scale factor of the object.
+ * @param max_scale Pointer to an double in which to store the maximum scale factor of the object.
+ *
+ * @note Use @c NULL pointers on the scale components you're not
+ * interested in: they'll be ignored by the function.
+ */
+EXPORT_API void ewk_view_scale_range_get(Evas_Object* o, double* min_scale, double* max_scale);
+
+/**
+ * Returns the evas image object of the specified viewArea of page
+ *
+ * The returned evas image object @b should be freed after use.
+ *
+ * @param o view object to get specified rectangle of cairo surface.
+ * @param viewArea rectangle of cairo surface.
+ * @param scaleFactor scale factor of cairo surface.
+ * @param canvas canvas for creating evas image.
+ *
+ * @return newly allocated evas image object on sucess or @c 0 on failure.
+ */
+EXPORT_API Evas_Object* ewk_view_screenshot_contents_get(const Evas_Object* o, Eina_Rectangle viewArea, float scaleFactor, Evas* canvas);
+
+/**
+ * Gets the possible scroll size of the given view.
+ *
+ * Possible scroll size is contents size minus the viewport size.
+ *
+ * @param o view object to get scroll size
+ * @param w the pointer to store the horizontal size that is possible to scroll,
+ *        may be @c 0
+ * @param h the pointer to store the vertical size that is possible to scroll,
+ *        may be @c 0
+ *
+ * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise and
+ *         values are zeroed
+ */
+EXPORT_API Eina_Bool ewk_view_scroll_size_get(const Evas_Object* o, int* w, int* h);
+
+/**
+ * Clears the highlight of searched text.
+ *
+ * @param o view object to find text
+ *
+ * @return @c EINA_TRUE on success, @c EINA_FALSE on errors
+ */
+EXPORT_API Eina_Bool ewk_view_text_find_highlight_clear(Evas_Object *o);
+
+/**
+ * Counts the given string in the document.
+ *
+ * This does not highlight the matched string and just count the matched string.\n
+ *
+ * As the search is carried out through the whole document,\n
+ * only the following #Ewk_Find_Options are valid.\n
+ *  - EWK_FIND_OPTIONS_NONE\n
+ *  - EWK_FIND_OPTIONS_CASE_INSENSITIVE\n
+ *  - EWK_FIND_OPTIONS_AT_WORD_START\n
+ *  - EWK_FIND_OPTIONS_TREAT_MEDIAL_CAPITAL_AS_WORD_START\n
+ *
+ * The "text,found" callback will be called with the number of matched string.
+ *
+ * @since_tizen 2.3
+ *
+ * @param o view object to find text
+ * @param text text to find
+ * @param options options to find
+ * @param max_match_count maximum match count to find, unlimited if 0
+ *
+ * @return @c EINA_TRUE on success, @c EINA_FALSE on errors
+ */
+EXPORT_API Eina_Bool ewk_view_text_matches_count(Evas_Object* o, const char* text, Ewk_Find_Options options, unsigned max_match_count);
+
+/**
+ * Gets the current text zoom level.
+ *
+ * @param o view object to get the zoom level
+ *
+ * @return current zoom level in use on success or @c -1.0 on failure
+ */
+EXPORT_API double ewk_view_text_zoom_get(const Evas_Object* o);
+
+/**
+ * Sets the current text zoom level.
+ *
+ * @param o view object to set the zoom level
+ * @param textZoomFactor a new level to set
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE otherwise
+ */
+EXPORT_API Eina_Bool ewk_view_text_zoom_set(Evas_Object* o, double text_zoom_factor);
+
+/**
+ * @brief Draw the evas image object for the VoiceManager
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] view the view object
+ * @param[in] image evas image obejct for drawing
+ * @param[in] rect rectangle of image object for drawing
+ */
+EXPORT_API void ewk_view_voicemanager_label_draw(Evas_Object* view, Evas_Object* image, Eina_Rectangle rect);
+
+/**
+ * @brief Hide and remove all labels for the VoiceManager
+ *
+ * @details All labels are cleared on mouse down.
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] view the view object
+ */
+EXPORT_API void ewk_view_voicemanager_labels_clear(Evas_Object* view);
+
+/**
+ * This api is used for Canal+ App and HBB TV Application.
+ * They need to access various url required a client authentication while the apps is running.
+ * So when XWalk call this API with host and related cert path, We store these information to map.
+ * After that, When we get the "Certificate Request" packet from server,
+ * We find matched cert path to host in the map.
+ *
+ * @param ewkView view object to add host and cert path to the map
+ * @param host host that required client authentication
+ * @param cert_path the file path stored certificate
+ *
+ */
+EXPORT_API void ewk_view_add_dynamic_certificate_path(const Evas_Object *ewkView, const char* host, const char* cert_path);
+
+/**
+ * @brief Request to set the atk usage set by web app(config.xml).
+ *
+ * Some TV apps use WebSpeech instead of use ATK for regulation U.S.FCC
+ *
+ * @since_tizen 3.0 @if TV   @endif
+ *
+ * @param[in] o View object to set the atk use.
+ * @param[in] enable EINA_TRUE to set on the atk use.
+ *            EINA_FALSE makes atk not to use, but app use WebSpeech instead of ATK.
+ *            The default value is EINA_FALSE.
+ */
+EXPORT_API void ewk_view_atk_deactivation_by_app(Evas_Object* view, Eina_Bool enable);
+
+/*
+ * Get cookies associated with an URL.
+ *
+ * @param o view object in which URL is opened.
+ * @param url the url for which cookies needs to be obtained.
+ *
+ * @return @c character array containing cookies, @c NULL if no cookies are found.
+ *
+ * The return character array has to be owned by the application and freed when not required.
+ */
+EXPORT_API char* ewk_view_cookies_get(Evas_Object* o, const char* url);
+
+/**
  * @brief To give a chance to intercept request data before sending it.
  *
  * @since_tizen 2.3
@@ -710,8 +1001,176 @@ typedef void (*Ewk_View_Intercept_Request_Callback)(Evas_Object* o, Ewk_Intercep
 EXPORT_API void ewk_view_intercept_request_callback_set (Evas_Object* o, Ewk_View_Intercept_Request_Callback callback, void* user_data);
 
 /**
-* @}
+ * @internal
+ * @brief Callback for ewk_view_notification_show_callback_set
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] o view object to request the notification show
+ * @param[in] notification Ewk_Notification object to get the information about notification show request
+ * @param[in] user_data user data
+ */
+typedef Eina_Bool (*Ewk_View_Notification_Show_Callback)(Evas_Object *o, Ewk_Notification *notification, void *user_data);
+
+/**
+ * @internal
+ * @brief Sets the notification show callback.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] o view object to request the notification show
+ * @param[in] show_callback Ewk_View_Notification_Show_Callback function to notification show
+ * @param[in] user_data user data
+ */
+EXPORT_API void ewk_view_notification_show_callback_set(Evas_Object *o, Ewk_View_Notification_Show_Callback show_callback, void *user_data);
+
+/**
+ * @internal
+ * @brief Callback for ewk_view_notification_cancel_callback_set
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] o view object to request the notification cancel
+ * @param[in] notification_id Ewk_Notification object to get the information about notification cancel request
+ * @param[in] user_data user data
+ */
+typedef Eina_Bool (*Ewk_View_Notification_Cancel_Callback)(Evas_Object *o, uint64_t notification_id, void *user_data);
+
+/**
+ * @internal
+ * @brief Sets the notification cancel callback.
+ *
+ * @since_tizen 2.3
+ *
+ * @param[in] o view object to request the notification show
+ * @param[in] cancel_callback Ewk_View_Notification_Cancel_Callback function to notification cancel
+ * @param[in] user_data user data
+ */
+EXPORT_API void ewk_view_notification_cancel_callback_set(Evas_Object *o, Ewk_View_Notification_Cancel_Callback cancel_callback, void *user_data);
+
+/**
+* @brief Gets the current custom character encoding name.
+*
+* @since_tizen 2.3
+*
+* @param[in] o view object to get the current encoding
+*
+* @return @c eina_strinshare containing the current encoding, or\n
+*         @c NULL if it's not set
+*/
+EXPORT_API const char* ewk_view_custom_encoding_get(const Evas_Object* o);
+
+/**
+* @brief Sets the custom character encoding and reloads the page.
+*
+* @since_tizen 2.3
+*
+* @param[in] o view to set the encoding
+* @param[in] encoding the new encoding to set or @c NULL to restore the default one
+*
+* @return @c EINA_TRUE on success @c EINA_FALSE otherwise
 */
+EXPORT_API Eina_Bool ewk_view_custom_encoding_set(Evas_Object* o, const char* encoding);
+
+/**
+* @brief Forces web page to relayout
+*
+* @since_tizen 2.3
+*
+* @param [in] o view
+*/
+EXPORT_API void ewk_view_force_layout(const Evas_Object* o);
+
+/**
+* Creates a type name for the callback function used to get video current time.
+*
+* @param o view object
+* @param current time of the video
+*@param user_data user data will be passed when ewk_media_current_time_get
+*called
+*/
+typedef void (*Ewk_View_Video_Current_Time_Get_Callback)(Evas_Object *o, double current_time, void *user_data);
+
+/**
+* Gets the video's timestamp.
+*
+* @param o view object to get the video's timestamp
+*
+* @return timestamp value
+*/
+EXPORT_API void ewk_media_current_time_get(const Evas_Object* o, Ewk_View_Video_Current_Time_Get_Callback callback, void *user_data);
+
+/**
+* @brief Enforces web page to close
+*
+* @since_tizen 3.0
+*
+* @param[in] o view
+*
+* @return @c EINA_TRUE on success @c EINA_FALSE otherwise
+*/
+EXPORT_API Eina_Bool ewk_view_page_close(Evas_Object* o);
+
+/**
+ * @brief Request to set the atk usage set by web app(config.xml).
+ *
+ * Some TV apps use WebSpeech instead of use ATK for regulation U.S.FCC
+ *
+ * @since_tizen 3.0 @if TV   @endif
+ *
+ * @param[in] o View object to set the atk use.
+ * @param[in] enable EINA_TRUE to set on the atk use.
+ *            EINA_FALSE makes atk not to use, but app use WebSpeech instead of
+ * ATK.
+ */
+EXPORT_API void ewk_view_atk_deactivation_by_app(Evas_Object* view, Eina_Bool enable);
+
+typedef enum {
+  EWK_TTS_MODE_DEFAULT = 0,      /**< Default mode for normal application */
+  EWK_TTS_MODE_NOTIFICATION = 1, /**< Notification mode(it has same behavior
+                                    with EWK_TTS_MODE_DEFAULT. not supported in
+                                    vd) */
+  EWK_TTS_MODE_SCREEN_READER =
+      2 /**< Accessibiliity mode(TTS works only for accessibility mode) */
+} ewk_tts_mode;
+
+/**
+ * @brief Sets tts mode
+ * up to tizen 4.0(in VD), default tts mode is EWK_TTS_MODE_SCREEN_READER.
+ * so TTS api disabled when accessibility mode turn off.
+ * this api provided to use tts api in none accessibility mode
+ * (tts mode decided in chromium's init time. so it should be called in init
+ * time) tts mode affect to below web apis speech_syntesis
+ *
+ * @since_tizen 4.0 @if TV   @endif
+ *
+ * @param[in] o View object to set.
+ * @param[in] ewk_tts_mode.
+ *
+ */
+EXPORT_API Eina_Bool ewk_view_tts_mode_set(Evas_Object* view, ewk_tts_mode tts_mode);
+
+/**
+ * @brief Request to set the spatial navigation usage set by hbbtv
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] settings setting object
+ * @param[in] enable @c EINA_TRUE enable to use spatial navigation
+ *                   @c EINA_FALSE to disable
+ */
+EXPORT_API void ewk_settings_spatial_navigation_enabled_set(Ewk_Settings* settings, Eina_Bool Enabled);
+
+/**
+ * Clear all tile resources.
+ *
+ * @param ewkView view object
+ */
+EXPORT_API void ewk_view_clear_all_tiles_resources(Evas_Object* ewkView);
+
+/**
+ * @}
+ */
 
 #ifdef __cplusplus
 }
index 2e2c34d..3a33279 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_web_application_icon_data_internal.h"
 
index 2ab5e49..20b55d8 100644 (file)
@@ -1,6 +1,27 @@
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+/*
+ * Copyright (C) 2013-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #ifndef ewk_web_application_icon_data_internal_h
 #define ewk_web_application_icon_data_internal_h
index d246887..48dc7f6 100644 (file)
@@ -1,7 +1,27 @@
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
+/*
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "ewk_window_features_internal.h"
 
index 4684639..b147e46 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2014-2016 Samsung Electronics. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THIS SOFTWARE IS PROVIDED BY SAMSUNG ELECTRONICS. AND ITS CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SAMSUNG ELECTRONICS. OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 /**