java.lang.Object | |
↳ | android.webkit.WebChromeClient |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Notify the host application to close the given WebView and remove it
from the view system if necessary.
| |||||||||||
Request the host application to create a new Webview.
| |||||||||||
Tell the client to display a javascript alert dialog.
| |||||||||||
Tell the client to display a dialog to confirm navigation away from the
current page.
| |||||||||||
Tell the client to display a confirm dialog to the user.
| |||||||||||
Tell the client to display a prompt dialog to the user.
| |||||||||||
Tell the host application the current progress of loading a page.
| |||||||||||
Notify the host application of a new favicon for the current page.
| |||||||||||
Notify the host application of a change in the document title.
| |||||||||||
Request display and focus for this WebView.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Notify the host application to close the given WebView and remove it from the view system if necessary. At this point, WebCore has stopped any loading in this window and has removed any cross-scripting ability in javascript.
window | The WebView that needs to be closed. |
---|
Request the host application to create a new Webview. The host application should handle placement of the new WebView in the view system. The default behavior returns null.
view | The WebView that initiated the callback. |
---|---|
dialog | True if the new window is meant to be a small dialog window. |
userGesture | True if the request was initiated by a user gesture such as clicking a link. |
resultMsg | The message to send when done creating a new WebView. Set the new WebView through resultMsg.obj which is WebView.WebViewTransport() and then call resultMsg.sendToTarget(); |
Tell the client to display a javascript alert dialog. If the client returns true, WebView will assume that the client will handle the dialog. If the client returns false, it will continue execution.
view | The WebView that initiated the callback. |
---|---|
url | The url of the page requesting the dialog. |
message | Message to be displayed in the window. |
result | A JsResult to confirm that the user hit enter. |
Tell the client to display a dialog to confirm navigation away from the current page. This is the result of the onbeforeunload javascript event. If the client returns true, WebView will assume that the client will handle the confirm dialog and call the appropriate JsResult method. If the client returns false, a default value of true will be returned to javascript to accept navigation away from the current page. The default behavior is to return false. Setting the JsResult to true will navigate away from the current page, false will cancel the navigation.
view | The WebView that initiated the callback. |
---|---|
url | The url of the page requesting the dialog. |
message | Message to be displayed in the window. |
result | A JsResult used to send the user's response to javascript. |
Tell the client to display a confirm dialog to the user. If the client returns true, WebView will assume that the client will handle the confirm dialog and call the appropriate JsResult method. If the client returns false, a default value of false will be returned to javascript. The default behavior is to return false.
view | The WebView that initiated the callback. |
---|---|
url | The url of the page requesting the dialog. |
message | Message to be displayed in the window. |
result | A JsResult used to send the user's response to javascript. |
Tell the client to display a prompt dialog to the user. If the client returns true, WebView will assume that the client will handle the prompt dialog and call the appropriate JsPromptResult method. If the client returns false, a default value of false will be returned to to javascript. The default behavior is to return false.
view | The WebView that initiated the callback. |
---|---|
url | The url of the page requesting the dialog. |
message | Message to be displayed in the window. |
defaultValue | The default value displayed in the prompt dialog. |
result | A JsPromptResult used to send the user's reponse to javascript. |
Tell the host application the current progress of loading a page.
view | The WebView that initiated the callback. |
---|---|
newProgress | Current page loading progress, represented by an integer between 0 and 100. |
Notify the host application of a new favicon for the current page.
view | The WebView that initiated the callback. |
---|---|
icon | A Bitmap containing the favicon for the current page. |
Notify the host application of a change in the document title.
view | The WebView that initiated the callback. |
---|---|
title | A String containing the new title of the document. |
Request display and focus for this WebView. This may happen due to another WebView opening a link in this WebView and requesting that this WebView be displayed.
view | The WebView that needs to be focused. |
---|