正在查看: 万能钥匙 v1.1.23 应用的 TbsWebView.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 TbsWebView.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.finogeeks.lib.applet.webview;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Picture;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.net.http.SslCertificate;
import android.os.Bundle;
import android.os.Looper;
import android.os.Message;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.ClientCertRequest;
import android.webkit.ConsoleMessage;
import android.webkit.GeolocationPermissions;
import android.webkit.PermissionRequest;
import android.webkit.WebBackForwardList;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebStorage;
import android.webkit.WebView;
import androidx.annotation.RequiresApi;
import com.finogeeks.lib.applet.modules.ext.ContextKt;
import com.finogeeks.lib.applet.modules.log.FLog;
import com.finogeeks.lib.applet.utils.d1;
import com.finogeeks.lib.applet.webview.IWebView;
import com.finogeeks.lib.applet.webview.WebViewClient;
import com.tencent.smtt.export.external.extension.interfaces.IX5WebViewExtension;
import com.tencent.smtt.export.external.interfaces.ConsoleMessage;
import com.tencent.smtt.export.external.interfaces.GeolocationPermissionsCallback;
import com.tencent.smtt.export.external.interfaces.IX5WebChromeClient;
import com.tencent.smtt.export.external.interfaces.JsPromptResult;
import com.tencent.smtt.export.external.interfaces.SslError;
import com.tencent.smtt.export.external.interfaces.WebResourceRequest;
import com.tencent.smtt.export.external.interfaces.WebResourceResponse;
import com.tencent.smtt.sdk.DownloadListener;
import com.tencent.smtt.sdk.ValueCallback;
import com.tencent.smtt.sdk.WebChromeClient;
import com.tencent.smtt.sdk.WebStorage;
import com.tencent.smtt.sdk.WebView;
import com.tencent.smtt.sdk.WebViewClient;
import hh0.l;
import java.security.Principal;
import java.security.PrivateKey;
import java.security.cert.X509Certificate;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.g0;
import kotlin.jvm.internal.n;
import kotlin.jvm.internal.p;
import kotlin.jvm.internal.y;
import lg0.t;
@Metadata(d1 = {"\u0000Ü\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0011\n\u0002\u0010\u0011\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010$\n\u0002\b\u0004\n\u0002\u0010\u0012\n\u0002\b\u000f\n\u0002\u0018\u0002\n\u0002\b\u0012\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0012\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0007\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\f\u0018\u00002\u00020\u0001:\u0002â\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\u000f\u0010\u0007\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\u0007\u0010\bJ\u000f\u0010\t\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\t\u0010\bJ'\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\n\u001a\u00020\u00062\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\u000f\u0010\u0010J\u001f\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\n\u001a\u00020\u00062\u0006\u0010\u0012\u001a\u00020\u0011H\u0016¢\u0006\u0004\b\u000f\u0010\u0013J\u000f\u0010\u0015\u001a\u00020\u0014H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0017\u001a\u00020\u0014H\u0016¢\u0006\u0004\b\u0017\u0010\u0016J\u001f\u0010\u001a\u001a\u00020\u000e2\u0006\u0010\u0018\u001a\u00020\u00142\u0006\u0010\u0019\u001a\u00020\u0014H\u0016¢\u0006\u0004\b\u001a\u0010\u001bJ\u0019\u0010\u001f\u001a\u0004\u0018\u00010\u001e2\u0006\u0010\u001d\u001a\u00020\u001cH\u0016¢\u0006\u0004\b\u001f\u0010 J\u0017\u0010\"\u001a\u00020\u000e2\u0006\u0010!\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\"\u0010#J\u0017\u0010$\u001a\u00020\u000e2\u0006\u0010\u001d\u001a\u00020\u0014H\u0016¢\u0006\u0004\b$\u0010%J\u0017\u0010&\u001a\u00020\u000e2\u0006\u0010\u001d\u001a\u00020\u0014H\u0016¢\u0006\u0004\b&\u0010%J\u000f\u0010'\u001a\u00020\u0014H\u0016¢\u0006\u0004\b'\u0010\u0016J\u000f\u0010(\u001a\u00020\u0014H\u0016¢\u0006\u0004\b(\u0010\u0016J'\u0010+\u001a\u00020\u000e2\u0006\u0010\u001d\u001a\u00020\u001c2\u0006\u0010)\u001a\u00020\u001c2\u0006\u0010*\u001a\u00020\u001cH\u0016¢\u0006\u0004\b+\u0010,J7\u0010.\u001a\u00020\u000e2\b\u0010\u001d\u001a\u0004\u0018\u00010\u001c2\b\u0010)\u001a\u0004\u0018\u00010\u001c2\b\u0010*\u001a\u0004\u0018\u00010\u001c2\b\u0010-\u001a\u0004\u0018\u00010\u001cH\u0016¢\u0006\u0004\b.\u0010/J+\u00101\u001a\n\u0012\u0004\u0012\u00020\u001c\u0018\u0001002\b\u0010\u001d\u001a\u0004\u0018\u00010\u001c2\b\u0010)\u001a\u0004\u0018\u00010\u001cH\u0016¢\u0006\u0004\b1\u00102J\u000f\u00103\u001a\u00020\u000eH\u0016¢\u0006\u0004\b3\u00104J\u0017\u00106\u001a\u00020\u000e2\u0006\u00105\u001a\u00020\u0014H\u0016¢\u0006\u0004\b6\u0010%J\u0019\u0010:\u001a\u0004\u0018\u0001092\u0006\u00108\u001a\u000207H\u0016¢\u0006\u0004\b:\u0010;J\u0019\u0010=\u001a\u0004\u0018\u0001092\u0006\u0010<\u001a\u000207H\u0016¢\u0006\u0004\b=\u0010;J+\u0010A\u001a\u00020\u000e2\u0006\u0010>\u001a\u00020\u001c2\u0012\u0010@\u001a\u000e\u0012\u0004\u0012\u00020\u001c\u0012\u0004\u0012\u00020\u001c0?H\u0016¢\u0006\u0004\bA\u0010BJ\u0017\u0010A\u001a\u00020\u000e2\u0006\u0010>\u001a\u00020\u001cH\u0016¢\u0006\u0004\bA\u0010CJ\u001f\u0010F\u001a\u00020\u000e2\u0006\u0010>\u001a\u00020\u001c2\u0006\u0010E\u001a\u00020DH\u0016¢\u0006\u0004\bF\u0010GJ+\u0010K\u001a\u00020\u000e2\u0006\u0010H\u001a\u00020\u001c2\b\u0010I\u001a\u0004\u0018\u00010\u001c2\b\u0010J\u001a\u0004\u0018\u00010\u001cH\u0016¢\u0006\u0004\bK\u0010,J?\u0010N\u001a\u00020\u000e2\b\u0010L\u001a\u0004\u0018\u00010\u001c2\u0006\u0010H\u001a\u00020\u001c2\b\u0010I\u001a\u0004\u0018\u00010\u001c2\b\u0010J\u001a\u0004\u0018\u00010\u001c2\b\u0010M\u001a\u0004\u0018\u00010\u001cH\u0016¢\u0006\u0004\bN\u0010OJ\u0017\u0010Q\u001a\u00020\u000e2\u0006\u0010P\u001a\u00020\u001cH\u0016¢\u0006\u0004\bQ\u0010CJ/\u0010Q\u001a\u00020\u000e2\u0006\u0010R\u001a\u00020\u001c2\u0006\u0010S\u001a\u00020\u00142\u000e\u0010U\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u001c0TH\u0016¢\u0006\u0004\bQ\u0010VJ\u000f\u0010W\u001a\u00020\u000eH\u0016¢\u0006\u0004\bW\u00104J\u000f\u0010X\u001a\u00020\u000eH\u0016¢\u0006\u0004\bX\u00104J\u000f\u0010Y\u001a\u00020\u0014H\u0016¢\u0006\u0004\bY\u0010\u0016J\u000f\u0010Z\u001a\u00020\u000eH\u0016¢\u0006\u0004\bZ\u00104J\u000f\u0010[\u001a\u00020\u0014H\u0016¢\u0006\u0004\b[\u0010\u0016J\u000f\u0010\\\u001a\u00020\u000eH\u0016¢\u0006\u0004\b\\\u00104J\u0017\u0010^\u001a\u00020\u00142\u0006\u0010]\u001a\u00020\u000bH\u0016¢\u0006\u0004\b^\u0010_J\u0017\u0010`\u001a\u00020\u000e2\u0006\u0010]\u001a\u00020\u000bH\u0016¢\u0006\u0004\b`\u0010#J\u0017\u0010b\u001a\u00020\u00142\u0006\u0010a\u001a\u00020\u0014H\u0016¢\u0006\u0004\bb\u0010cJ\u0017\u0010e\u001a\u00020\u00142\u0006\u0010d\u001a\u00020\u0014H\u0016¢\u0006\u0004\be\u0010cJ\u000f\u0010f\u001a\u00020\u000eH\u0016¢\u0006\u0004\bf\u00104J\u0011\u0010h\u001a\u0004\u0018\u00010gH\u0016¢\u0006\u0004\bh\u0010iJ\u0017\u0010k\u001a\u00020\u000e2\u0006\u0010j\u001a\u00020\u000bH\u0016¢\u0006\u0004\bk\u0010#J\u000f\u0010l\u001a\u00020\u000eH\u0016¢\u0006\u0004\bl\u00104J\u0019\u0010n\u001a\u00020\u000e2\b\u0010\u001d\u001a\u0004\u0018\u00010mH\u0016¢\u0006\u0004\bn\u0010oJ\u0017\u0010p\u001a\u00020\u000e2\u0006\u0010\u001d\u001a\u00020mH\u0016¢\u0006\u0004\bp\u0010oJ\u001f\u0010q\u001a\u00020\u000e2\u0006\u0010\u001d\u001a\u00020\u000b2\u0006\u0010)\u001a\u00020\u0014H\u0016¢\u0006\u0004\bq\u0010rJ\u000f\u0010s\u001a\u00020\u000eH\u0016¢\u0006\u0004\bs\u00104J\u000f\u0010t\u001a\u00020\u000eH\u0016¢\u0006\u0004\bt\u00104J\u000f\u0010u\u001a\u00020\u000eH\u0016¢\u0006\u0004\bu\u00104J\u000f\u0010v\u001a\u00020\u000eH\u0016¢\u0006\u0004\bv\u00104J\u000f\u0010w\u001a\u00020\u000eH\u0016¢\u0006\u0004\bw\u00104J\u0017\u0010y\u001a\u00020\u000e2\u0006\u0010x\u001a\u00020\u0014H\u0016¢\u0006\u0004\by\u0010%J\u000f\u0010z\u001a\u00020\u000eH\u0016¢\u0006\u0004\bz\u00104J\u000f\u0010{\u001a\u00020\u000eH\u0016¢\u0006\u0004\b{\u00104J\u000f\u0010|\u001a\u00020\u000eH\u0016¢\u0006\u0004\b|\u00104J\u000f\u0010}\u001a\u000209H\u0016¢\u0006\u0004\b}\u0010~J\u0019\u0010\u0080\u0001\u001a\u00020\u000e2\u0006\u0010\u007f\u001a\u00020mH\u0016¢\u0006\u0005\b\u0080\u0001\u0010oJ\u001e\u0010\u0083\u0001\u001a\u00020\u000e2\n\u0010\u0082\u0001\u001a\u0005\u0018\u00010\u0081\u0001H\u0016¢\u0006\u0006\b\u0083\u0001\u0010\u0084\u0001J\u001e\u0010\u0086\u0001\u001a\u00020\u000e2\n\u0010\u0082\u0001\u001a\u0005\u0018\u00010\u0085\u0001H\u0016¢\u0006\u0006\b\u0086\u0001\u0010\u0087\u0001J$\u0010\u008a\u0001\u001a\u00020\u000e2\u0007\u0010\u0088\u0001\u001a\u00020\u001e2\u0007\u0010\u0089\u0001\u001a\u00020\u001cH\u0016¢\u0006\u0006\b\u008a\u0001\u0010\u008b\u0001J\u001a\u0010\u008c\u0001\u001a\u00020\u000e2\u0007\u0010\u0089\u0001\u001a\u00020\u001cH\u0016¢\u0006\u0005\b\u008c\u0001\u0010CJ\u0019\u0010\u008d\u0001\u001a\u00020\u000e2\u0006\u0010\u001d\u001a\u00020\u0014H\u0016¢\u0006\u0005\b\u008d\u0001\u0010%J\"\u0010\u008e\u0001\u001a\u00020\u000e2\u0006\u0010\u001d\u001a\u00020\u000b2\u0006\u0010)\u001a\u00020\u000bH\u0016¢\u0006\u0006\b\u008e\u0001\u0010\u008f\u0001J\u0011\u0010\u0090\u0001\u001a\u00020\u0014H\u0016¢\u0006\u0005\b\u0090\u0001\u0010\u0016J\u0011\u0010\u0091\u0001\u001a\u00020\u0014H\u0016¢\u0006\u0005\b\u0091\u0001\u0010\u0016J\u0011\u0010\u0092\u0001\u001a\u00020\u0014H\u0016¢\u0006\u0005\b\u0092\u0001\u0010\u0016J\u0011\u0010\u0093\u0001\u001a\u00020\u0014H\u0016¢\u0006\u0005\b\u0093\u0001\u0010\u0016J.\u0010\u0096\u0001\u001a\u00020\u000e2\u0007\u0010\u0094\u0001\u001a\u00020\u001c2\u0011\u0010\u0095\u0001\u001a\f\u0012\u0006\u0012\u0004\u0018\u00010\u001c\u0018\u00010TH\u0016¢\u0006\u0006\b\u0096\u0001\u0010\u0097\u0001J\u0013\u0010\u0099\u0001\u001a\u00030\u0098\u0001H\u0016¢\u0006\u0006\b\u0099\u0001\u0010\u009a\u0001J\u001e\u0010\u009c\u0001\u001a\u00020\u000e2\n\u0010\u0082\u0001\u001a\u0005\u0018\u00010\u009b\u0001H\u0016¢\u0006\u0006\b\u009c\u0001\u0010\u009d\u0001R \u0010¢\u0001\u001a\u00030\u009e\u00018BX\u0082\u0084\u0002¢\u0006\u000f\n\u0006\b\u009f\u0001\u0010 \u0001\u001a\u0005\b\u0007\u0010¡\u0001R'\u0010£\u0001\u001a\u00020\u00148\u0016@\u0016X\u0096\u000e¢\u0006\u0016\n\u0006\b£\u0001\u0010¤\u0001\u001a\u0005\b£\u0001\u0010\u0016\"\u0005\b¥\u0001\u0010%R\u0017\u0010¨\u0001\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\b\u001a\u0006\b¦\u0001\u0010§\u0001R\u0017\u0010ª\u0001\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\b\u001a\u0006\b©\u0001\u0010§\u0001R\u0017\u0010¬\u0001\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\b\u001a\u0006\b«\u0001\u0010§\u0001R0\u0010³\u0001\u001a\u0005\u0018\u00010\u00ad\u00012\n\u0010®\u0001\u001a\u0005\u0018\u00010\u00ad\u00018V@VX\u0096\u000e¢\u0006\u0010\u001a\u0006\b¯\u0001\u0010°\u0001\"\u0006\b±\u0001\u0010²\u0001R\u0018\u0010·\u0001\u001a\u00030´\u00018VX\u0096\u0004¢\u0006\b\u001a\u0006\bµ\u0001\u0010¶\u0001R\u0018\u0010>\u001a\u0004\u0018\u00010\u001c8VX\u0096\u0004¢\u0006\b\u001a\u0006\b¸\u0001\u0010¹\u0001R\u0019\u0010»\u0001\u001a\u0004\u0018\u00010\u001c8VX\u0096\u0004¢\u0006\b\u001a\u0006\bº\u0001\u0010¹\u0001R\u0019\u0010½\u0001\u001a\u0004\u0018\u00010\u001c8VX\u0096\u0004¢\u0006\b\u001a\u0006\b¼\u0001\u0010¹\u0001R\u001a\u0010Á\u0001\u001a\u0005\u0018\u00010¾\u00018VX\u0096\u0004¢\u0006\b\u001a\u0006\b¿\u0001\u0010À\u0001R\u0017\u0010Ã\u0001\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\b\u001a\u0006\bÂ\u0001\u0010§\u0001R\u0016\u0010Å\u0001\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0007\u001a\u0005\bÄ\u0001\u0010\u0016R0\u0010Ë\u0001\u001a\u0005\u0018\u00010Æ\u00012\n\u0010®\u0001\u001a\u0005\u0018\u00010Æ\u00018V@VX\u0096\u000e¢\u0006\u0010\u001a\u0006\bÇ\u0001\u0010È\u0001\"\u0006\bÉ\u0001\u0010Ê\u0001R8\u0010Í\u0001\u001a\u0005\u0018\u00010Ì\u00012\n\u0010®\u0001\u001a\u0005\u0018\u00010Ì\u00018\u0016@VX\u0096\u000e¢\u0006\u0018\n\u0006\bÍ\u0001\u0010Î\u0001\u001a\u0006\bÏ\u0001\u0010Ð\u0001\"\u0006\bÑ\u0001\u0010Ò\u0001R\u0017\u0010Ô\u0001\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\b\u001a\u0006\bÓ\u0001\u0010§\u0001R\u0017\u0010Ö\u0001\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\b\u001a\u0006\bÕ\u0001\u0010§\u0001R\u0018\u0010Ú\u0001\u001a\u00030×\u00018VX\u0096\u0004¢\u0006\b\u001a\u0006\bØ\u0001\u0010Ù\u0001R\u0016\u0010Û\u0001\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0007\u001a\u0005\bÛ\u0001\u0010\u0016R'\u0010Ü\u0001\u001a\u00020\u00148\u0016@\u0016X\u0096\u000e¢\u0006\u0016\n\u0006\bÜ\u0001\u0010¤\u0001\u001a\u0005\bÜ\u0001\u0010\u0016\"\u0005\bÝ\u0001\u0010%R\u001c\u0010Þ\u0001\u001a\u0005\u0018\u00010Æ\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bÞ\u0001\u0010ß\u0001R\u001c\u0010à\u0001\u001a\u0005\u0018\u00010\u009b\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bà\u0001\u0010á\u0001¨\u0006ã\u0001"}, d2 = {"Lcom/finogeeks/lib/applet/webview/TbsWebView;", "Lcom/finogeeks/lib/applet/webview/IWebView;", "Landroid/content/Context;", "context", "<init>", "(Landroid/content/Context;)V", "Landroid/view/View;", "getWebView", "()Landroid/view/View;", "getInnerView", "view", "", "width", "height", "Llg0/e0;", "addToInnerView", "(Landroid/view/View;II)V", "Landroid/view/ViewGroup$LayoutParams;", "params", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V", "", "isTbsWebView", "()Z", "isUseX5Core", "horizontalEnabled", "verticalEnabled", "setScrollBarEnabled", "(ZZ)V", "", "var1", "", "createPrintDocumentAdapter", "(Ljava/lang/String;)Ljava/lang/Object;", "style", "setScrollBarStyle", "(I)V", "setHorizontalScrollbarOverlay", "(Z)V", "setVerticalScrollbarOverlay", "overlayHorizontalScrollbar", "overlayVerticalScrollbar", "var2", "var3", "savePassword", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "var4", "setHttpAuthUsernamePassword", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "", "getHttpAuthUsernamePassword", "(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;", "destroy", "()V", "networkUp", "setNetworkAvailable", "Landroid/os/Bundle;", "outState", "Landroid/webkit/WebBackForwardList;", "saveState", "(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;", "inState", "restoreState", "url", "", "extraHeaders", "loadUrl", "(Ljava/lang/String;Ljava/util/Map;)V", "(Ljava/lang/String;)V", "", "postData", "postUrl", "(Ljava/lang/String;[B)V", "data", "mimeType", "encoding", "loadData", "baseUrl", "historyUrl", "loadDataWithBaseURL", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "filename", "saveWebArchive", "basename", "autoname", "Landroid/webkit/ValueCallback;", "callback", "(Ljava/lang/String;ZLandroid/webkit/ValueCallback;)V", "stopLoading", "reload", "canGoBack", "goBack", "canGoForward", "goForward", "steps", "canGoBackOrForward", "(I)Z", "goBackOrForward", "top", "pageUp", "(Z)Z", "bottom", "pageDown", "clearView", "Landroid/graphics/Picture;", "capturePicture", "()Landroid/graphics/Picture;", "scaleInPercent", "setInitialScale", "invokeZoomPicker", "Landroid/os/Message;", "requestFocusNodeHref", "(Landroid/os/Message;)V", "requestImageRef", "setRendererPriorityPolicy", "(IZ)V", "pauseTimers", "resumeTimers", "onPause", "onResume", "freeMemory", "includeDiskFiles", "clearCache", "clearFormData", "clearHistory", "clearSslPreferences", "copyBackForwardList", "()Landroid/webkit/WebBackForwardList;", "response", "documentHasImages", "Landroid/webkit/DownloadListener;", "listener", "setDownloadListener", "(Landroid/webkit/DownloadListener;)V", "Landroid/webkit/WebView$PictureListener;", "setPictureListener", "(Landroid/webkit/WebView$PictureListener;)V", "obj", "interfaceName", "addJavascriptInterface", "(Ljava/lang/Object;Ljava/lang/String;)V", "removeJavascriptInterface", "setMapTrackballToArrowKeys", "flingScroll", "(II)V", "canZoomIn", "canZoomOut", "zoomIn", "zoomOut", "script", "valueCallback", "executeJavaScript", "(Ljava/lang/String;Landroid/webkit/ValueCallback;)V", "Lcom/finogeeks/lib/applet/webview/HitTestResult;", "hitTestResult", "()Lcom/finogeeks/lib/applet/webview/HitTestResult;", "Lcom/finogeeks/lib/applet/webview/IWebView$OnScrollListener;", "setOnScrollListener", "(Lcom/finogeeks/lib/applet/webview/IWebView$OnScrollListener;)V", "Lcom/tencent/smtt/sdk/WebView;", "webView$delegate", "Llg0/h;", "()Lcom/tencent/smtt/sdk/WebView;", "webView", "isDestroyed", "Z", "setDestroyed", "getWebScrollX", "()I", "webScrollX", "getWebScrollY", "webScrollY", "getVisibleTitleHeight", "visibleTitleHeight", "Landroid/net/http/SslCertificate;", "value", "getCertificate", "()Landroid/net/http/SslCertificate;", "setCertificate", "(Landroid/net/http/SslCertificate;)V", "certificate", "", "getScale", "()F", "scale", "getUrl", "()Ljava/lang/String;", "getOriginalUrl", "originalUrl", "getTitle", "title", "Landroid/graphics/Bitmap;", "getFavicon", "()Landroid/graphics/Bitmap;", "favicon", "getRendererRequestedPriority", "rendererRequestedPriority", "getRendererPriorityWaivedWhenNotVisible", "rendererPriorityWaivedWhenNotVisible", "Lcom/finogeeks/lib/applet/webview/WebChromeClient;", "getWebChromeClient", "()Lcom/finogeeks/lib/applet/webview/WebChromeClient;", "setWebChromeClient", "(Lcom/finogeeks/lib/applet/webview/WebChromeClient;)V", "webChromeClient", "Lcom/finogeeks/lib/applet/webview/WebViewClient;", "webViewClient", "Lcom/finogeeks/lib/applet/webview/WebViewClient;", "getWebViewClient", "()Lcom/finogeeks/lib/applet/webview/WebViewClient;", "setWebViewClient", "(Lcom/finogeeks/lib/applet/webview/WebViewClient;)V", "getProgress", "progress", "getContentHeight", "contentHeight", "Landroid/webkit/WebSettings;", "getSettings", "()Landroid/webkit/WebSettings;", "settings", "isPrivateBrowsingEnabled", "isWebViewShouldBeTouched", "setWebViewShouldBeTouched", "mWebChromeClient", "Lcom/finogeeks/lib/applet/webview/WebChromeClient;", "onWebViewScrollListener", "Lcom/finogeeks/lib/applet/webview/IWebView$OnScrollListener;", "Companion", "finapplet_release"}, k = 1, mv = {1, 4, 0})
public final class TbsWebView implements IWebView {
static final l[] g = {g0.j(new y(g0.b(TbsWebView.class), "webView", "getWebView()Lcom/tencent/smtt/sdk/WebView;"))};
private boolean a;
private final lg0.h b;
private IWebView.b c;
private WebChromeClient d;
private WebViewClient e;
private boolean f;
public static final class a {
private a() {
}
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
public static final class b<T> implements ValueCallback<String> {
final android.webkit.ValueCallback a;
public b(android.webkit.ValueCallback valueCallback) {
this.a = valueCallback;
}
public final void onReceiveValue(String str) {
android.webkit.ValueCallback valueCallback = this.a;
if (valueCallback != null) {
valueCallback.onReceiveValue(str);
}
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "run", "()V", "<anonymous>"}, k = 3, mv = {1, 4, 0})
public static final class c implements Runnable {
final String b;
final android.webkit.ValueCallback c;
public static final class a<T> implements ValueCallback<String> {
public a() {
}
public final void onReceiveValue(String str) {
android.webkit.ValueCallback valueCallback = c.this.c;
if (valueCallback != null) {
valueCallback.onReceiveValue(str);
}
}
}
public c(String str, android.webkit.ValueCallback valueCallback) {
this.b = str;
this.c = valueCallback;
}
@Override
public final void run() {
if (!TbsWebView.this.getA()) {
TbsWebView.this.getWebView().evaluateJavascript(this.b, new a());
return;
}
FLog.w$default("TbsWebView", "executeJavaScript return, webView destroyed, script=" + this.b, null, 4, null);
}
}
public static final class d<T> implements ValueCallback<String> {
final android.webkit.ValueCallback a;
public d(android.webkit.ValueCallback valueCallback) {
this.a = valueCallback;
}
public final void onReceiveValue(String str) {
this.a.onReceiveValue(str);
}
}
public static final class e implements DownloadListener {
final android.webkit.DownloadListener a;
public e(android.webkit.DownloadListener downloadListener) {
this.a = downloadListener;
}
public final void onDownloadStart(String str, String str2, String str3, String str4, long j) {
android.webkit.DownloadListener downloadListener = this.a;
if (downloadListener != null) {
downloadListener.onDownloadStart(str, str2, str3, str4, j);
}
}
}
public static final class f implements WebView.PictureListener {
final WebView.PictureListener a;
public f(WebView.PictureListener pictureListener) {
this.a = pictureListener;
}
public final void onNewPicture(com.tencent.smtt.sdk.WebView webView, Picture picture) {
WebView.PictureListener pictureListener = this.a;
if (pictureListener != null) {
pictureListener.onNewPicture(null, picture);
}
}
}
@Metadata(d1 = {"\u0000\u0097\u0001\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\u00020\u0001JC\u0010\f\u001a\u00020\u000b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0004\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0007\u001a\u00020\u00052\u0006\u0010\b\u001a\u00020\u00052\u0006\u0010\n\u001a\u00020\tH\u0016¢\u0006\u0004\b\f\u0010\rJ\u0011\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0016¢\u0006\u0004\b\u000f\u0010\u0010J%\u0010\u0013\u001a\u00020\u000b2\u0014\u0010\u0003\u001a\u0010\u0012\f\u0012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00120\u0011H\u0016¢\u0006\u0004\b\u0013\u0010\u0014J\u0017\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0003\u001a\u00020\u0015H\u0016¢\u0006\u0004\b\u0017\u0010\u0018J1\u0010\u001b\u001a\u00020\u00162\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\u0006\u0010\u0004\u001a\u00020\u00162\u0006\u0010\u0006\u001a\u00020\u00162\u0006\u0010\u0007\u001a\u00020\u001aH\u0016¢\u0006\u0004\b\u001b\u0010\u001cJ\u000f\u0010\u001d\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\u001d\u0010\u001eJ!\u0010 \u001a\u00020\u000b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0004\u001a\u00020\u001fH\u0016¢\u0006\u0004\b \u0010!J\u000f\u0010\"\u001a\u00020\u000bH\u0016¢\u0006\u0004\b\"\u0010\u001eJ5\u0010$\u001a\u00020\u00162\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\b\u0010\u0004\u001a\u0004\u0018\u00010\u00022\b\u0010\u0006\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0007\u001a\u00020#H\u0016¢\u0006\u0004\b$\u0010%J5\u0010&\u001a\u00020\u00162\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\b\u0010\u0004\u001a\u0004\u0018\u00010\u00022\b\u0010\u0006\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0007\u001a\u00020#H\u0016¢\u0006\u0004\b&\u0010%J?\u0010(\u001a\u00020\u00162\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\b\u0010\u0004\u001a\u0004\u0018\u00010\u00022\b\u0010\u0006\u001a\u0004\u0018\u00010\u00022\b\u0010\u0007\u001a\u0004\u0018\u00010\u00022\u0006\u0010\b\u001a\u00020'H\u0016¢\u0006\u0004\b(\u0010)J5\u0010*\u001a\u00020\u00162\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\b\u0010\u0004\u001a\u0004\u0018\u00010\u00022\b\u0010\u0006\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0007\u001a\u00020#H\u0016¢\u0006\u0004\b*\u0010%J\u000f\u0010+\u001a\u00020\u0016H\u0016¢\u0006\u0004\b+\u0010,J!\u0010.\u001a\u00020\u000b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\u0006\u0010\u0004\u001a\u00020-H\u0016¢\u0006\u0004\b.\u0010/J!\u00100\u001a\u00020\u000b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\u0006\u0010\u0004\u001a\u00020\u000eH\u0016¢\u0006\u0004\b0\u00101J)\u00102\u001a\u00020\u000b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\u0006\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0016H\u0016¢\u0006\u0004\b2\u00103J!\u00104\u001a\u00020\u000b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\u0006\u0010\u0004\u001a\u00020\u0002H\u0016¢\u0006\u0004\b4\u00105J\u0019\u00106\u001a\u00020\u000b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u0019H\u0016¢\u0006\u0004\b6\u00107J\u001f\u0010:\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u0002082\u0006\u0010\u0004\u001a\u000209H\u0016¢\u0006\u0004\b:\u0010;J'\u0010:\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u0002082\u0006\u0010\u0004\u001a\u00020-2\u0006\u0010\u0006\u001a\u000209H\u0016¢\u0006\u0004\b:\u0010<J\u0019\u0010=\u001a\u00020\u000b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u0019H\u0016¢\u0006\u0004\b=\u00107J\u0011\u0010>\u001a\u0004\u0018\u000108H\u0016¢\u0006\u0004\b>\u0010?J-\u0010A\u001a\u00020\u000b2\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020@0\u00112\u0006\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0002H\u0016¢\u0006\u0004\bA\u0010BJ7\u0010D\u001a\u00020\u00162\b\u0010\u0003\u001a\u0004\u0018\u00010\u00192\u0014\u0010\u0004\u001a\u0010\u0012\f\u0012\n\u0012\u0006\u0012\u0004\u0018\u00010@0\u00120\u00112\u0006\u0010\u0006\u001a\u00020CH\u0016¢\u0006\u0004\bD\u0010EJ\u0017\u0010G\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020FH\u0016¢\u0006\u0004\bG\u0010HJ\u0017\u0010I\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020FH\u0016¢\u0006\u0004\bI\u0010H¨\u0006J"}, d2 = {"com/finogeeks/lib/applet/webview/TbsWebView$webChromeClient$1", "Lcom/tencent/smtt/sdk/WebChromeClient;", "", "p0", "p1", "", "p2", "p3", "p4", "Lcom/tencent/smtt/sdk/WebStorage$QuotaUpdater;", "p5", "Llg0/e0;", "onExceededDatabaseQuota", "(Ljava/lang/String;Ljava/lang/String;JJJLcom/tencent/smtt/sdk/WebStorage$QuotaUpdater;)V", "Landroid/graphics/Bitmap;", "getDefaultVideoPoster", "()Landroid/graphics/Bitmap;", "Lcom/tencent/smtt/sdk/ValueCallback;", "", "getVisitedHistory", "(Lcom/tencent/smtt/sdk/ValueCallback;)V", "Lcom/tencent/smtt/export/external/interfaces/ConsoleMessage;", "", "onConsoleMessage", "(Lcom/tencent/smtt/export/external/interfaces/ConsoleMessage;)Z", "Lcom/tencent/smtt/sdk/WebView;", "Landroid/os/Message;", "onCreateWindow", "(Lcom/tencent/smtt/sdk/WebView;ZZLandroid/os/Message;)Z", "onGeolocationPermissionsHidePrompt", "()V", "Lcom/tencent/smtt/export/external/interfaces/GeolocationPermissionsCallback;", "onGeolocationPermissionsShowPrompt", "(Ljava/lang/String;Lcom/tencent/smtt/export/external/interfaces/GeolocationPermissionsCallback;)V", "onHideCustomView", "Lcom/tencent/smtt/export/external/interfaces/JsResult;", "onJsAlert", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Ljava/lang/String;Lcom/tencent/smtt/export/external/interfaces/JsResult;)Z", "onJsConfirm", "Lcom/tencent/smtt/export/external/interfaces/JsPromptResult;", "onJsPrompt", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/tencent/smtt/export/external/interfaces/JsPromptResult;)Z", "onJsBeforeUnload", "onJsTimeout", "()Z", "", "onProgressChanged", "(Lcom/tencent/smtt/sdk/WebView;I)V", "onReceivedIcon", "(Lcom/tencent/smtt/sdk/WebView;Landroid/graphics/Bitmap;)V", "onReceivedTouchIconUrl", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Z)V", "onReceivedTitle", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)V", "onRequestFocus", "(Lcom/tencent/smtt/sdk/WebView;)V", "Landroid/view/View;", "Lcom/tencent/smtt/export/external/interfaces/IX5WebChromeClient$CustomViewCallback;", "onShowCustomView", "(Landroid/view/View;Lcom/tencent/smtt/export/external/interfaces/IX5WebChromeClient$CustomViewCallback;)V", "(Landroid/view/View;ILcom/tencent/smtt/export/external/interfaces/IX5WebChromeClient$CustomViewCallback;)V", "onCloseWindow", "getVideoLoadingProgressView", "()Landroid/view/View;", "Landroid/net/Uri;", "openFileChooser", "(Lcom/tencent/smtt/sdk/ValueCallback;Ljava/lang/String;Ljava/lang/String;)V", "Lcom/tencent/smtt/sdk/WebChromeClient$FileChooserParams;", "onShowFileChooser", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/sdk/ValueCallback;Lcom/tencent/smtt/sdk/WebChromeClient$FileChooserParams;)Z", "Lcom/tencent/smtt/export/external/interfaces/PermissionRequest;", "onPermissionRequest", "(Lcom/tencent/smtt/export/external/interfaces/PermissionRequest;)V", "onPermissionRequestCanceled", "finapplet_release"}, k = 1, mv = {1, 4, 0})
public static final class g extends com.tencent.smtt.sdk.WebChromeClient {
final WebChromeClient b;
public static final class a<T> implements android.webkit.ValueCallback<String[]> {
final ValueCallback a;
public a(ValueCallback valueCallback) {
this.a = valueCallback;
}
@Override
public final void onReceiveValue(String[] strArr) {
this.a.onReceiveValue(strArr);
}
}
public static final class b implements WebStorage.QuotaUpdater {
final WebStorage.QuotaUpdater a;
public b(WebStorage.QuotaUpdater quotaUpdater) {
this.a = quotaUpdater;
}
@Override
public final void updateQuota(long j) {
this.a.updateQuota(j);
}
}
public static final class c implements GeolocationPermissions.Callback {
final GeolocationPermissionsCallback a;
public c(GeolocationPermissionsCallback geolocationPermissionsCallback) {
this.a = geolocationPermissionsCallback;
}
@Override
public final void invoke(String str, boolean z10, boolean z11) {
this.a.invoke(str, z10, z11);
}
}
@RequiresApi(21)
public static final class d extends PermissionRequest {
final com.tencent.smtt.export.external.interfaces.PermissionRequest a;
public d(com.tencent.smtt.export.external.interfaces.PermissionRequest permissionRequest) {
this.a = permissionRequest;
}
@Override
public void deny() {
this.a.deny();
}
@Override
public Uri getOrigin() {
Uri origin = this.a.getOrigin();
n.e(origin, "p0.origin");
return origin;
}
@Override
public String[] getResources() {
String[] resources = this.a.getResources();
n.e(resources, "p0.resources");
return resources;
}
@Override
public void grant(String[] strArr) {
this.a.grant(strArr);
}
}
@RequiresApi(21)
public static final class e extends PermissionRequest {
final com.tencent.smtt.export.external.interfaces.PermissionRequest a;
public e(com.tencent.smtt.export.external.interfaces.PermissionRequest permissionRequest) {
this.a = permissionRequest;
}
@Override
public void deny() {
this.a.deny();
}
@Override
public Uri getOrigin() {
Uri origin = this.a.getOrigin();
n.e(origin, "p0.origin");
return origin;
}
@Override
public String[] getResources() {
String[] resources = this.a.getResources();
n.e(resources, "p0.resources");
return resources;
}
@Override
public void grant(String[] strArr) {
this.a.grant(strArr);
}
}
public static final class f implements WebChromeClient.CustomViewCallback {
final IX5WebChromeClient.CustomViewCallback a;
public f(IX5WebChromeClient.CustomViewCallback customViewCallback) {
this.a = customViewCallback;
}
@Override
public final void onCustomViewHidden() {
this.a.onCustomViewHidden();
}
}
public static final class C0240g implements WebChromeClient.CustomViewCallback {
final IX5WebChromeClient.CustomViewCallback a;
public C0240g(IX5WebChromeClient.CustomViewCallback customViewCallback) {
this.a = customViewCallback;
}
@Override
public final void onCustomViewHidden() {
this.a.onCustomViewHidden();
}
}
public static final class h<T> implements android.webkit.ValueCallback<Uri[]> {
final ValueCallback a;
public h(ValueCallback valueCallback) {
this.a = valueCallback;
}
@Override
public final void onReceiveValue(Uri[] uriArr) {
this.a.onReceiveValue(uriArr);
}
}
@RequiresApi(21)
public static final class i extends WebChromeClient.FileChooserParams {
final WebChromeClient.FileChooserParams a;
public i(WebChromeClient.FileChooserParams fileChooserParams) {
this.a = fileChooserParams;
}
@Override
public Intent createIntent() {
Intent createIntent = this.a.createIntent();
n.e(createIntent, "p2.createIntent()");
return createIntent;
}
@Override
public String[] getAcceptTypes() {
String[] acceptTypes = this.a.getAcceptTypes();
n.e(acceptTypes, "p2.acceptTypes");
return acceptTypes;
}
@Override
public String getFilenameHint() {
return this.a.getFilenameHint();
}
@Override
public int getMode() {
return this.a.getMode();
}
@Override
public CharSequence getTitle() {
return this.a.getTitle();
}
@Override
public boolean isCaptureEnabled() {
return this.a.isCaptureEnabled();
}
}
public static final class j<T> implements android.webkit.ValueCallback<Uri> {
final ValueCallback a;
public j(ValueCallback valueCallback) {
this.a = valueCallback;
}
@Override
public final void onReceiveValue(Uri uri) {
this.a.onReceiveValue(uri);
}
}
public g(WebChromeClient webChromeClient) {
this.b = webChromeClient;
}
public Bitmap getDefaultVideoPoster() {
return this.b.getDefaultVideoPoster();
}
public View getVideoLoadingProgressView() {
return this.b.getVideoLoadingProgressView();
}
public void getVisitedHistory(ValueCallback<String[]> p0) {
n.j(p0, "p0");
this.b.getVisitedHistory(new a(p0));
}
public void onCloseWindow(com.tencent.smtt.sdk.WebView p0) {
this.b.onCloseWindow(TbsWebView.this);
}
public boolean onConsoleMessage(ConsoleMessage p0) {
ConsoleMessage.MessageLevel messageLevel;
n.j(p0, "p0");
WebChromeClient webChromeClient = this.b;
String message = p0.message();
String sourceId = p0.sourceId();
int lineNumber = p0.lineNumber();
ConsoleMessage.MessageLevel messageLevel2 = p0.messageLevel();
if (messageLevel2 != null) {
int i2 = com.finogeeks.lib.applet.webview.e.a[messageLevel2.ordinal()];
if (i2 == 1) {
messageLevel = ConsoleMessage.MessageLevel.WARNING;
} else if (i2 == 2) {
messageLevel = ConsoleMessage.MessageLevel.TIP;
} else if (i2 == 3) {
messageLevel = ConsoleMessage.MessageLevel.LOG;
} else if (i2 == 4) {
messageLevel = ConsoleMessage.MessageLevel.DEBUG;
} else if (i2 == 5) {
messageLevel = ConsoleMessage.MessageLevel.ERROR;
}
return webChromeClient.onConsoleMessage(new android.webkit.ConsoleMessage(message, sourceId, lineNumber, messageLevel));
}
throw new lg0.l();
}
public boolean onCreateWindow(com.tencent.smtt.sdk.WebView p0, boolean p1, boolean p2, Message p3) {
n.j(p3, "p3");
return this.b.onCreateWindow(TbsWebView.this, p1, p2, p3);
}
public void onExceededDatabaseQuota(String p0, String p1, long p2, long p3, long p4, WebStorage.QuotaUpdater p5) {
n.j(p5, "p5");
this.b.onExceededDatabaseQuota(p0, p1, p2, p3, p4, new b(p5));
}
public void onGeolocationPermissionsHidePrompt() {
this.b.onGeolocationPermissionsHidePrompt();
}
public void onGeolocationPermissionsShowPrompt(String p0, GeolocationPermissionsCallback p1) {
n.j(p1, "p1");
this.b.onGeolocationPermissionsShowPrompt(p0, new c(p1));
}
public void onHideCustomView() {
this.b.onHideCustomView();
}
public boolean onJsAlert(com.tencent.smtt.sdk.WebView p0, String p1, String p2, com.tencent.smtt.export.external.interfaces.JsResult p3) {
n.j(p3, "p3");
return this.b.onJsAlert(TbsWebView.this, p1, p2, com.finogeeks.lib.applet.webview.g.a(p3));
}
public boolean onJsBeforeUnload(com.tencent.smtt.sdk.WebView p0, String p1, String p2, com.tencent.smtt.export.external.interfaces.JsResult p3) {
n.j(p3, "p3");
return this.b.onJsBeforeUnload(TbsWebView.this, p1, p2, com.finogeeks.lib.applet.webview.g.a(p3));
}
public boolean onJsConfirm(com.tencent.smtt.sdk.WebView p0, String p1, String p2, com.tencent.smtt.export.external.interfaces.JsResult p3) {
n.j(p3, "p3");
return this.b.onJsConfirm(TbsWebView.this, p1, p2, com.finogeeks.lib.applet.webview.g.a(p3));
}
public boolean onJsPrompt(com.tencent.smtt.sdk.WebView p0, String p1, String p2, String p3, JsPromptResult p4) {
n.j(p4, "p4");
return this.b.onJsPrompt(TbsWebView.this, p1, p2, p3, com.finogeeks.lib.applet.webview.g.a(p4));
}
public boolean onJsTimeout() {
return this.b.onJsTimeout();
}
public void onPermissionRequest(com.tencent.smtt.export.external.interfaces.PermissionRequest p0) {
n.j(p0, "p0");
this.b.onPermissionRequest(new d(p0));
}
public void onPermissionRequestCanceled(com.tencent.smtt.export.external.interfaces.PermissionRequest p0) {
n.j(p0, "p0");
this.b.onPermissionRequestCanceled(new e(p0));
}
public void onProgressChanged(com.tencent.smtt.sdk.WebView p0, int p1) {
this.b.onProgressChanged(TbsWebView.this, p1);
}
public void onReceivedIcon(com.tencent.smtt.sdk.WebView p0, Bitmap p1) {
n.j(p1, "p1");
this.b.onReceivedIcon(TbsWebView.this, p1);
}
public void onReceivedTitle(com.tencent.smtt.sdk.WebView p0, String p1) {
n.j(p1, "p1");
this.b.onReceivedTitle(TbsWebView.this, p1);
}
public void onReceivedTouchIconUrl(com.tencent.smtt.sdk.WebView p0, String p1, boolean p2) {
n.j(p1, "p1");
this.b.onReceivedTouchIconUrl(TbsWebView.this, p1, p2);
}
public void onRequestFocus(com.tencent.smtt.sdk.WebView p0) {
this.b.onRequestFocus(TbsWebView.this);
}
public void onShowCustomView(View p0, int p1, IX5WebChromeClient.CustomViewCallback p2) {
n.j(p0, "p0");
n.j(p2, "p2");
this.b.onShowCustomView(p0, p1, new C0240g(p2));
}
public void onShowCustomView(View p0, IX5WebChromeClient.CustomViewCallback p1) {
n.j(p0, "p0");
n.j(p1, "p1");
this.b.onShowCustomView(p0, new f(p1));
}
public boolean onShowFileChooser(com.tencent.smtt.sdk.WebView p0, ValueCallback<Uri[]> p1, WebChromeClient.FileChooserParams p2) {
n.j(p1, "p1");
n.j(p2, "p2");
return this.b.onShowFileChooser(TbsWebView.this, new h(p1), new i(p2));
}
public void openFileChooser(ValueCallback<Uri> p0, String p1, String p2) {
n.j(p0, "p0");
n.j(p1, "p1");
n.j(p2, "p2");
this.b.openFileChooser(new j(p0), p1, p2);
}
}
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\t\n\u0000\n\u0002\b\u0003*\u0001\u0001\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"<anonymous>", "com/finogeeks/lib/applet/webview/TbsWebView$webView$2$1$1", "invoke", "()Lcom/finogeeks/lib/applet/webview/TbsWebView$webView$2$1$1;"}, k = 3, mv = {1, 1, 16})
public static final class h extends p implements ah0.a<a.C0241a> {
final Context b;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0011\n\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0001\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "com/finogeeks/lib/applet/webview/TbsWebView$webView$2$1$1", "it", "Landroid/content/Context;", "invoke", "(Landroid/content/Context;)Lcom/finogeeks/lib/applet/webview/TbsWebView$webView$2$1$1;"}, k = 3, mv = {1, 1, 16})
public static final class a extends p implements ah0.l<Context, C0241a> {
public static final class C0241a extends com.tencent.smtt.sdk.WebView {
public C0241a(Context context) {
super(context);
}
public boolean onInterceptTouchEvent(MotionEvent motionEvent) {
if (TbsWebView.this.getF()) {
return true;
}
return super.onInterceptTouchEvent(motionEvent);
}
public void onScrollChanged(int i, int i2, int i3, int i4) {
super.onScrollChanged(i, i2, i3, i4);
IWebView.b bVar = TbsWebView.this.c;
if (bVar != null) {
bVar.onScrollChanged(i, i2, i3, i4);
}
}
public boolean onTouchEvent(MotionEvent motionEvent) {
if (TbsWebView.this.getF()) {
getView().onTouchEvent(motionEvent);
}
Integer valueOf = motionEvent != null ? Integer.valueOf(motionEvent.getAction()) : null;
if ((valueOf != null && valueOf.intValue() == 1) || (valueOf != null && valueOf.intValue() == 3)) {
TbsWebView.this.setWebViewShouldBeTouched(false);
}
return super.onTouchEvent(motionEvent);
}
}
public a() {
super(1);
}
public final C0241a invoke(Context context) {
n.j(context, "it");
return new C0241a(h.this.b);
}
}
public h(Context context) {
super(0);
this.b = context;
}
public final a.C0241a m782invoke() {
return (a.C0241a) ContextKt.createWithConfigurationRestore(this.b, new a());
}
}
@Metadata(d1 = {"\u0000\u008d\u0001\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J#\u0010\u0007\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016¢\u0006\u0004\b\u0007\u0010\bJ#\u0010\n\u001a\u00020\t2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016¢\u0006\u0004\b\n\u0010\u000bJ!\u0010\n\u001a\u00020\t2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\fH\u0017¢\u0006\u0004\b\n\u0010\rJ-\u0010\u0010\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u00042\b\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0016¢\u0006\u0004\b\u0010\u0010\u0011J#\u0010\u0012\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016¢\u0006\u0004\b\u0012\u0010\bJ5\u0010\u0015\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u00132\b\u0010\u000f\u001a\u0004\u0018\u00010\u00042\b\u0010\u0014\u001a\u0004\u0018\u00010\u0004H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J+\u0010\u0015\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\f2\b\u0010\u000f\u001a\u0004\u0018\u00010\u0017H\u0017¢\u0006\u0004\b\u0015\u0010\u0018J)\u0010\u001a\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\f2\u0006\u0010\u000f\u001a\u00020\u0019H\u0017¢\u0006\u0004\b\u001a\u0010\u001bJ%\u0010\u001c\u001a\u0004\u0018\u00010\u00192\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0017¢\u0006\u0004\b\u001c\u0010\u001dJ#\u0010\u001c\u001a\u0004\u0018\u00010\u00192\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\fH\u0017¢\u0006\u0004\b\u001c\u0010\u001eJ-\u0010\u001c\u001a\u0004\u0018\u00010\u00192\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\f2\b\u0010\u000f\u001a\u0004\u0018\u00010\u001fH\u0017¢\u0006\u0004\b\u001c\u0010 J+\u0010!\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u000f\u001a\u00020\tH\u0016¢\u0006\u0004\b!\u0010\"J+\u0010$\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020#2\b\u0010\u000f\u001a\u0004\u0018\u00010#H\u0016¢\u0006\u0004\b$\u0010%J7\u0010'\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010&2\b\u0010\u000f\u001a\u0004\u0018\u00010\u00042\b\u0010\u0014\u001a\u0004\u0018\u00010\u0004H\u0016¢\u0006\u0004\b'\u0010(J+\u0010+\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010)2\u0006\u0010\u000f\u001a\u00020*H\u0016¢\u0006\u0004\b+\u0010,J!\u0010.\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020-H\u0017¢\u0006\u0004\b.\u0010/J)\u00101\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u0002002\u0006\u0010\u000f\u001a\u000200H\u0016¢\u0006\u0004\b1\u00102J#\u00104\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u000103H\u0016¢\u0006\u0004\b4\u00105J#\u00106\u001a\u00020\t2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u000103H\u0016¢\u0006\u0004\b6\u00107J-\u00108\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010#2\b\u0010\u000f\u001a\u0004\u0018\u00010#H\u0016¢\u0006\u0004\b8\u0010%J7\u00109\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u00042\b\u0010\u000f\u001a\u0004\u0018\u00010\u00042\b\u0010\u0014\u001a\u0004\u0018\u00010\u0004H\u0016¢\u0006\u0004\b9\u0010:J#\u0010;\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016¢\u0006\u0004\b;\u0010\bJ#\u0010=\u001a\u00020\t2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010<H\u0016¢\u0006\u0004\b=\u0010>¨\u0006?"}, d2 = {"com/finogeeks/lib/applet/webview/TbsWebView$webViewClient$1", "Lcom/tencent/smtt/sdk/WebViewClient;", "Lcom/tencent/smtt/sdk/WebView;", "p0", "", "p1", "Llg0/e0;", "onLoadResource", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)V", "", "shouldOverrideUrlLoading", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)Z", "Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;)Z", "Landroid/graphics/Bitmap;", "p2", "onPageStarted", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V", "onPageFinished", "", "p3", "onReceivedError", "(Lcom/tencent/smtt/sdk/WebView;ILjava/lang/String;Ljava/lang/String;)V", "Lcom/tencent/smtt/export/external/interfaces/WebResourceError;", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;Lcom/tencent/smtt/export/external/interfaces/WebResourceError;)V", "Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;", "onReceivedHttpError", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;)V", "shouldInterceptRequest", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;)Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;", "Landroid/os/Bundle;", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;Landroid/os/Bundle;)Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;", "doUpdateVisitedHistory", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Z)V", "Landroid/os/Message;", "onFormResubmission", "(Lcom/tencent/smtt/sdk/WebView;Landroid/os/Message;Landroid/os/Message;)V", "Lcom/tencent/smtt/export/external/interfaces/HttpAuthHandler;", "onReceivedHttpAuthRequest", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/HttpAuthHandler;Ljava/lang/String;Ljava/lang/String;)V", "Lcom/tencent/smtt/export/external/interfaces/SslErrorHandler;", "Lcom/tencent/smtt/export/external/interfaces/SslError;", "onReceivedSslError", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/SslErrorHandler;Lcom/tencent/smtt/export/external/interfaces/SslError;)V", "Lcom/tencent/smtt/export/external/interfaces/ClientCertRequest;", "onReceivedClientCertRequest", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/ClientCertRequest;)V", "", "onScaleChanged", "(Lcom/tencent/smtt/sdk/WebView;FF)V", "Landroid/view/KeyEvent;", "onUnhandledKeyEvent", "(Lcom/tencent/smtt/sdk/WebView;Landroid/view/KeyEvent;)V", "shouldOverrideKeyEvent", "(Lcom/tencent/smtt/sdk/WebView;Landroid/view/KeyEvent;)Z", "onTooManyRedirects", "onReceivedLoginRequest", "(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "onPageCommitVisible", "Lcom/tencent/smtt/sdk/WebViewClient$RenderProcessGoneDetail;", "onRenderProcessGone", "(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/sdk/WebViewClient$RenderProcessGoneDetail;)Z", "finapplet_release"}, k = 1, mv = {1, 4, 0})
public static final class i extends com.tencent.smtt.sdk.WebViewClient {
final WebViewClient b;
public static final class a extends ClientCertRequest {
final com.tencent.smtt.export.external.interfaces.ClientCertRequest a;
public a(com.tencent.smtt.export.external.interfaces.ClientCertRequest clientCertRequest) {
this.a = clientCertRequest;
}
@Override
public void cancel() {
this.a.cancel();
}
@Override
public String getHost() {
String host = this.a.getHost();
n.e(host, "p1.host");
return host;
}
@Override
public String[] getKeyTypes() {
return this.a.getKeyTypes();
}
@Override
public int getPort() {
return this.a.getPort();
}
@Override
public Principal[] getPrincipals() {
return this.a.getPrincipals();
}
@Override
public void ignore() {
this.a.ignore();
}
@Override
public void proceed(PrivateKey privateKey, X509Certificate[] x509CertificateArr) {
this.a.proceed(privateKey, x509CertificateArr);
}
}
public static final class b extends WebResourceError {
final com.tencent.smtt.export.external.interfaces.WebResourceError a;
public b(com.tencent.smtt.export.external.interfaces.WebResourceError webResourceError) {
this.a = webResourceError;
}
@Override
public CharSequence getDescription() {
com.tencent.smtt.export.external.interfaces.WebResourceError webResourceError = this.a;
if (webResourceError != null) {
return webResourceError.getDescription();
}
return null;
}
@Override
public int getErrorCode() {
com.tencent.smtt.export.external.interfaces.WebResourceError webResourceError = this.a;
if (webResourceError != null) {
return webResourceError.getErrorCode();
}
return 0;
}
}
public static final class c implements HttpAuthHandler {
final com.tencent.smtt.export.external.interfaces.HttpAuthHandler a;
public c(com.tencent.smtt.export.external.interfaces.HttpAuthHandler httpAuthHandler) {
this.a = httpAuthHandler;
}
@Override
public void cancel() {
com.tencent.smtt.export.external.interfaces.HttpAuthHandler httpAuthHandler = this.a;
if (httpAuthHandler != null) {
httpAuthHandler.cancel();
}
}
@Override
public void proceed(String str, String str2) {
n.j(str, "username");
n.j(str2, "password");
com.tencent.smtt.export.external.interfaces.HttpAuthHandler httpAuthHandler = this.a;
if (httpAuthHandler != null) {
httpAuthHandler.proceed(str, str2);
}
}
@Override
public boolean useHttpAuthUsernamePassword() {
com.tencent.smtt.export.external.interfaces.HttpAuthHandler httpAuthHandler = this.a;
if (httpAuthHandler != null) {
return httpAuthHandler.useHttpAuthUsernamePassword();
}
return false;
}
}
public static final class d implements SslErrorHandler {
final com.tencent.smtt.export.external.interfaces.SslErrorHandler a;
public d(com.tencent.smtt.export.external.interfaces.SslErrorHandler sslErrorHandler) {
this.a = sslErrorHandler;
}
@Override
public void cancel() {
com.tencent.smtt.export.external.interfaces.SslErrorHandler sslErrorHandler = this.a;
if (sslErrorHandler != null) {
sslErrorHandler.cancel();
}
}
@Override
public void proceed() {
com.tencent.smtt.export.external.interfaces.SslErrorHandler sslErrorHandler = this.a;
if (sslErrorHandler != null) {
sslErrorHandler.proceed();
}
}
}
public static final class e implements WebViewClient.b {
public e(WebViewClient.RenderProcessGoneDetail renderProcessGoneDetail) {
}
}
public i(WebViewClient webViewClient) {
this.b = webViewClient;
}
public void doUpdateVisitedHistory(com.tencent.smtt.sdk.WebView p0, String p1, boolean p2) {
this.b.doUpdateVisitedHistory(TbsWebView.this, p1, p2);
}
public void onFormResubmission(com.tencent.smtt.sdk.WebView p0, Message p1, Message p2) {
n.j(p1, "p1");
this.b.onFormResubmission(TbsWebView.this, p1, p2);
}
public void onLoadResource(com.tencent.smtt.sdk.WebView p0, String p1) {
this.b.onLoadResource(TbsWebView.this, p1);
}
public void onPageCommitVisible(com.tencent.smtt.sdk.WebView p0, String p1) {
this.b.onPageCommitVisible(TbsWebView.this, p1);
}
public void onPageFinished(com.tencent.smtt.sdk.WebView p0, String p1) {
this.b.onPageFinished(TbsWebView.this, p1);
}
public void onPageStarted(com.tencent.smtt.sdk.WebView p0, String p1, Bitmap p2) {
this.b.onPageStarted(TbsWebView.this, p1, p2);
}
@RequiresApi(21)
public void onReceivedClientCertRequest(com.tencent.smtt.sdk.WebView p0, com.tencent.smtt.export.external.interfaces.ClientCertRequest p1) {
n.j(p1, "p1");
this.b.onReceivedClientCertRequest(TbsWebView.this, new a(p1));
}
public void onReceivedError(com.tencent.smtt.sdk.WebView p0, int p1, String p2, String p3) {
this.b.onReceivedError(TbsWebView.this, p1, p2, p3);
}
@RequiresApi(21)
public void onReceivedError(com.tencent.smtt.sdk.WebView p0, WebResourceRequest p1, com.tencent.smtt.export.external.interfaces.WebResourceError p2) {
n.j(p1, "p1");
this.b.onReceivedError(TbsWebView.this, com.finogeeks.lib.applet.webview.g.a(p1), new b(p2));
}
public void onReceivedHttpAuthRequest(com.tencent.smtt.sdk.WebView p0, com.tencent.smtt.export.external.interfaces.HttpAuthHandler p1, String p2, String p3) {
this.b.onReceivedHttpAuthRequest(TbsWebView.this, new c(p1), p2, p3);
}
@RequiresApi(21)
public void onReceivedHttpError(com.tencent.smtt.sdk.WebView p0, WebResourceRequest p1, WebResourceResponse p2) {
n.j(p1, "p1");
n.j(p2, "p2");
try {
this.b.onReceivedHttpError(TbsWebView.this, com.finogeeks.lib.applet.webview.g.a(p1), com.finogeeks.lib.applet.webview.g.a(p2));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void onReceivedLoginRequest(com.tencent.smtt.sdk.WebView p0, String p1, String p2, String p3) {
this.b.onReceivedLoginRequest(TbsWebView.this, p1, p2, p3);
}
public void onReceivedSslError(com.tencent.smtt.sdk.WebView p0, com.tencent.smtt.export.external.interfaces.SslErrorHandler p1, SslError p2) {
n.j(p2, "p2");
this.b.onReceivedSslError(TbsWebView.this, new d(p1), new android.net.http.SslError(p2.getPrimaryError(), p2.getCertificate(), p2.getUrl()));
}
public boolean onRenderProcessGone(com.tencent.smtt.sdk.WebView p0, WebViewClient.RenderProcessGoneDetail p1) {
return this.b.onRenderProcessGone(TbsWebView.this, new e(p1));
}
public void onScaleChanged(com.tencent.smtt.sdk.WebView p0, float p1, float p2) {
this.b.onScaleChanged(TbsWebView.this, p1, p2);
}
public void onTooManyRedirects(com.tencent.smtt.sdk.WebView p0, Message p1, Message p2) {
this.b.onTooManyRedirects(TbsWebView.this, p1, p2);
}
public void onUnhandledKeyEvent(com.tencent.smtt.sdk.WebView p0, KeyEvent p1) {
this.b.onUnhandledKeyEvent(TbsWebView.this, p1);
}
@RequiresApi(21)
public WebResourceResponse shouldInterceptRequest(com.tencent.smtt.sdk.WebView p0, WebResourceRequest p1) {
n.j(p1, "p1");
android.webkit.WebResourceResponse shouldInterceptRequest = this.b.shouldInterceptRequest(TbsWebView.this, com.finogeeks.lib.applet.webview.g.a(p1));
if (shouldInterceptRequest != null) {
return com.finogeeks.lib.applet.webview.g.a(shouldInterceptRequest);
}
return null;
}
@RequiresApi(21)
public WebResourceResponse shouldInterceptRequest(com.tencent.smtt.sdk.WebView p0, WebResourceRequest p1, Bundle p2) {
n.j(p1, "p1");
android.webkit.WebResourceResponse shouldInterceptRequest = this.b.shouldInterceptRequest(TbsWebView.this, com.finogeeks.lib.applet.webview.g.a(p1), p2);
if (shouldInterceptRequest != null) {
return com.finogeeks.lib.applet.webview.g.a(shouldInterceptRequest);
}
return null;
}
@RequiresApi(21)
public WebResourceResponse shouldInterceptRequest(com.tencent.smtt.sdk.WebView p0, String p1) {
android.webkit.WebResourceResponse shouldInterceptRequest = this.b.shouldInterceptRequest(TbsWebView.this, p1);
if (shouldInterceptRequest != null) {
return com.finogeeks.lib.applet.webview.g.a(shouldInterceptRequest);
}
return null;
}
public boolean shouldOverrideKeyEvent(com.tencent.smtt.sdk.WebView p0, KeyEvent p1) {
return this.b.shouldOverrideKeyEvent(TbsWebView.this, p1);
}
@RequiresApi(21)
public boolean shouldOverrideUrlLoading(com.tencent.smtt.sdk.WebView p0, WebResourceRequest p1) {
n.j(p1, "p1");
return this.b.shouldOverrideUrlLoading(TbsWebView.this, com.finogeeks.lib.applet.webview.g.a(p1));
}
public boolean shouldOverrideUrlLoading(com.tencent.smtt.sdk.WebView p0, String p1) {
return this.b.shouldOverrideUrlLoading(TbsWebView.this, p1);
}
}
static {
new a(null);
}
public TbsWebView(Context context) {
n.j(context, "context");
this.b = lg0.i.a(new h(context));
}
public final com.tencent.smtt.sdk.WebView getWebView() {
lg0.h hVar = this.b;
l lVar = g[0];
return (com.tencent.smtt.sdk.WebView) hVar.getValue();
}
@Override
public void addJavascriptInterface(Object obj, String interfaceName) {
n.j(obj, "obj");
n.j(interfaceName, "interfaceName");
getWebView().addJavascriptInterface(obj, interfaceName);
}
@Override
public void addToInnerView(View view, int width, int height) {
n.j(view, "view");
View innerView = getInnerView();
if (innerView == null) {
throw new t("null cannot be cast to non-null type android.view.ViewGroup");
}
((ViewGroup) innerView).addView(view, width, height);
}
@Override
public void addToInnerView(View view, ViewGroup.LayoutParams params) {
n.j(view, "view");
n.j(params, "params");
View innerView = getInnerView();
if (innerView == null) {
throw new t("null cannot be cast to non-null type android.view.ViewGroup");
}
((ViewGroup) innerView).addView(view, params);
}
@Override
public boolean canGoBack() {
return getWebView().canGoBack();
}
@Override
public boolean canGoBackOrForward(int steps) {
return getWebView().canGoBackOrForward(steps);
}
@Override
public boolean canGoForward() {
return getWebView().canGoForward();
}
@Override
public boolean canZoomIn() {
return getWebView().canZoomIn();
}
@Override
public boolean canZoomOut() {
return getWebView().canZoomOut();
}
@Override
public Picture capturePicture() {
return getWebView().capturePicture();
}
@Override
public void clearCache(boolean includeDiskFiles) {
getWebView().clearCache(includeDiskFiles);
}
@Override
public void clearFormData() {
getWebView().clearFormData();
}
@Override
public void clearHistory() {
getWebView().clearHistory();
}
@Override
public void clearSslPreferences() {
getWebView().clearSslPreferences();
}
@Override
public void clearView() {
getWebView().clearView();
}
@Override
public WebBackForwardList copyBackForwardList() {
com.tencent.smtt.sdk.WebBackForwardList copyBackForwardList = getWebView().copyBackForwardList();
n.e(copyBackForwardList, "webView.copyBackForwardList()");
return com.finogeeks.lib.applet.webview.g.a(copyBackForwardList);
}
@Override
public Object createPrintDocumentAdapter(String var1) {
n.j(var1, "var1");
return getWebView().createPrintDocumentAdapter(var1);
}
@Override
public void destroy() {
getWebView().destroy();
}
@Override
public void documentHasImages(Message response) {
n.j(response, "response");
getWebView().documentHasImages(response);
}
@Override
public void executeJavaScript(String script, android.webkit.ValueCallback<String> valueCallback) {
n.j(script, "script");
if (getA()) {
FLog.w$default("TbsWebView", "executeJavaScript return, webView destroyed, script=" + script, null, 4, null);
return;
}
if (Looper.getMainLooper() == Looper.myLooper()) {
getWebView().evaluateJavascript(script, new b(valueCallback));
} else {
d1.a().post(new c(script, valueCallback));
}
}
@Override
public void flingScroll(int var1, int var2) {
getWebView().flingScroll(var1, var2);
}
@Override
public void freeMemory() {
getWebView().freeMemory();
}
@Override
public SslCertificate getCertificate() {
return getWebView().getCertificate();
}
@Override
public int getContentHeight() {
return getWebView().getContentHeight();
}
@Override
public Bitmap getFavicon() {
return getWebView().getFavicon();
}
@Override
public String[] getHttpAuthUsernamePassword(String var1, String var2) {
return getWebView().getHttpAuthUsernamePassword(var1, var2);
}
@Override
public View getInnerView() {
View view = getWebView().getView();
n.e(view, "webView.view");
return view;
}
@Override
public String getOriginalUrl() {
return getWebView().getOriginalUrl();
}
@Override
public int getProgress() {
return getWebView().getProgress();
}
@Override
public boolean getRendererPriorityWaivedWhenNotVisible() {
return getWebView().getRendererPriorityWaivedWhenNotVisible();
}
@Override
public int getRendererRequestedPriority() {
return getWebView().getRendererRequestedPriority();
}
@Override
public float getScale() {
return getWebView().getScale();
}
@Override
public WebSettings getSettings() {
com.tencent.smtt.sdk.WebSettings settings = getWebView().getSettings();
n.e(settings, "webView.settings");
return com.finogeeks.lib.applet.webview.g.a(settings, getWebView());
}
@Override
public String getTitle() {
return getWebView().getTitle();
}
@Override
public String getUrl() {
return getWebView().getUrl();
}
@Override
public int getViewId() {
return IWebView.a.a(this);
}
@Override
public int getVisibleTitleHeight() {
return getWebView().getVisibleTitleHeight();
}
@Override
public WebChromeClient getD() {
return this.d;
}
@Override
public int getWebScrollX() {
return getWebView().getWebScrollX();
}
@Override
public int getWebScrollY() {
return getWebView().getWebScrollY();
}
@Override
public View mo781getWebView() {
return getWebView();
}
@Override
public WebViewClient getE() {
return this.e;
}
@Override
public void goBack() {
getWebView().goBack();
}
@Override
public void goBackOrForward(int steps) {
getWebView().goBackOrForward(steps);
}
@Override
public void goForward() {
getWebView().goForward();
}
@Override
public com.finogeeks.lib.applet.webview.a hitTestResult() {
WebView.HitTestResult hitTestResult = getWebView().getHitTestResult();
n.e(hitTestResult, "hitTestResult");
return new com.finogeeks.lib.applet.webview.a(hitTestResult.getType(), hitTestResult.getExtra());
}
@Override
public void invokeZoomPicker() {
getWebView().invokeZoomPicker();
}
@Override
public boolean getA() {
return this.a;
}
@Override
public boolean isPrivateBrowsingEnabled() {
return getWebView().isPrivateBrowsingEnabled();
}
@Override
public boolean isTbsWebView() {
return true;
}
@Override
public boolean isUseX5Core() {
return getWebView().getX5WebViewExtension() != null;
}
@Override
public boolean getF() {
return this.f;
}
@Override
public void loadData(String data, String mimeType, String encoding) {
n.j(data, "data");
getWebView().loadData(data, mimeType, encoding);
}
@Override
public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) {
n.j(data, "data");
getWebView().loadDataWithBaseURL(baseUrl, data, mimeType, encoding, historyUrl);
}
@Override
public void loadUrl(String url) {
n.j(url, "url");
getWebView().loadUrl(url);
}
@Override
public void loadUrl(String url, Map<String, String> extraHeaders) {
n.j(url, "url");
n.j(extraHeaders, "extraHeaders");
getWebView().loadUrl(url, extraHeaders);
}
@Override
public void onPause() {
getWebView().onPause();
}
@Override
public void onResume() {
getWebView().onResume();
}
@Override
public boolean overlayHorizontalScrollbar() {
return getWebView().overlayHorizontalScrollbar();
}
@Override
public boolean overlayVerticalScrollbar() {
return getWebView().overlayVerticalScrollbar();
}
@Override
public boolean pageDown(boolean bottom) {
return getWebView().pageDown(bottom);
}
@Override
public boolean pageUp(boolean top) {
return getWebView().pageUp(top);
}
@Override
public void pauseTimers() {
getWebView().pauseTimers();
}
@Override
public void postUrl(String url, byte[] postData) {
n.j(url, "url");
n.j(postData, "postData");
getWebView().postUrl(url, postData);
}
@Override
public void reload() {
getWebView().reload();
}
@Override
public void removeJavascriptInterface(String interfaceName) {
n.j(interfaceName, "interfaceName");
getWebView().removeJavascriptInterface(interfaceName);
}
@Override
public void requestFocusNodeHref(Message var1) {
getWebView().requestFocusNodeHref(var1);
}
@Override
public void requestImageRef(Message var1) {
n.j(var1, "var1");
getWebView().requestImageRef(var1);
}
@Override
public WebBackForwardList restoreState(Bundle inState) {
n.j(inState, "inState");
com.tencent.smtt.sdk.WebBackForwardList restoreState = getWebView().restoreState(inState);
n.e(restoreState, "webView.restoreState(inState)");
return com.finogeeks.lib.applet.webview.g.a(restoreState);
}
@Override
public void resumeTimers() {
getWebView().resumeTimers();
}
@Override
public void savePassword(String var1, String var2, String var3) {
n.j(var1, "var1");
n.j(var2, "var2");
n.j(var3, "var3");
getWebView().savePassword(var1, var2, var3);
}
@Override
public WebBackForwardList saveState(Bundle outState) {
n.j(outState, "outState");
com.tencent.smtt.sdk.WebBackForwardList saveState = getWebView().saveState(outState);
n.e(saveState, "webView.saveState(outState)");
return com.finogeeks.lib.applet.webview.g.a(saveState);
}
@Override
public void saveWebArchive(String filename) {
n.j(filename, "filename");
getWebView().saveWebArchive(filename);
}
@Override
public void saveWebArchive(String basename, boolean autoname, android.webkit.ValueCallback<String> callback) {
n.j(basename, "basename");
n.j(callback, "callback");
getWebView().saveWebArchive(basename, autoname, new d(callback));
}
@Override
public void sendToPageJSBridge(String str, String str2, Integer num, android.webkit.ValueCallback<String> valueCallback) {
IWebView.a.a(this, str, str2, num, valueCallback);
}
@Override
public void sendToServiceJSBridge(String str, String str2, Integer num, android.webkit.ValueCallback<String> valueCallback) {
IWebView.a.b(this, str, str2, num, valueCallback);
}
@Override
public void sendToWebJSBridge(String str, String str2, Integer num, android.webkit.ValueCallback<String> valueCallback) {
IWebView.a.c(this, str, str2, num, valueCallback);
}
@Override
public void setCertificate(SslCertificate sslCertificate) {
getWebView().setCertificate(sslCertificate);
}
@Override
public void setDestroyed(boolean z10) {
this.a = z10;
}
@Override
public void setDownloadListener(android.webkit.DownloadListener listener) {
getWebView().setDownloadListener(new e(listener));
}
@Override
public void setHorizontalScrollbarOverlay(boolean var1) {
getWebView().setHorizontalScrollbarOverlay(var1);
}
@Override
public void setHttpAuthUsernamePassword(String var1, String var2, String var3, String var4) {
getWebView().setHttpAuthUsernamePassword(var1, var2, var3, var4);
}
@Override
public void setInitialScale(int scaleInPercent) {
getWebView().setInitialScale(scaleInPercent);
}
@Override
public void setMapTrackballToArrowKeys(boolean var1) {
getWebView().setMapTrackballToArrowKeys(var1);
}
@Override
public void setNetworkAvailable(boolean networkUp) {
getWebView().setNetworkAvailable(networkUp);
}
@Override
public void setOnScrollListener(IWebView.b bVar) {
this.c = bVar;
}
@Override
public void setPictureListener(WebView.PictureListener listener) {
getWebView().setPictureListener(new f(listener));
}
@Override
public void setRendererPriorityPolicy(int var1, boolean var2) {
getWebView().setRendererPriorityPolicy(var1, var2);
}
@Override
public void setScrollBarEnabled(boolean horizontalEnabled, boolean verticalEnabled) {
View mo781getWebView = mo781getWebView();
mo781getWebView.setHorizontalScrollBarEnabled(horizontalEnabled);
mo781getWebView.setVerticalScrollBarEnabled(verticalEnabled);
IX5WebViewExtension x5WebViewExtension = getWebView().getX5WebViewExtension();
if (getWebView().getX5WebViewExtension() == null) {
FLog.d$default("TbsWebView", "setScrollBarEnabled ix5WebViewExtension is null", null, 4, null);
return;
}
n.e(x5WebViewExtension, "ix5WebViewExtension");
x5WebViewExtension.setHorizontalScrollBarEnabled(horizontalEnabled);
x5WebViewExtension.setVerticalScrollBarEnabled(verticalEnabled);
x5WebViewExtension.setHorizontalTrackDrawable((Drawable) null);
x5WebViewExtension.setVerticalTrackDrawable((Drawable) null);
}
@Override
public void setScrollBarStyle(int style) {
getWebView().setScrollBarStyle(style);
}
@Override
public void setVerticalScrollbarOverlay(boolean var1) {
getWebView().setVerticalScrollbarOverlay(var1);
}
@Override
public void setWebChromeClient(WebChromeClient webChromeClient) {
this.d = webChromeClient;
getWebView().setWebChromeClient(webChromeClient == null ? null : new g(webChromeClient));
}
@Override
public void setWebViewClient(WebViewClient webViewClient) {
if (webViewClient == null) {
getWebView().setWebViewClient((com.tencent.smtt.sdk.WebViewClient) null);
this.e = webViewClient;
} else {
getWebView().setWebViewClient(new i(webViewClient));
this.e = webViewClient;
}
}
@Override
public void setWebViewShouldBeTouched(boolean z10) {
this.f = z10;
}
@Override
public void stopLoading() {
getWebView().stopLoading();
}
@Override
public boolean zoomIn() {
return getWebView().zoomIn();
}
@Override
public boolean zoomOut() {
return getWebView().zoomOut();
}
}