Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions shell/platform/tizen/flutter_tizen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ void FlutterDesktopShutdownEngine(FlutterDesktopEngineRef engine_ref) {
delete engine;
}

void* FlutterDesktopGetWindow(FlutterDesktopPluginRegistrarRef registrar) {
return registrar->engine->renderer()->GetWindowHandle();
}

void FlutterDesktopPluginRegistrarEnableInputBlocking(
FlutterDesktopPluginRegistrarRef registrar,
const char* channel) {
Expand Down
9 changes: 9 additions & 0 deletions shell/platform/tizen/public/flutter_tizen.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ FlutterDesktopGetPluginRegistrar(FlutterDesktopEngineRef engine,
FLUTTER_EXPORT FlutterDesktopMessengerRef
FlutterDesktopEngineGetMessenger(FlutterDesktopEngineRef engine);

/**
* Return backing window for manipulation in host application.
*
* If run engine on a wearable device, need cast void* to Evas_Objct*,
* otherwise cast void* to Ecore_Wl2_Window*.
*/
FLUTTER_EXPORT void* FlutterDesktopGetWindow(
FlutterDesktopPluginRegistrarRef registrar);

// Posts an app control to the engine instance.
FLUTTER_EXPORT void FlutterDesktopNotifyAppControl(
FlutterDesktopEngineRef engine,
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/tizen/tizen_renderer_evas_gl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ uintptr_t TizenRendererEvasGL::GetWindowId() {
}

void* TizenRendererEvasGL::GetWindowHandle() {
return nullptr;
return evas_window_;
}

Evas_Object* TizenRendererEvasGL::GetImageHandle() {
Expand Down