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

Commit 9f3ed850 authored by Bo Liu's avatar Bo Liu
Browse files

Add WebView.enableSlowWholeDocumentDraw

BUG: 16300353
Change-Id: Id4475f04f32bb176a6a59ee9d5a09e3f65b94ef0
parent 66adae84
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -37059,6 +37059,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();