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

Change-Id: I8543e862e7a93651c3e3fa9bcefc8ea5f857a152
This commit is contained in:
Kristian Monsen
2010-12-16 17:42:57 +00:00
parent 6a4d0a6af2
commit d4819a722b

View File

@ -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