From 3f2a40a8e27c70187d9a766ee6239f802256d4a8 Mon Sep 17 00:00:00 2001 From: uzair Date: Thu, 23 Feb 2023 09:28:56 +0530 Subject: [PATCH] Compiler error fixes for supporting VD QB Below change fixes compiler errors by partially migrating [1] and [2] for supporting VD QB. [1] https://review.tizen.org/gerrit/c/271760 [2] https://review.tizen.org/gerrit/c/271757 Change-Id: Iabea727eefc8c7e03fa01a6f529f9b1ed613b931 Signed-off-by: uzair --- tizen_src/ewk/efl_integration/public/ewk_view.cc | 31 ++++++++++- tizen_src/ewk/efl_integration/public/ewk_view.h | 2 +- .../ewk/efl_integration/public/ewk_view_internal.h | 65 ++++++++++++++++++++++ .../ewk/efl_integration/public/ewk_view_product.h | 5 +- 4 files changed, 100 insertions(+), 3 deletions(-) diff --git a/tizen_src/ewk/efl_integration/public/ewk_view.cc b/tizen_src/ewk/efl_integration/public/ewk_view.cc index c3407d8..dc263e2 100644 --- a/tizen_src/ewk/efl_integration/public/ewk_view.cc +++ b/tizen_src/ewk/efl_integration/public/ewk_view.cc @@ -1425,7 +1425,10 @@ 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) { +Eina_Bool ewk_view_set_support_video_hole(Evas_Object* ewkView, + void* window, + Eina_Bool enable, + Eina_Bool isVideoWindow) { LOG_EWK_API_MOCKUP(); #if defined(TIZEN_VIDEO_HOLE) EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, EINA_FALSE); @@ -1570,6 +1573,32 @@ void ewk_view_floating_window_state_changed(const Evas_Object *o, Eina_Bool stat LOG_EWK_API_MOCKUP(); } +void ewk_view_feed_mouse_down(Evas_Object* view, + Ewk_Mouse_Button_Type button, + int x, + int y) { + LOG_EWK_API_MOCKUP("NUI feature is not enabled"); +} + +void ewk_view_feed_mouse_up(Evas_Object* view, + Ewk_Mouse_Button_Type button, + int x, + int y) { + LOG_EWK_API_MOCKUP("NUI feature is not enabled"); +} + +void ewk_view_feed_mouse_move(Evas_Object* view, int x, int y) { + LOG_EWK_API_MOCKUP("NUI feature is not enabled"); +} + +void ewk_view_feed_mouse_wheel(Evas_Object* view, + Eina_Bool y_direction, + int step, + int x, + int y) { + LOG_EWK_API_MOCKUP("NUI feature is not enabled"); +} + void ewk_view_auto_login(Evas_Object *view, const char* user_name, const char* password) { LOG_EWK_API_MOCKUP(); diff --git a/tizen_src/ewk/efl_integration/public/ewk_view.h b/tizen_src/ewk/efl_integration/public/ewk_view.h index 77e8c36..91ec416 100644 --- a/tizen_src/ewk/efl_integration/public/ewk_view.h +++ b/tizen_src/ewk/efl_integration/public/ewk_view.h @@ -769,7 +769,7 @@ EXPORT_API void ewk_view_request_manifest(Evas_Object* o, Ewk_View_Request_Manif * @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, + void* window, Eina_Bool enable, Eina_Bool isVideoWindow); #endif diff --git a/tizen_src/ewk/efl_integration/public/ewk_view_internal.h b/tizen_src/ewk/efl_integration/public/ewk_view_internal.h index f7a8de7842..986e3ef 100644 --- a/tizen_src/ewk/efl_integration/public/ewk_view_internal.h +++ b/tizen_src/ewk/efl_integration/public/ewk_view_internal.h @@ -150,6 +150,13 @@ enum Ewk_Top_Control_State { }; typedef enum Ewk_Top_Control_State Ewk_Top_Control_State; +enum Ewk_Mouse_Button_Type { + EWK_Mouse_Button_Left = 1, + EWK_Mouse_Button_Middle = 2, + EWK_Mouse_Button_Right = 3 +}; +typedef enum Ewk_Mouse_Button_Type Ewk_Mouse_Button_Type; + /// 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. */ @@ -1422,6 +1429,64 @@ EXPORT_API void ewk_view_offscreen_rendering_enabled_set(Evas_Object* o, Eina_Bo */ EXPORT_API void ewk_view_ime_window_set(Evas_Object* o, void* window); +/** + * Sends mouse down event. + * + * @since_tizen 6.0 + * + * @param[in] o view object + * @param[in] button button type + * @param[in] x horizontal position of mouse event + * @param[in] y vertical position of mouse event + */ +EXPORT_API void ewk_view_feed_mouse_down(Evas_Object* o, + Ewk_Mouse_Button_Type button, + int x, + int y); + +/** + * Sends mouse up event. + * + * @since_tizen 6.0 + * + * @param[in] o view object + * @param[in] button button type + * @param[in] x horizontal position of mouse event + * @param[in] y vertical position of mouse event + */ +EXPORT_API void ewk_view_feed_mouse_up(Evas_Object* o, + Ewk_Mouse_Button_Type button, + int x, + int y); + +/** + * Sends mouse move event. + * + * @since_tizen 6.0 + * + * @param[in] o view object + * @param[in] x horizontal position of mouse event + * @param[in] y vertical position of mouse event + */ +EXPORT_API void ewk_view_feed_mouse_move(Evas_Object* o, int x, int y); + +/** + * Sends mouse wheel event. + * + * @since_tizen 6.0 + * + * @param[in] o view object + * @param[in] y_direction wheel mouse direction + * @param[in] step how much mouse wheel was scrolled up or down + * @param[in] x horizontal position of mouse event + * @param[in] y vertical position of mouse event + */ +EXPORT_API void ewk_view_feed_mouse_wheel(Evas_Object* o, + Eina_Bool y_direction, + int step, + int x, + int y); + #ifdef __cplusplus } #endif diff --git a/tizen_src/ewk/efl_integration/public/ewk_view_product.h b/tizen_src/ewk/efl_integration/public/ewk_view_product.h index cd9ceae..18b8752 100644 --- a/tizen_src/ewk/efl_integration/public/ewk_view_product.h +++ b/tizen_src/ewk/efl_integration/public/ewk_view_product.h @@ -628,7 +628,10 @@ EXPORT_API Eina_Bool ewk_view_stop_video(Evas_Object* o, Ewk_Stop_Video_Callback * * @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); +EXPORT_API Eina_Bool ewk_view_set_support_video_hole(Evas_Object* ewkView, + void* window, + Eina_Bool enable, + Eina_Bool isVideoWindow); /** * @brief Sets the support of canvas hole, Use H/W overlay for video quality of WebGL 360 degree. -- 2.7.4