Skip to content

Commit

Permalink
Prepare support video hole
Browse files Browse the repository at this point in the history
  • Loading branch information
Swanseo0 committed Nov 16, 2023
1 parent 8d32adb commit b334fd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ bool EwkInternalApiBinding::Initialize() {
dlsym(handle_, "ewk_view_ime_window_set"));
view.KeyEventsEnabledSet = reinterpret_cast<EwkViewKeyEventsEnabledSetFnPtr>(
dlsym(handle_, "ewk_view_key_events_enabled_set"));
view.SupportVideoHoleSet = reinterpret_cast<EwkViewSupportVideoHoleSetFnPtr>(
dlsym(handle_, "ewk_view_set_support_video_hole"));

// ewk_main
main.SetArguments = reinterpret_cast<EwkSetArgumentsFnPtr>(
Expand All @@ -57,7 +59,7 @@ bool EwkInternalApiBinding::Initialize() {

return view.SetBackgroundColor && view.FeedTouchEvent && view.SendKeyEvent &&
view.OffscreenRenderingEnabledSet && view.ImeWindowSet &&
view.KeyEventsEnabledSet && main.SetArguments &&
view.KeyEventsEnabledSet && view.SupportVideoHoleSet && main.SetArguments &&
settings.ImePanelEnabledSet && console_message.LevelGet &&
console_message.TextGet && console_message.LineGet &&
console_message.SourceGet;
Expand Down
5 changes: 5 additions & 0 deletions packages/webview_flutter/tizen/src/ewk_internal_api_binding.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ typedef void (*EwkViewOffscreenRenderingEnabledSetFnPtr)(Evas_Object* obj,
typedef void (*EwkViewImeWindowSetFnPtr)(Evas_Object* obj, void* window);
typedef Eina_Bool (*EwkViewKeyEventsEnabledSetFnPtr)(Evas_Object* obj,
Eina_Bool enabled);
typedef Eina_Bool (*EwkViewSupportVideoHoleSetFnPtr)(Evas_Object* obj,
void* window,
Eina_Bool enabled,
Eina_Bool boo);

typedef struct {
EwkViewBgColorSetFnPtr SetBackgroundColor = nullptr;
Expand All @@ -45,6 +49,7 @@ typedef struct {
nullptr;
EwkViewImeWindowSetFnPtr ImeWindowSet = nullptr;
EwkViewKeyEventsEnabledSetFnPtr KeyEventsEnabledSet = nullptr;
EwkViewSupportVideoHoleSetFnPtr SupportVideoHoleSet = nullptr;
} EwkViewProcTable;

typedef void (*EwkSetArgumentsFnPtr)(int argc, char** argv);
Expand Down

0 comments on commit b334fd5

Please sign in to comment.