Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a367f5c authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Provide a getter to tell the index of the current found match.

Part of fix for bug 2663680

Requires a change to external/webkit.

Change-Id: I1279963cf219eb365dd72262710f87c83acd8c4d
parent 78531d1b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2554,6 +2554,14 @@ public class WebView extends AbsoluteLayout
        nativeSetFindIsUp(isUp);
    }

    /**
     * @hide
     */
    public int findIndex() {
        if (0 == mNativeClass) return -1;
        return nativeFindIndex();
    }

    /**
     * @hide
     */
@@ -7305,6 +7313,7 @@ public class WebView extends AbsoluteLayout
    private native void     nativeRecordButtons(boolean focused,
            boolean pressed, boolean invalidate);
    private native void     nativeSelectBestAt(Rect rect);
    private native int      nativeFindIndex();
    private native void     nativeSetFindIsEmpty();
    private native void     nativeSetFindIsUp(boolean isUp);
    private native void     nativeSetFollowedLink(boolean followed);