public class

HTCWebCore

extends Object
java.lang.Object
   ↳ android.webkit.HTCWebCore

Summary

Nested Classes
interface HTCWebCore.OnWebViewTabEffectListener  
Public Constructors
HTCWebCore(WebViewCore webcore, WebView webview)
Public Methods
void drawContentPicture(Canvas canvas, int color, boolean animatingZoom, boolean animatingScroll)
CacheManager.CacheResult getCacheFile(String url)
String getCopiedStyleText()
Bitmap getNodeCapture(int pointer, int w, int h)
get partial capture of a node, capture will fit in given width/height.
boolean isSkipClipboardChang()
boolean isThisWebCoreBlocked()
boolean isWebCoreBlocked()
boolean isWebCoreBusy()
boolean nativeDumpHeap()
void nativeEnableGifAnimation(boolean enable)
int nativeFindNextTableNode(int pointer, boolean traverseNestedTables)
traversal next text node pointer from pointer
int nativeFindNextTableNode(int pointer)
int nativeFindNextTextNode(int pointer)
This method is deprecated. !!!DO NOT USE THIS FUNCTION DIRECTLY!!!
traversal next text node pointer from pointer
int nativeFindParagraphBound(int x, int y, boolean onlyTextNode, Rect r)
void nativeFindParagraphBoundByNode(int node, boolean onlyTextNode, Rect r)
int nativeFindTextBound(int x, int y, SelectionUnitInfo o, boolean isWordBased)
find selection info about one word include (x, y)
void nativeForceStopGifAnimation(boolean stop)
int nativeGetBodyNode(int pointer, Rect contentBound)
find BODY from pointer and set bound
boolean nativeGetCharRect(int pointer, int index, Rect r)
get rect bound index-th character in node-pointer
boolean nativeGetCursorPos(int pointer, int index, Rect r)
This method is deprecated. get left side position of index-th character in node-pointer
int nativeGetFontPixelSizeOfTextNode(int pointer)
This method is deprecated. !!!DO NOT USE THIS FUNCTION DIRECTLY!!!
get font size of text node in pixel
String nativeGetHREF(int nodePtr)
ArrayList<String[]> nativeGetImageAttr()
long nativeGetMaxCPUFreq()
Rect nativeGetNodeRect(int pointer, boolean absolute, int defaultTextWidth)
get node rect area from node pointer
ArrayList<String[]> nativeGetRssFeed()
get Rss Feed channels title and href
int nativeGetScopeNode(int node)
boolean nativeGetSurfaceViewBitmap(Surface s, Canvas c, Rect r)
String nativeGetTextBetween(int startNodePtr, int startIndx, int endNodePtr, int endNodeIndx)
copy text from start node, start index(include) to end node, end index(exclude)
boolean nativeHasRssFeed()
get if Rss Feed channels exists
boolean nativeIsDocumentParsing()
boolean nativeIsSupportGifAnimUISetting()
int nativeIsTextNode(int x, int y)
check whether node at x, y is an image or not
String nativeSaveImage(int x, int y, String path, boolean getExtension)
String nativeSelectParagraphText(int startNodePtr, int endNodePtr, Rect scope)
void nativeSetImageAttr(String width, String height, int pointer)
void nativeSetSkiaFontCacheSize(long lCacheSize_Byte)
int nativeSmartTouchUp(int x, int y)
void nativeTrimMemory()
boolean nativeisImageNode(int node)
boolean nativeisTextNode(int node)
void setCopiedStyleText(String text)
void setIgnorePictureAfterFirstLayout(boolean set)
void setSkipClipboardChang(boolean skip)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HTCWebCore (WebViewCore webcore, WebView webview)

Public Methods

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

public CacheManager.CacheResult getCacheFile (String url)

public String getCopiedStyleText ()

public Bitmap getNodeCapture (int pointer, int w, int h)

get partial capture of a node, capture will fit in given width/height.

Parameters
pointer node pointer
w desired bitmap width
h desired bitmap height
Returns
  • captured bitmap(w * h), null if something wrong

public boolean isSkipClipboardChang ()

public boolean isThisWebCoreBlocked ()

public boolean isWebCoreBlocked ()

public boolean isWebCoreBusy ()

public boolean nativeDumpHeap ()

Since: API Level

public void nativeEnableGifAnimation (boolean enable)

public int nativeFindNextTableNode (int pointer, boolean traverseNestedTables)

traversal next text node pointer from pointer

Parameters
pointer for start traversal, set 0 will traversal from root document
traverseNestedTables find nested tables
Returns
  • next text node, may be NULL

public int nativeFindNextTableNode (int pointer)

public int nativeFindNextTextNode (int pointer)

This method is deprecated.
!!!DO NOT USE THIS FUNCTION DIRECTLY!!!
traversal next text node pointer from pointer

Parameters
pointer for start traversal, set 0 will traversal from root document
Returns
  • next text node, may be NULL

public int nativeFindParagraphBound (int x, int y, boolean onlyTextNode, Rect r)

public void nativeFindParagraphBoundByNode (int node, boolean onlyTextNode, Rect r)

Parameters
node text node pointer
r set as empty first

public int nativeFindTextBound (int x, int y, SelectionUnitInfo o, boolean isWordBased)

find selection info about one word include (x, y)

Parameters
x x pos
y y pos
o store setectino info
Returns
  • node pointer

public void nativeForceStopGifAnimation (boolean stop)

public int nativeGetBodyNode (int pointer, Rect contentBound)

find BODY from pointer and set bound

Parameters
pointer start node pointer
contentBound will put content bound
Returns
  • body node pointer

public boolean nativeGetCharRect (int pointer, int index, Rect r)

get rect bound index-th character in node-pointer

Parameters
pointer node
r bound
Returns
  • true if character is found

public boolean nativeGetCursorPos (int pointer, int index, Rect r)

This method is deprecated.
get left side position of index-th character in node-pointer

Parameters
pointer node
r store cursor, width is zero
Returns
  • true if character is found

public int nativeGetFontPixelSizeOfTextNode (int pointer)

This method is deprecated.
!!!DO NOT USE THIS FUNCTION DIRECTLY!!!
get font size of text node in pixel

Parameters
pointer text node
Returns
  • font size, -1 means some thing wrong

public String nativeGetHREF (int nodePtr)

public ArrayList<String[]> nativeGetImageAttr ()

public long nativeGetMaxCPUFreq ()

public Rect nativeGetNodeRect (int pointer, boolean absolute, int defaultTextWidth)

get node rect area from node pointer

Parameters
pointer The pointer of node.
absolute Is calculate absolute or use special width in text and text input
defaultTextWidth is default text wrap width when hit a text node, ignore if absolute is true

public ArrayList<String[]> nativeGetRssFeed ()

get Rss Feed channels title and href

Returns
  • String[2] array of channels for title and href

public int nativeGetScopeNode (int node)

public boolean nativeGetSurfaceViewBitmap (Surface s, Canvas c, Rect r)

public String nativeGetTextBetween (int startNodePtr, int startIndx, int endNodePtr, int endNodeIndx)

copy text from start node, start index(include) to end node, end index(exclude)

Returns
  • may be null

public boolean nativeHasRssFeed ()

get if Rss Feed channels exists

Returns
  • true if exist at least one channel

public boolean nativeIsDocumentParsing ()

public boolean nativeIsSupportGifAnimUISetting ()

public int nativeIsTextNode (int x, int y)

check whether node at x, y is an image or not

Parameters
x content coordination.
y content coordination.

public String nativeSaveImage (int x, int y, String path, boolean getExtension)

public String nativeSelectParagraphText (int startNodePtr, int endNodePtr, Rect scope)

public void nativeSetImageAttr (String width, String height, int pointer)

public void nativeSetSkiaFontCacheSize (long lCacheSize_Byte)

public int nativeSmartTouchUp (int x, int y)

public void nativeTrimMemory ()

public boolean nativeisImageNode (int node)

public boolean nativeisTextNode (int node)

public void setCopiedStyleText (String text)

public void setIgnorePictureAfterFirstLayout (boolean set)

public void setSkipClipboardChang (boolean skip)