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

Commit d4819a72 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

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

Change-Id: I8543e862e7a93651c3e3fa9bcefc8ea5f857a152
parent 6a4d0a6a
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