|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.os.Handler
android.webkit.CallbackProxy
class CallbackProxy
This class is a proxy class for handling WebCore -> UI thread messaging. All the callback functions are called from the WebCore thread and messages are posted to the UI thread for the actual client callback.
| Constructor Summary | |
|---|---|
CallbackProxy(Context context,
WebView w)
Construct a new CallbackProxy. |
|
| Method Summary | |
|---|---|
WebView |
createWindow(boolean dialog,
boolean userGesture)
|
void |
doUpdateVisitedHistory(String url,
boolean isReload)
|
WebBackForwardList |
getBackForwardList()
Get the Back/Forward list to return to the user or to update the cached history list. |
int |
getProgress()
Return the latest progress. |
void |
handleMessage(Message msg)
Subclasses must implement this to receive messages. |
void |
onCloseWindow(WebView window)
|
boolean |
onDownloadStart(String url,
String userAgent,
String contentDisposition,
String mimetype,
long contentLength)
Starts a download if a download listener has been registered, otherwise return false. |
void |
onFormResubmission(Message dontResend,
Message resend)
|
void |
onJsAlert(String url,
String message)
|
boolean |
onJsBeforeUnload(String url,
String message)
|
boolean |
onJsConfirm(String url,
String message)
|
String |
onJsPrompt(String url,
String message,
String defaultValue)
|
void |
onLoadResource(String url)
|
void |
onPageFinished(String url)
|
void |
onPageStarted(String url,
Bitmap favicon)
|
void |
onProgressChanged(int newProgress)
|
void |
onReceivedCertificate(SslCertificate certificate)
|
void |
onReceivedError(int errorCode,
String description,
String failingUrl)
|
void |
onReceivedHttpAuthRequest(HttpAuthHandler handler,
String hostName,
String realmName)
|
void |
onReceivedIcon(Bitmap icon)
|
void |
onReceivedSslError(SslErrorHandler handler,
SslError error)
|
void |
onReceivedTitle(String title)
|
void |
onRequestFocus()
|
boolean |
onSavePassword(String host,
String username,
String password,
Message resumeMsg)
|
void |
onScaleChanged(float oldScale,
float newScale)
|
void |
onTooManyRedirects(Message cancelMsg,
Message continueMsg)
|
void |
onUnhandledKeyEvent(KeyEvent event)
|
void |
setDownloadListener(DownloadListener client)
Set the client DownloadListener. |
void |
setWebChromeClient(WebChromeClient client)
Set the WebChromeClient. |
void |
setWebViewClient(WebViewClient client)
Set the WebViewClient. |
boolean |
shouldOverrideUrlLoading(String url)
Called by the WebCore side |
(package private) void |
switchOutDrawHistory()
Called by WebCore side to switch out of history Picture drawing mode |
boolean |
uiOverrideKeyEvent(KeyEvent event)
Called by UI side. |
boolean |
uiOverrideUrlLoading(String overrideUrl)
Called by the UI side. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CallbackProxy(Context context,
WebView w)
| Method Detail |
|---|
public void setWebViewClient(WebViewClient client)
client - An implementation of WebViewClient.public void setWebChromeClient(WebChromeClient client)
client - An implementation of WebChromeClient.public void setDownloadListener(DownloadListener client)
client - An implementation of DownloadListener.public WebBackForwardList getBackForwardList()
public boolean uiOverrideUrlLoading(String overrideUrl)
public boolean uiOverrideKeyEvent(KeyEvent event)
public void handleMessage(Message msg)
Handler
handleMessage in class Handlerpublic int getProgress()
void switchOutDrawHistory()
public void onPageStarted(String url,
Bitmap favicon)
public void onPageFinished(String url)
public void onTooManyRedirects(Message cancelMsg,
Message continueMsg)
public void onReceivedError(int errorCode,
String description,
String failingUrl)
public void onFormResubmission(Message dontResend,
Message resend)
public boolean shouldOverrideUrlLoading(String url)
public void onReceivedHttpAuthRequest(HttpAuthHandler handler,
String hostName,
String realmName)
public void onReceivedSslError(SslErrorHandler handler,
SslError error)
public void onReceivedCertificate(SslCertificate certificate)
public void doUpdateVisitedHistory(String url,
boolean isReload)
public void onLoadResource(String url)
public void onUnhandledKeyEvent(KeyEvent event)
public void onScaleChanged(float oldScale,
float newScale)
public boolean onDownloadStart(String url,
String userAgent,
String contentDisposition,
String mimetype,
long contentLength)
public boolean onSavePassword(String host,
String username,
String password,
Message resumeMsg)
public void onProgressChanged(int newProgress)
public WebView createWindow(boolean dialog,
boolean userGesture)
public void onRequestFocus()
public void onCloseWindow(WebView window)
public void onReceivedIcon(Bitmap icon)
public void onReceivedTitle(String title)
public void onJsAlert(String url,
String message)
public boolean onJsConfirm(String url,
String message)
public String onJsPrompt(String url,
String message,
String defaultValue)
public boolean onJsBeforeUnload(String url,
String message)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||