KevinnZou / compose-webview-multiplatform

WebView for JetBrains Compose Multiplatform
https://kevinnzou.github.io/compose-webview-multiplatform/
Apache License 2.0
305 stars 39 forks source link

Is it possible to support KCEFClientProvider for DesktopWebView? #138

Open bulletjet786 opened 4 weeks ago

bulletjet786 commented 4 weeks ago

Firstly, thank you very much for providing this library.

Backgroup I hope to be able to use a WebView within Compose for Desktop with the JetBrains Runtime. This enables the elimination of the necessity for both downloading JBR/JCEF and restarting the application. see: https://github.com/KevinnZou/compose-webview-multiplatform/blob/main/webview/src/desktopMain/kotlin/com/multiplatform/webview/web/WebView.desktop.kt

I Think By employing the JetBrains Runtime, I should be able to initialize a JCEF Client and subsequently instantiate a KCEFClient. If PlatformWebSettings.DesktopWebSettings supports a KCEFClientProvider, utilizing the KCEFClientProvider provided within DesktopWebSettings in DesktopWebView would eliminate the dependency on the initialization process of KCEF itself.

In Progress I have initiated a PR and a Issue: https://github.com/DatL4g/KCEF/pull/11 https://github.com/DatL4g/KCEF/issues/9

KevinnZou commented 3 weeks ago

@bulletjet786 Thank you for your valuable suggestions! @DatL4g is responsible for the desktop side of the project. However, it appears that he is currently occupied with other tasks and may not be able to devote much time to this project. Therefore, you are welcome to submit a pull request, and @DatL4g will review it before releasing it. Thanks again!