This source file includes following definitions.
- JNINamespace
- create
- destroy
- getNativePointer
- getNavigationController
package org.chromium.content.browser.webcontents;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
import org.chromium.content_public.browser.NavigationController;
import org.chromium.content_public.browser.WebContents;
@JNINamespace("content")
class WebContentsImpl implements WebContents {
private long mNativeWebContentsAndroid;
private NavigationController mNavigationController;
private WebContentsImpl(
long nativeWebContentsAndroid, NavigationController navigationController) {
mNativeWebContentsAndroid = nativeWebContentsAndroid;
mNavigationController = navigationController;
}
@CalledByNative
private static WebContentsImpl create(
long nativeWebContentsAndroid, NavigationController navigationController) {
return new WebContentsImpl(nativeWebContentsAndroid, navigationController);
}
@CalledByNative
private void destroy() {
mNativeWebContentsAndroid = 0;
mNavigationController = null;
}
@CalledByNative
private long getNativePointer() {
return mNativeWebContentsAndroid;
}
@Override
public NavigationController getNavigationController() {
return mNavigationController;
}
}