[Title] Remove ewk_view_use_smart_selection_set() API because it is not used anymore.
[Issue#] N/A
[Problem] ewk_view_use_smart_selection_set() is not used anymore.
[Cause] The ewk_view_use_smart_selection_set() was added for testing desktop web applications,
but it is not used anymore and smart_selection is default behavior of ewk_view.
If user want to disable zoom, he/she can set scalable variable to false in the viewport tag of web pages.
[Solution] Remove ewk_view_use_smart_selection_set().
Change-Id: I16dc69f9da1a5a2591428517af99671854c99715
#endif // #if ENABLE(TOUCH_EVENTS)
bool holdHorizontalPanning;
bool holdVerticalPanning;
- bool useSmartSelection;
#endif // #if ENABLE(TIZEN_GESTURE)
#if ENABLE(TIZEN_WEBKIT2_TILED_SCROLLBAR)
bool mainFrameScrollbarVisibility;
#if ENABLE(TIZEN_ISF_PORT)
evas_object_focus_set(smartData->self, true);
#endif
- } else if (event->count == 2 && priv->useSmartSelection)
+ } else if (event->count == 2)
priv->gestureClient->endDoubleTap(IntPoint(event->position.x, event->position.y));
break;
case EWK_GESTURE_LONG_PRESS:
#if ENABLE(TIZEN_GESTURE)
priv->gestureRecognizer = GestureRecognizer::create(smartData->self);
priv->gestureClient = GestureClient::create(smartData->ewkViewImpl);
- priv->useSmartSelection = true;
#endif // #if ENABLE(TIZEN_GESTURE)
#if ENABLE(TIZEN_WEBKIT2_TILED_SCROLLBAR)
const char* hideScrollbar = getenv("TIZEN_WEBKIT2_TILED_SCROLLBAR_HIDE");
#endif
}
-void ewk_view_use_smart_selection_set(Evas_Object* ewkView, Eina_Bool use)
-{
-#if ENABLE(TIZEN_GESTURE)
- EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData)
- EWK_VIEW_PRIV_GET_OR_RETURN(smartData, priv)
- priv->useSmartSelection = use;
-#endif
-}
-
void ewk_view_touch_event_handler_result_set(Evas_Object* ewkView, WebKit::WebEvent::Type type, bool wasHandled)
{
#if ENABLE(TIZEN_GESTURE)
EAPI void ewk_view_horizontal_panning_hold_set(Evas_Object* o, Eina_Bool hold);
EAPI Eina_Bool ewk_view_vertical_panning_hold_get(Evas_Object* o);
EAPI void ewk_view_vertical_panning_hold_set(Evas_Object* o, Eina_Bool hold);
-// #if ENABLE(TIZEN_GESTURE)
-EAPI void ewk_view_use_smart_selection_set(Evas_Object* ewkView, Eina_Bool use);
-// #endif
/**
* Gets the minimum and maximum value of the scale range or -1 on failure
utc_webkit2_ewk_view_url_get_func \
utc_webkit2_ewk_view_url_set_func \
utc_webkit2_ewk_view_url_request_set_func \
- utc_webkit2_ewk_view_use_smart_selection_set_func \
utc_webkit2_ewk_view_user_agent_get_func \
utc_webkit2_ewk_view_user_agent_set_func \
utc_webkit2_ewk_view_vertical_panning_hold_get_func \
/unit_test/webkit2/utc_webkit2_ewk_view_url_get_func
/unit_test/webkit2/utc_webkit2_ewk_view_url_set_func
/unit_test/webkit2/utc_webkit2_ewk_view_url_request_set_func
-/unit_test/webkit2/utc_webkit2_ewk_view_use_smart_selection_set_func
/unit_test/webkit2/utc_webkit2_ewk_view_user_agent_get_func
/unit_test/webkit2/utc_webkit2_ewk_view_user_agent_set_func
/unit_test/webkit2/utc_webkit2_ewk_view_vertical_panning_hold_get_func
+++ /dev/null
-/*\r
- * WebKit2 EFL\r
- *\r
- * Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
- *\r
- * This library is free software; you can redistribute it and/or modify it under\r
- * the terms of the GNU Lesser General Public License as published by the\r
- * Free Software Foundation; either version 2.1 of the License, or (at your option)\r
- * any later version.\r
- *\r
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY\r
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public\r
- * License for more details.\r
- *\r
- * You should have received a copy of the GNU Lesser General Public License\r
- * along with this library; if not, write to the Free Software Foundation, Inc., 51\r
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
- *\r
- */\r
-\r
-/* Define those macros _before_ you include the utc_webkit2_ewk.h header file. */\r
-#define TESTED_FUN_NAME ewk_view_use_smart_selection_set\r
-#define POSITIVE_TEST_FUN_NUM 1\r
-#define NEGATIVE_TEST_FUN_NUM 1\r
-\r
-#include "utc_webkit2_ewk.h"\r
-\r
-#ifndef NULL\r
-#define NULL 0x0\r
-#endif\r
-\r
-#define RESOURCE_PATH "/ewk_view/index_big_red_square.html"\r
-\r
-\r
-\r
-static void startup(void)\r
-{\r
- utc_webkit2_ewk_test_init(); \r
-}\r
-\r
-static void cleanup(void)\r
-{ \r
- utc_webkit2_ewk_test_end();\r
-}\r
-\r
-\r
-/**\r
- * @brief Positive test case of ewk_view_use_smart_selection_set(), testcase will full-fill the basic test whether the API is not getting crash while set \r
- */\r
-POS_TEST_FUN(1)\r
-{\r
- ewk_view_use_smart_selection_set(test_view.webview,EINA_TRUE);\r
- utc_check_eq(EINA_TRUE, EINA_TRUE);\r
-}\r
-\r
-\r
-/**\r
- * @brief Negative test case of ewk_view_use_smart_selection_set(), testing for null, APi should not crash while passing NULL as argumnet\r
- */\r
-NEG_TEST_FUN(1)\r
-{\r
- ewk_view_use_smart_selection_set(NULL,EINA_TRUE);\r
- utc_check_eq(EINA_TRUE, EINA_TRUE);\r
-}\r