30 lines
1.3 KiB
Java
30 lines
1.3 KiB
Java
|
package io.flutter.plugins.webviewflutter;
|
||
|
|
||
|
import android.webkit.WebChromeClient;
|
||
|
import android.webkit.WebView;
|
||
|
import io.flutter.plugin.common.BinaryMessenger;
|
||
|
import io.flutter.plugins.webviewflutter.GeneratedAndroidWebView;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class WebChromeClientFlutterApiImpl extends GeneratedAndroidWebView.WebChromeClientFlutterApi {
|
||
|
private final InstanceManager instanceManager;
|
||
|
|
||
|
public WebChromeClientFlutterApiImpl(BinaryMessenger binaryMessenger, InstanceManager instanceManager) {
|
||
|
super(binaryMessenger);
|
||
|
this.instanceManager = instanceManager;
|
||
|
}
|
||
|
|
||
|
public void onProgressChanged(WebChromeClient webChromeClient, WebView webView, Long l, GeneratedAndroidWebView.WebChromeClientFlutterApi.Reply<Void> reply) {
|
||
|
super.onProgressChanged(this.instanceManager.getInstanceId(webChromeClient), this.instanceManager.getInstanceId(webView), l, reply);
|
||
|
}
|
||
|
|
||
|
public void dispose(WebChromeClient webChromeClient, GeneratedAndroidWebView.WebChromeClientFlutterApi.Reply<Void> reply) {
|
||
|
Long removeInstance = this.instanceManager.removeInstance(webChromeClient);
|
||
|
if (removeInstance != null) {
|
||
|
dispose(removeInstance, reply);
|
||
|
} else {
|
||
|
reply.reply(null);
|
||
|
}
|
||
|
}
|
||
|
}
|