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

Commit 540643bf authored by John Reck's avatar John Reck
Browse files

Support select all

 external/webkit CL: 161648

Change-Id: I9cdff2e2e9a1e986ef10946924da85c7b577352b
parent 2bb2323d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5724,8 +5724,7 @@ public class WebView extends AbsoluteLayout
     * @hide This is an implementation detail.
     */
    public void selectAll() {
        // TODO
        //mWebViewCore.sendMessage(EventHub.SELECT_ALL);
        mWebViewCore.sendMessage(EventHub.SELECT_ALL);
    }

    /**
+5 −0
Original line number Diff line number Diff line
@@ -1122,6 +1122,7 @@ public final class WebViewCore {
        static final int INSERT_TEXT = 212;
        static final int SELECT_TEXT = 213;
        static final int SELECT_WORD_AT = 214;
        static final int SELECT_ALL = 215;

        // Private handler for WebCore messages.
        private Handler mHandler;
@@ -1766,6 +1767,9 @@ public final class WebViewCore {
                            nativeSelectWordAt(mNativeClass, x, y);
                            break;
                        }
                        case SELECT_ALL:
                            nativeSelectAll(mNativeClass);
                            break;
                    }
                }
            };
@@ -3049,4 +3053,5 @@ public final class WebViewCore {
            int startX, int startY, int endX, int endY);
    private native void nativeClearTextSelection(int nativeClass);
    private native void nativeSelectWordAt(int nativeClass, int x, int y);
    private native void nativeSelectAll(int nativeClass);
}