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

Commit c15fbba4 authored by Bo Liu's avatar Bo Liu Committed by Android (Google) Code Review
Browse files

Merge "Add WebView.enableSlowWholeDocumentDraw" into lmp-dev

parents 38ff6a25 9f3ed850
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -37187,6 +37187,7 @@ package android.webkit {
    method public android.print.PrintDocumentAdapter createPrintDocumentAdapter(java.lang.String);
    method public void destroy();
    method public void documentHasImages(android.os.Message);
    method public static void enableSlowWholeDocumentDraw();
    method public void evaluateJavascript(java.lang.String, android.webkit.ValueCallback<java.lang.String>);
    method public static java.lang.String findAddress(java.lang.String);
    method public deprecated int findAll(java.lang.String);
+10 −0
Original line number Diff line number Diff line
@@ -1623,6 +1623,16 @@ public class WebView extends AbsoluteLayout
        return getFactory().getStatics().findAddress(addr);
    }

    /**
     * Enable drawing the entire HTML document at a significant performance
     * cost. Call this to enable drawing and capturing HTML content outside of
     * the WebView's viewport. This should be called before any WebViews are
     * created.
     */
    public static void enableSlowWholeDocumentDraw() {
        getFactory().getStatics().enableSlowWholeDocumentDraw();
    }

    /**
     * Clears the highlighting surrounding text matches created by
     * {@link #findAllAsync}.
+6 −0
Original line number Diff line number Diff line
@@ -64,6 +64,12 @@ public interface WebViewFactoryProvider {
         * {@link android.webkit.WebView#optOutDataReductionProxy() }
         */
        void optOutDataReductionProxy();

        /**
         * Implements the API method:
         * {@link android.webkit.WebView#setSlowWholeDocumentDrawEnabled(boolean) }
         */
        void enableSlowWholeDocumentDraw();
    }

    Statics getStatics();