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

Commit ae435619 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Support select all"

parents a403a2e0 540643bf
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);
}