mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 19:07:17 +01:00
79 lines
2.4 KiB
Java
79 lines
2.4 KiB
Java
package androidx.webkit.internal;
|
|
|
|
import androidx.webkit.Navigation;
|
|
import androidx.webkit.Page;
|
|
import org.chromium.support_lib_boundary.WebViewNavigationBoundaryInterface;
|
|
import org.chromium.support_lib_boundary.WebViewPageBoundaryInterface;
|
|
import org.chromium.support_lib_boundary.util.BoundaryInterfaceReflectionUtil;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes14.dex */
|
|
public class NavigationAdapter implements Navigation {
|
|
WebViewNavigationBoundaryInterface mImpl;
|
|
PageImpl mPage;
|
|
|
|
public NavigationAdapter(WebViewNavigationBoundaryInterface webViewNavigationBoundaryInterface) {
|
|
this.mImpl = webViewNavigationBoundaryInterface;
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public boolean didCommit() {
|
|
return this.mImpl.didCommit();
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public boolean didCommitErrorPage() {
|
|
return this.mImpl.didCommitErrorPage();
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public Page getPage() {
|
|
if (this.mImpl.getPage() == null) {
|
|
return null;
|
|
}
|
|
if (this.mPage == null) {
|
|
this.mPage = new PageImpl((WebViewPageBoundaryInterface) BoundaryInterfaceReflectionUtil.castToSuppLibClass(WebViewPageBoundaryInterface.class, this.mImpl.getPage()));
|
|
}
|
|
return this.mPage;
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public int getStatusCode() {
|
|
return this.mImpl.getStatusCode();
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public boolean isBack() {
|
|
return this.mImpl.isBack();
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public boolean isForward() {
|
|
return this.mImpl.isForward();
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public boolean isHistory() {
|
|
return this.mImpl.isHistory();
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public boolean isReload() {
|
|
return this.mImpl.isReload();
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public boolean isRestore() {
|
|
return this.mImpl.isRestore();
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public boolean isSameDocument() {
|
|
return this.mImpl.isSameDocument();
|
|
}
|
|
|
|
@Override // androidx.webkit.Navigation
|
|
public boolean wasInitiatedByPage() {
|
|
return this.mImpl.wasInitiatedByPage();
|
|
}
|
|
}
|