File tree Expand file tree Collapse file tree
sample/desktopApp/src/jvmMain/kotlin
src/desktopMain/kotlin/com/multiplatform/webview/web Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import androidx.compose.ui.window.Window
99import androidx.compose.ui.window.application
1010import com.kevinnzou.sample.MainWebView
1111import dev.datlag.kcef.KCEF
12+ import dev.datlag.kcef.KCEFBuilder.Download
1213import kotlinx.coroutines.Dispatchers
1314import kotlinx.coroutines.withContext
1415import java.io.File
@@ -32,7 +33,12 @@ fun main() =
3233 initialized = true
3334 }
3435 }
35- release(" jbr-release-17.0.10b1087.23" )
36+ download(
37+ Download .Builder ().github {
38+ release(" jbr-release-17.0.10b1087.23" )
39+ }.build()
40+ )
41+
3642 settings {
3743 cachePath = File (" cache" ).absolutePath
3844 }
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ kotlin {
6464 val desktopMain by getting {
6565 dependencies {
6666 implementation(compose.desktop.common)
67- api(" dev.datlag:kcef:2024.01.07.1 " )
67+ api(" dev.datlag:kcef:2024.04.20.3 " )
6868 implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-swing:$coroutinesVersion " )
6969 }
7070 }
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ internal fun CefBrowser.addDisplayHandler(state: WebViewState) {
5151 state.pageTitle = title
5252 }
5353
54+ override fun onFullscreenModeChange (p0 : CefBrowser ? , p1 : Boolean ) {
55+ // Not supported
56+ }
57+
5458 override fun onTooltip (
5559 browser : CefBrowser ? ,
5660 text : String? ,
You can’t perform that action at this time.
0 commit comments