This source file includes following definitions.
- JNINamespace
- getMostRecentProgress
- openNewTab
- activateContents
- closeContents
- onLoadStarted
- onLoadStopped
- navigationStateChanged
- SuppressWarnings
- notifyLoadProgressChanged
- onLoadProgressChanged
- rendererUnresponsive
- rendererResponsive
- onUpdateUrl
- takeFocus
- handleKeyboardEvent
- addMessageToConsole
- showRepostFormWarningDialog
- toggleFullscreenModeForTab
- isFullscreenForTabOrPending
package org.chromium.components.web_contents_delegate_android;
import android.view.KeyEvent;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
import org.chromium.content.browser.ContentViewCore;
@JNINamespace("web_contents_delegate_android")
public class WebContentsDelegateAndroid {
public static final int LOG_LEVEL_TIP = 0;
public static final int LOG_LEVEL_LOG = 1;
public static final int LOG_LEVEL_WARNING = 2;
public static final int LOG_LEVEL_ERROR = 3;
public static final int INVALIDATE_TYPE_URL = 1 << 0;
public static final int INVALIDATE_TYPE_TAB = 1 << 1;
public static final int INVALIDATE_TYPE_LOAD = 1 << 2;
public static final int INVALIDATE_TYPE_PAGE_ACTIONS = 1 << 3;
public static final int INVALIDATE_TYPE_TITLE = 1 << 4;
private int mMostRecentProgress = 100;
public int getMostRecentProgress() {
return mMostRecentProgress;
}
@CalledByNative
public void openNewTab(String url, String extraHeaders, byte[] postData, int disposition) {
}
@CalledByNative
public void activateContents() {
}
@CalledByNative
public void closeContents() {
}
@CalledByNative
public void onLoadStarted() {
}
@CalledByNative
public void onLoadStopped() {
}
@CalledByNative
public void navigationStateChanged(int flags) {
}
@SuppressWarnings("unused")
@CalledByNative
private final void notifyLoadProgressChanged(double progress) {
mMostRecentProgress = (int) (100.0 * progress);
onLoadProgressChanged(mMostRecentProgress);
}
public void onLoadProgressChanged(int progress) {
}
@CalledByNative
public void rendererUnresponsive() {
}
@CalledByNative
public void rendererResponsive() {
}
@CalledByNative
public void onUpdateUrl(String url) {
}
@CalledByNative
public boolean takeFocus(boolean reverse) {
return false;
}
@CalledByNative
public void handleKeyboardEvent(KeyEvent event) {
}
@CalledByNative
public boolean addMessageToConsole(int level, String message, int lineNumber,
String sourceId) {
return false;
}
@CalledByNative
public void showRepostFormWarningDialog(ContentViewCore contentViewCore) {
}
@CalledByNative
public void toggleFullscreenModeForTab(boolean enterFullscreen) {
}
@CalledByNative
public boolean isFullscreenForTabOrPending() {
return false;
}
}