Added API to clear text selection range.
authorYuni Jeong <yhnet.jung@samsung.com>
Thu, 9 May 2013 04:46:44 +0000 (13:46 +0900)
committerYuni Jeong <yhnet.jung@samsung.com>
Thu, 9 May 2013 04:48:27 +0000 (13:48 +0900)
[Title] Added API to clear text selection range.
[Issue#] N/A
[Problem] N/A
[Cause] Not implemented.
[Solution] Added API to clear text selection range.

Change-Id: If5d47b7b6cc4f09619e1d1c6ac1dc45d960ba2ba

Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
Source/WebKit2/UIProcess/API/efl/ewk_view.h

index 93e2a83..c60fdcd 100644 (file)
@@ -3918,6 +3918,14 @@ Eina_Bool ewk_view_auto_clear_text_selection_mode_get(Evas_Object* ewkView)
 {
     return ewk_settings_clear_text_selection_automatically_get(ewk_view_settings_get(ewkView));
 }
+
+void ewk_view_text_selection_range_clear(Evas_Object* ewkView)
+{
+    EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData);
+    EWK_VIEW_IMPL_GET_OR_RETURN(smartData, impl);
+
+    impl->pageProxy->selectionRangeClear();
+}
 #endif // #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
 
 #if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
index 1876de3..089267a 100644 (file)
@@ -1259,6 +1259,7 @@ EAPI Eina_Bool ewk_view_text_selection_range_get(Evas_Object* o, Eina_Rectangle*
 EAPI const char* ewk_view_text_selection_text_get(Evas_Object* o);
 EINA_DEPRECATED EAPI Eina_Bool ewk_view_auto_clear_text_selection_mode_set(Evas_Object* o, Eina_Bool enable);
 EINA_DEPRECATED EAPI Eina_Bool ewk_view_auto_clear_text_selection_mode_get(Evas_Object* o);
+EAPI void ewk_view_text_selection_range_clear(Evas_Object* o);
 // #endif // #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
 
 // #if ENABLE(TIZEN_INPUT_TAG_EXTENSION)