|
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.BrowserFrame
class BrowserFrame
| Field Summary | |
|---|---|
(package private) static int |
FRAME_COMPLETED
|
(package private) static int |
FRAME_LOADTYPE_BACK
|
(package private) static int |
FRAME_LOADTYPE_FORWARD
|
(package private) static int |
FRAME_LOADTYPE_INDEXEDBACKFORWARD
|
(package private) static int |
FRAME_LOADTYPE_REDIRECT
|
(package private) static int |
FRAME_LOADTYPE_RELOAD
|
(package private) static int |
FRAME_LOADTYPE_RELOADALLOWINGSTALEDATA
|
(package private) static int |
FRAME_LOADTYPE_REPLACE
|
(package private) static int |
FRAME_LOADTYPE_SAME
|
(package private) static int |
FRAME_LOADTYPE_STANDARD
|
(package private) int |
mNativeFrame
|
(package private) static int |
POLICY_FUNCTION
|
(package private) static int |
POLICY_IGNORE
|
(package private) static int |
POLICY_USE
|
(package private) static JWebCoreJavaBridge |
sJavaBridge
|
| Constructor Summary | |
|---|---|
BrowserFrame(Context context,
WebViewCore w,
CallbackProxy proxy,
WebSettings settings)
Create a new BrowserFrame to be used in an application. |
|
| Method Summary | |
|---|---|
void |
addJavascriptInterface(Object obj,
String interfaceName)
|
boolean |
cacheDisabled()
|
(package private) void |
certificate(SslCertificate certificate)
We have received an SSL certificate for the main top-level page. |
void |
clearCache()
|
(package private) boolean |
committed()
|
(package private) String |
currentUrl()
|
void |
destroy()
Destroy all native components of the BrowserFrame. |
(package private) void |
didFirstLayout(String url)
|
void |
documentAsText(Message callback)
Retrieves the visual text of the current frame, puts it as the object for the message and sends the message. |
boolean |
documentHasImages()
Return true if the document has images. |
void |
externalRepresentation(Message callback)
Retrieves the render tree of this frame and puts it as the object for the message and sends the message. |
(package private) boolean |
firstLayoutDone()
|
(package private) CallbackProxy |
getCallbackProxy()
Get the CallbackProxy for sending messages to the UI thread. |
(package private) String |
getUserAgentString()
Returns the User Agent used by this frame |
void |
goBackOrForward(int steps)
Go back or forward the number of steps given. |
void |
handleMessage(Message msg)
Handle messages posted to us. |
boolean |
handleUrl(String url)
This method is called by WebCore to check whether application wants to hijack url loading |
void |
loadData(String baseUrl,
String data,
String mimeType,
String encoding,
String failUrl)
Load the content as if it was loaded by the provided base URL. |
(package private) int |
loadType()
|
void |
loadUrl(String url)
Load a url from the network or the filesystem into the main frame. |
void |
nativeDestroyFrame()
Destroy the native frame. |
void |
reload(boolean allowStale)
Reload the current main frame. |
void |
stopLoading()
Stop loading the current page. |
String |
stringByEvaluatingJavaScriptFromString(String script)
stringByEvaluatingJavaScriptFromString will execute the JS passed in in the context of this browser frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final int FRAME_COMPLETED
static final int POLICY_FUNCTION
static final int FRAME_LOADTYPE_STANDARD
static final int FRAME_LOADTYPE_BACK
static final int FRAME_LOADTYPE_FORWARD
static final int FRAME_LOADTYPE_INDEXEDBACKFORWARD
static final int FRAME_LOADTYPE_RELOAD
static final int FRAME_LOADTYPE_RELOADALLOWINGSTALEDATA
static final int FRAME_LOADTYPE_SAME
static final int FRAME_LOADTYPE_REDIRECT
static final int FRAME_LOADTYPE_REPLACE
int mNativeFrame
static JWebCoreJavaBridge sJavaBridge
static final int POLICY_USE
static final int POLICY_IGNORE
| Constructor Detail |
|---|
public BrowserFrame(Context context,
WebViewCore w,
CallbackProxy proxy,
WebSettings settings)
context - An application context to use when retrieving assets.w - A WebViewCore used as the view for this frame.proxy - A CallbackProxy for posting messages to the UI thread and
querying a client for information.settings - A WebSettings object that holds all settings.
XXX: Called by WebCore thread.| Method Detail |
|---|
public void loadUrl(String url)
url - The url to load.
public void loadData(String baseUrl,
String data,
String mimeType,
String encoding,
String failUrl)
baseUrl - Base URL used to resolve relative paths in the contentdata - Content to render in the browsermimeType - Mimetype of the data being passed inencoding - Character set encoding of the provided data.failUrl - URL to use if the content fails to load or null.boolean committed()
boolean firstLayoutDone()
int loadType()
String currentUrl()
void didFirstLayout(String url)
void certificate(SslCertificate certificate)
public void destroy()
public void handleMessage(Message msg)
handleMessage in class Handlermsg - The message to handle.public void externalRepresentation(Message callback)
callback - the message to use to send the render treepublic void documentAsText(Message callback)
callback - the message to use to send the visual textpublic boolean handleUrl(String url)
public void addJavascriptInterface(Object obj,
String interfaceName)
CallbackProxy getCallbackProxy()
String getUserAgentString()
public void nativeDestroyFrame()
public void reload(boolean allowStale)
public void goBackOrForward(int steps)
steps - A negative or positive number indicating the direction
and number of steps to move.public String stringByEvaluatingJavaScriptFromString(String script)
script - A javascript string to execute
public boolean cacheDisabled()
public void clearCache()
public void stopLoading()
public boolean documentHasImages()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||