This source file includes following definitions.
- JNINamespace
- getNative
- onProceed
- onDontProceed
- commandReceived
- onNativeDestroyed
- proceed
- dontProceed
- nativeInit
- nativeProceed
- nativeDontProceed
package org.chromium.content.browser;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
@JNINamespace("content")
public class InterstitialPageDelegateAndroid {
private long mNativePtr;
public InterstitialPageDelegateAndroid(String htmlContent) {
mNativePtr = nativeInit(htmlContent);
}
public long getNative() {
return mNativePtr;
}
@CalledByNative
protected void onProceed() {
}
@CalledByNative
protected void onDontProceed() {
}
@CalledByNative
protected void commandReceived(String command) {
}
@CalledByNative
private void onNativeDestroyed() {
mNativePtr = 0;
}
protected void proceed() {
if (mNativePtr != 0) nativeProceed(mNativePtr);
}
protected void dontProceed() {
if (mNativePtr != 0) nativeDontProceed(mNativePtr);
}
private native long nativeInit(String htmlContent);
private native void nativeProceed(long nativeInterstitialPageDelegateAndroid);
private native void nativeDontProceed(long nativeInterstitialPageDelegateAndroid);
}