Add EWK API interfaces for dynamic IME and webauthn 34/316934/2
authorChandan Padhi <c.padhi@samsung.com>
Thu, 19 Dec 2024 07:35:14 +0000 (13:05 +0530)
committerInsoon Kim <is46.kim@samsung.com>
Mon, 23 Dec 2024 09:40:29 +0000 (09:40 +0000)
This commit adds missing EWK API interfaces to fix
build errors in VD QB for dali-extension.

Change-Id: I8fadf766630b768c4bb8768a0ecd463e6cb5a1b5
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
tizen_src/ewk/efl_integration/public/ewk_view.cc
tizen_src/ewk/efl_integration/public/ewk_view.h

index 8a3054f357aab51a6df50e5a6be51ccdeee20afc..cfa2d5d44f605f7534f4a1ac590f5a51139c32c4 100644 (file)
@@ -1909,3 +1909,15 @@ 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_ime_position_align_set(const Evas_Object* view,
+                                          int x,
+                                          int y,
+                                          Ewk_Ime_Position_Align align) {
+  LOG_EWK_API_MOCKUP("Only for Tizen TV.");
+  return EINA_FALSE;
+}
+
+void ewk_view_webauthn_cancel(const Evas_Object* view) {
+  LOG_EWK_API_MOCKUP("Only for Tizen");
+}
index d236154314fc8ffa3e1641bfb94ed7d3feacd1d8..9b145230b49403e0788d81dd21ecf500582d1b9b 100644 (file)
@@ -742,6 +742,61 @@ typedef void (*Ewk_View_Request_Manifest_Callback)(Evas_Object* o, Ewk_View_Requ
  */
 EXPORT_API void ewk_view_request_manifest(Evas_Object* o, Ewk_View_Request_Manifest_Callback callback, void* user_data);
 
+/**
+ * @enum _Ewk_Ime_Position_Align
+ * @brief Enumeration for defining the align of Dynamic IME
+ *
+ * @since_tizen 9.0
+ */
+enum _Ewk_Ime_Position_Align {
+  IME_ALIGN_TOP_LEFT,      /**< The top-left corner */
+  IME_ALIGN_TOP_CENTER,    /**< The top-center position */
+  IME_ALIGN_TOP_RIGHT,     /**< The top-right corner */
+  IME_ALIGN_MIDDLE_LEFT,   /**< The middle-left position */
+  IME_ALIGN_MIDDLE_CENTER, /**< The middle-center position */
+  IME_ALIGN_MIDDLE_RIGHT,  /**< The middle-right position */
+  IME_ALIGN_BOTTOM_LEFT,   /**< The bottom-left corner */
+  IME_ALIGN_BOTTOM_CENTER, /**< The bottom-center position */
+  IME_ALIGN_BOTTOM_RIGHT,  /**< The bottom-right corner */
+};
+typedef enum _Ewk_Ime_Position_Align Ewk_Ime_Position_Align;
+
+/**
+ * @brief Requests to set the position and align of the Dynamic IME
+ *
+ * @since_tizen 9.0
+ *
+ * @param[in] o The view object.
+ * @param[in] @c x   x position of the Dynamic IME
+ *            @c y   y position of the Dynamic IME
+ *            @c align   IME_ALIGN_TOP_LEFT       The top-left corner
+ *                       IME_ALIGN_TOP_CENTER     The top-center position
+ *                       IME_ALIGN_TOP_RIGHT      The top-right corner
+ *                       IME_ALIGN_MIDDLE_LEFT    The middle-left position
+ *                       IME_ALIGN_MIDDLE_CENTER  The middle-center position
+ *                       IME_ALIGN_MIDDLE_RIGHT   The middle-right position
+ *                       IME_ALIGN_BOTTOM_LEFT    The bottom-left corner
+ *                       IME_ALIGN_BOTTOM_CENTER  The bottom-center position
+ *                       IME_ALIGN_BOTTOM_RIGHT   The bottom-right corner
+ *
+ * @return @c EINA_TRUE on success,\n
+ *         otherwise @c EINA_FALSE
+ */
+EXPORT_API Eina_Bool
+ewk_view_ime_position_align_set(const Evas_Object* o,
+                                int x,
+                                int y,
+                                Ewk_Ime_Position_Align align);
+
+/**
+ * @brief Cancels the authentication process of webauthn.
+ *
+ * @since_tizen 9.0
+ *
+ * @param[in] o The view object.
+ */
+EXPORT_API void ewk_view_webauthn_cancel(const Evas_Object* o);
+
 /**
 * @}
 */