This source file includes following definitions.
- onFindResultAvailable
- onFindMatchRectsAvailable
- addNewContents
- webContentsCreated
- createRect
- createRectF
- createFindNotificationDetails
- createFindMatchRectsDetails
- setMatchRectByIndex
package org.chromium.chrome.browser;
import android.graphics.Rect;
import android.graphics.RectF;
import org.chromium.base.CalledByNative;
import org.chromium.components.web_contents_delegate_android.WebContentsDelegateAndroid;
public class ChromeWebContentsDelegateAndroid extends WebContentsDelegateAndroid {
@CalledByNative
public void onFindResultAvailable(FindNotificationDetails result) {
}
@CalledByNative
public void onFindMatchRectsAvailable(FindMatchRectsDetails result) {
}
@CalledByNative
public boolean addNewContents(long nativeSourceWebContents, long nativeWebContents,
int disposition, Rect initialPosition, boolean userGesture) {
return false;
}
@CalledByNative
public void webContentsCreated(long sourceWebContents, long opener_render_frame_id,
String frameName, String targetUrl, long newWebContents) {
}
@CalledByNative
private static Rect createRect(int x, int y, int right, int bottom) {
return new Rect(x, y, right, bottom);
}
@CalledByNative
private static RectF createRectF(float x, float y, float right, float bottom) {
return new RectF(x, y, right, bottom);
}
@CalledByNative
private static FindNotificationDetails createFindNotificationDetails(
int numberOfMatches, Rect rendererSelectionRect,
int activeMatchOrdinal, boolean finalUpdate) {
return new FindNotificationDetails(numberOfMatches, rendererSelectionRect,
activeMatchOrdinal, finalUpdate);
}
@CalledByNative
private static FindMatchRectsDetails createFindMatchRectsDetails(
int version, int numRects, RectF activeRect) {
return new FindMatchRectsDetails(version, new RectF[numRects], activeRect);
}
@CalledByNative
private static void setMatchRectByIndex(
FindMatchRectsDetails findMatchRectsDetails, int index, RectF rect) {
findMatchRectsDetails.rects[index] = rect;
}
}