Build 1.0_r1(from source)

android.webkit
Class WebViewCore

java.lang.Object
  extended by android.webkit.WebViewCore

final class WebViewCore
extends Object


Nested Class Summary
(package private)  class WebViewCore.EventHub
           
(package private) static class WebViewCore.FocusData
           
(package private) static class WebViewCore.TouchUpData
           
 
Field Summary
(package private) static boolean DEBUG
           
(package private) static boolean LOGV_ENABLED
           
(package private)  boolean mEndScaleZoom
           
(package private)  DrawFilter mScrollFilter
           
(package private)  DrawFilter mZoomFilter
           
(package private) static int SCROLL_BITS
           
(package private) static String THREAD_NAME
           
(package private) static int ZOOM_BITS
           
 
Constructor Summary
WebViewCore(Context context, WebView w, CallbackProxy proxy)
           
 
Method Summary
(package private)  void clearContentPicture()
           
(package private)  void contentInvalidate()
           
(package private)  Picture copyContentPicture()
           
(package private)  void destroy()
          Removes pending messages and trigger a DESTROY message to send to WebCore.
(package private)  void drawContentPicture(Canvas canvas, int color, boolean animatingZoom, boolean animatingScroll)
           
(package private) static void endCacheTransaction()
           
(package private)  BrowserFrame getBrowserFrame()
           
 WebSettings getSettings()
           
(package private)  WebView getWebView()
           
(package private)  void initializeSubwindow()
           
protected  void jsAlert(String url, String message)
          Invoke a javascript alert.
protected  boolean jsConfirm(String url, String message)
          Invoke a javascript confirm dialog.
protected  String jsPrompt(String url, String message, String defaultValue)
          Invoke a javascript prompt dialog.
protected  boolean jsUnload(String url, String message)
          Invoke a javascript before unload dialog.
(package private) static String nativeFindAddress(String addr)
           
static void pauseTimers()
          Causes all timers to pause.
(package private) static void pauseUpdate(WebViewCore core)
           
(package private)  void removeMessages()
           
(package private)  void removeMessages(int what)
           
static void resumeTimers()
          Resume all timers.
(package private) static void resumeUpdate(WebViewCore core)
           
(package private)  void sendMessage(int what)
           
(package private)  void sendMessage(int what, int arg1)
           
(package private)  void sendMessage(int what, int arg1, int arg2)
           
(package private)  void sendMessage(int what, int arg1, int arg2, Object obj)
           
(package private)  void sendMessage(int what, int arg1, Object obj)
           
(package private)  void sendMessage(int what, Object obj)
           
(package private)  void sendMessage(Message msg)
           
(package private)  void sendMessageDelayed(int what, Object obj, long delay)
           
(package private) static void startCacheTransaction()
           
 void stopLoading()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

static final boolean DEBUG
See Also:
Constant Field Values

LOGV_ENABLED

static final boolean LOGV_ENABLED
See Also:
Constant Field Values

THREAD_NAME

static final String THREAD_NAME
See Also:
Constant Field Values

mEndScaleZoom

boolean mEndScaleZoom

ZOOM_BITS

static final int ZOOM_BITS
See Also:
Constant Field Values

SCROLL_BITS

static final int SCROLL_BITS
See Also:
Constant Field Values

mZoomFilter

final DrawFilter mZoomFilter

mScrollFilter

final DrawFilter mScrollFilter
Constructor Detail

WebViewCore

public WebViewCore(Context context,
                   WebView w,
                   CallbackProxy proxy)
Method Detail

initializeSubwindow

void initializeSubwindow()

getBrowserFrame

BrowserFrame getBrowserFrame()

pauseTimers

public static void pauseTimers()
Causes all timers to pause. This applies to all WebViews in the current app process.


resumeTimers

public static void resumeTimers()
Resume all timers. This applies to all WebViews in the current process.


getSettings

public WebSettings getSettings()

jsAlert

protected void jsAlert(String url,
                       String message)
Invoke a javascript alert.

Parameters:
message - The message displayed in the alert.

jsConfirm

protected boolean jsConfirm(String url,
                            String message)
Invoke a javascript confirm dialog.

Parameters:
message - The message displayed in the dialog.
Returns:
True if the user confirmed or false if the user cancelled.

jsPrompt

protected String jsPrompt(String url,
                          String message,
                          String defaultValue)
Invoke a javascript prompt dialog.

Parameters:
message - The message to be displayed in the dialog.
defaultValue - The default value in the prompt input.
Returns:
The input from the user or null to indicate the user cancelled the dialog.

jsUnload

protected boolean jsUnload(String url,
                           String message)
Invoke a javascript before unload dialog.

Parameters:
url - The url that is requesting the dialog.
message - The message displayed in the dialog.
Returns:
True if the user confirmed or false if the user cancelled. False will cancel the navigation.

nativeFindAddress

static String nativeFindAddress(String addr)

stopLoading

public void stopLoading()

sendMessage

void sendMessage(Message msg)

sendMessage

void sendMessage(int what)

sendMessage

void sendMessage(int what,
                 Object obj)

sendMessage

void sendMessage(int what,
                 int arg1)

sendMessage

void sendMessage(int what,
                 int arg1,
                 int arg2)

sendMessage

void sendMessage(int what,
                 int arg1,
                 Object obj)

sendMessage

void sendMessage(int what,
                 int arg1,
                 int arg2,
                 Object obj)

sendMessageDelayed

void sendMessageDelayed(int what,
                        Object obj,
                        long delay)

removeMessages

void removeMessages(int what)

removeMessages

void removeMessages()

destroy

void destroy()
Removes pending messages and trigger a DESTROY message to send to WebCore. Called from UI thread.


drawContentPicture

void drawContentPicture(Canvas canvas,
                        int color,
                        boolean animatingZoom,
                        boolean animatingScroll)

clearContentPicture

void clearContentPicture()

copyContentPicture

Picture copyContentPicture()

pauseUpdate

static void pauseUpdate(WebViewCore core)

resumeUpdate

static void resumeUpdate(WebViewCore core)

startCacheTransaction

static void startCacheTransaction()

endCacheTransaction

static void endCacheTransaction()

contentInvalidate

void contentInvalidate()

getWebView

WebView getWebView()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature