Add missing EWK API interfaces for dynamic IME and mouse event 20/317320/3 tizen.beta_m126
authorVaishakhi Saha <v.saha@samsung.com>
Mon, 30 Dec 2024 12:53:11 +0000 (12:53 +0000)
committerInsoon Kim <is46.kim@samsung.com>
Tue, 31 Dec 2024 05:55:41 +0000 (05:55 +0000)
This commit adds missing EWK API interfaces
to fix build errors in VD QB for dali-extension.

Change-Id: I66d38d05b9486e3dd51fad473dfe6e9cd1238a71
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
Signed-off-by: v-saha <v.saha@samsung.com>
tizen_src/ewk/efl_integration/public/ewk_settings.cc
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_view.cc
tizen_src/ewk/efl_integration/public/ewk_view_internal.h

index 5870cb32d3b22f311f01f43707522b0fa4822194..6c698f313038890fbf5e0ac560d0e0c9558a002d 100644 (file)
@@ -997,3 +997,12 @@ Eina_Bool ewk_settings_ime_handle_key_event_enabled_get(const Ewk_Settings* sett
 {
   return EINA_FALSE;
 }
+
+void ewk_settings_ime_style_set(Ewk_Settings* settings, Ewk_Ime_Style style) {
+  LOG_EWK_API_MOCKUP("Only for Tizen TV");
+}
+
+Ewk_Ime_Style ewk_settings_ime_style_get(const Ewk_Settings* settings) {
+  LOG_EWK_API_MOCKUP("Only for Tizen TV");
+  return IME_STYLE_FULL;
+}
index 1439813a86c73f0432cd90db6d0574405ddc85b5..63a059dbf5508bae65380fdddb5a694235aba26b 100644 (file)
@@ -76,6 +76,14 @@ enum _Ewk_List_Style_Position {
 };
 typedef enum _Ewk_List_Style_Position Ewk_List_Style_Position;
 
+
+enum _Ewk_Ime_Style {
+    IME_STYLE_FULL, /**< Full IME style */
+    IME_STYLE_FLOATING, /**< Floating IME style */
+    IME_STYLE_DYNAMIC, /**< Dynamic IME style */
+};
+typedef enum _Ewk_Ime_Style Ewk_Ime_Style;
+
 /*
  * Enables/disables the Javascript Fullscreen API. The Javascript API allows
  * to request full screen mode, for more information see:
index 6a094eaf8ace37fe12fff49ab86e6d4d31ad6569..6918d7900021c1f1b44ab214203593dc1e3cbcad 100644 (file)
@@ -894,6 +894,30 @@ EXPORT_API void ewk_settings_ime_handle_key_event_enabled_set(Ewk_Settings* sett
  * @return @c EINA_TRUE enable use ime to handle key event or @c EINA_FALSE disable use ime to handle key event
  */
 EXPORT_API Eina_Bool ewk_settings_ime_handle_key_event_enabled_get(const Ewk_Settings *settings);
+
+/**
+ * Request to set IME style
+ * By default, the IME style is Full
+ *
+ * @param settings settings object
+ * @param style  @c IME_STYLE_FULL       full IME style
+ *               @c IME_STYLE_FLOATING   floating IME style
+ *               @c IME_STYLE_DYNAMIC    dynamic IME style
+ *
+ */
+EXPORT_API void ewk_settings_ime_style_set(Ewk_Settings* settings, Ewk_Ime_Style style);
+
+/**
+ * Returns IME style
+ *
+ * @param settings settings object
+ *
+ * @return @c IME_STYLE_FULL       full IME style
+           @c IME_STYLE_FLOATING   floating IME style
+           @c IME_STYLE_DYNAMIC    dynamic IME style
+*/
+EXPORT_API Ewk_Ime_Style ewk_settings_ime_style_get(const Ewk_Settings* settings);
+
 #ifdef __cplusplus
 }
 #endif
index cfa2d5d44f605f7534f4a1ac590f5a51139c32c4..da75cdf29426ca911df6b2e9f4fcbc22aabcb061 100644 (file)
@@ -1910,6 +1910,12 @@ Eina_Bool ewk_view_add_item_to_back_forward_list(Evas_Object* o, const Ewk_Back_
 
 void ewk_view_poweroff_suspend(Evas_Object *item) {}
 
+Eina_Bool ewk_view_mouse_pointer_support_set(Evas_Object *view, Eina_Bool support)
+{
+  LOG_EWK_API_MOCKUP("Only for Tizen TV.");
+  return EINA_FALSE;
+}
+
 Eina_Bool ewk_view_ime_position_align_set(const Evas_Object* view,
                                           int x,
                                           int y,
index d57cc5a358201a00596bf785748a378a91f6af12..e55680a3352568c953f8d15df5c9de83a1a19d82 100644 (file)
@@ -1521,6 +1521,19 @@ EXPORT_API Eina_Bool ewk_view_send_key_event(Evas_Object* o,
 
 EXPORT_API void ewk_view_media_device_list_get(Evas_Object* o, Ewk_Media_Device_List_Get_Callback callback, void* user_data);
 
+/**
+ * Sets whether the ewk_view supports the mouse pointer(include support the mouse event and update the cursor) or not.
+ *
+ * The ewk_view will support the mouse pointer(include support the mouse event and update the cursor) if EINA_TRUE
+ * or not support the mouse pointer otherwise. The default value is EINA_TRUE.
+ *
+ * @param o view object to support/don't support the mouse pointer
+ * @param supported a state to set
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EXPORT_API Eina_Bool ewk_view_mouse_pointer_support_set(Evas_Object *view, Eina_Bool support);
+
 #ifdef __cplusplus
 }
 #endif