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

Commit 1c602b3e authored by Kristian Monsen's avatar Kristian Monsen Committed by Android (Google) Code Review
Browse files

Merge "Add methods to send messages to the WebViewCore whithout having a reference"

parents 8a4fd2f8 d4819a72
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1991,6 +1991,13 @@ final class WebViewCore {
                .obtainMessage(WebCoreThread.RESUME_PRIORITY));
    }

    static void sendStaticMessage(int messageType, Object argument) {
        if (sWebCoreHandler == null)
            return;

        sWebCoreHandler.sendMessage(sWebCoreHandler.obtainMessage(messageType, argument));
    }

    static void pauseUpdatePicture(WebViewCore core) {
        // Note: there is one possible failure mode. If pauseUpdatePicture() is
        // called from UI thread while WEBKIT_DRAW is just pulled out of the