- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
27 lines
1.0 KiB
Java
27 lines
1.0 KiB
Java
package androidx.webkit.internal;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.webkit.ScriptHandler;
|
|
import java.lang.reflect.InvocationHandler;
|
|
import org.chromium.support_lib_boundary.ScriptHandlerBoundaryInterface;
|
|
import org.chromium.support_lib_boundary.util.BoundaryInterfaceReflectionUtil;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ScriptHandlerImpl implements ScriptHandler {
|
|
private final ScriptHandlerBoundaryInterface mBoundaryInterface;
|
|
|
|
private ScriptHandlerImpl(@NonNull ScriptHandlerBoundaryInterface scriptHandlerBoundaryInterface) {
|
|
this.mBoundaryInterface = scriptHandlerBoundaryInterface;
|
|
}
|
|
|
|
@Override // androidx.webkit.ScriptHandler
|
|
public void remove() {
|
|
this.mBoundaryInterface.remove();
|
|
}
|
|
|
|
@NonNull
|
|
public static ScriptHandlerImpl toScriptHandler(@NonNull InvocationHandler invocationHandler) {
|
|
return new ScriptHandlerImpl((ScriptHandlerBoundaryInterface) BoundaryInterfaceReflectionUtil.castToSuppLibClass(ScriptHandlerBoundaryInterface.class, invocationHandler));
|
|
}
|
|
}
|