Top Inners Fields Constructors Methods
com.sun.javafx.webkit.drt

public final Class DumpRenderTree

extends Object
Class Inheritance
Imports
com.sun.javafx.application.PlatformImpl, com.sun.javafx.logging.PlatformLogger, .PlatformLogger.Level, com.sun.webkit.*, com.sun.webkit.graphics.*, java.io.BufferedReader, .BufferedWriter, .File, .InputStreamReader, .OutputStreamWriter, .PrintWriter, .UnsupportedEncodingException, java.net.MalformedURLException, .URL, java.nio.ByteBuffer, java.util.Date, .Map, .List, .Timer, .TimerTask, java.util.concurrent.CountDownLatch, javafx.scene.web.WebEngine

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
private class

Field Summary

Modifier and TypeField and Description
private BackForwardList
private boolean
private static final String
private static final int
pack-priv static volatile DumpRenderTree
private EventSender
private static final String
private static boolean
private static final String
private CountDownLatch
private boolean
private static final PlatformLogger
pack-priv static final PrintWriter
private static final long
private static final int
private static final String
private String
private Timer
private final UIClientImpl
private boolean
private final WebPage

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
pack-priv boolean
private static native void
didClearWindowObject(long pContext, long pWindowObject, EventSender eventSender)

private static native boolean
private static native void
private synchronized void
done()

private synchronized void
dump(long frame)

private static native boolean
private static native boolean
private void
private void
dumpBflItem(BackForwardList.Entry item, int indent, boolean isCurrent)

private static native boolean
private synchronized StringBuilder
dumpFramesAsText(long frame)

pack-priv void
dumpUnloadListeners(WebPage page, long frame)

private static int
private BackForwardList
private static String
getFrameDescription(WebPage page, long frame)

private String
getTestPath(String testString)

protected String
private static String
private static int
private static void
goBackForward(int dist)

private static native void
private static void
private static native void
initTest(String testPath, String pixelsHash)

private static void
public static void
main(final String[] args)

private static void
mlog(String msg)

private static void
protected static native String[]
private static void
private void
reset(final TestOptions options)

private void
private static String
resolveURL(String relativeURL)

private void
run(final String testString, final CountDownLatch latch)

private void
runTest(final String testString)

private synchronized void
setLoaded(boolean loaded)

private synchronized void
setWaiting(boolean waiting)

protected static native boolean
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bflback to summary
private BackForwardList bfl
completeback to summary
private boolean complete
CUR_ITEM_STRback to summary
private static final String CUR_ITEM_STR
CUR_ITEM_STR_LENback to summary
private static final int CUR_ITEM_STR_LEN
drtback to summary
pack-priv static volatile DumpRenderTree drt
eventSenderback to summary
private EventSender eventSender
fileSepback to summary
private static final String fileSep
forceDumpAsTextback to summary
private static boolean forceDumpAsText
INDENTback to summary
private static final String INDENT
latchback to summary
private CountDownLatch latch
loadedback to summary
private boolean loaded
logback to summary
private static final PlatformLogger log
outback to summary
pack-priv static final PrintWriter out
PIDback to summary
private static final long PID
TEST_DIR_LENback to summary
private static final int TEST_DIR_LEN
TEST_DIR_NAMEback to summary
private static final String TEST_DIR_NAME
testPathback to summary
private String testPath
timerback to summary
private Timer timer
uiClientback to summary
private final UIClientImpl uiClient
waitingback to summary
private boolean waiting
webPageback to summary
private final WebPage webPage

Constructor Detail

DumpRenderTreeback to summary
private DumpRenderTree()

Method Detail

clearBackForwardListback to summary
private static void clearBackForwardList()
completeback to summary
pack-priv boolean complete()
didClearWindowObjectback to summary
private static native void didClearWindowObject(long pContext, long pWindowObject, EventSender eventSender)
didFinishLoadback to summary
private static native boolean didFinishLoad()
disposeback to summary
private static native void dispose()
doneback to summary
private synchronized void done()
dumpback to summary
private synchronized void dump(long frame)
dumpAsTextback to summary
private static native boolean dumpAsText()
dumpBackForwardListback to summary
private static native boolean dumpBackForwardList()
dumpBflback to summary
private void dumpBfl()
dumpBflItemback to summary
private void dumpBflItem(BackForwardList.Entry item, int indent, boolean isCurrent)
dumpChildFramesAsTextback to summary
private static native boolean dumpChildFramesAsText()
dumpFramesAsTextback to summary
private synchronized StringBuilder dumpFramesAsText(long frame)
dumpUnloadListenersback to summary
pack-priv void dumpUnloadListeners(WebPage page, long frame)
getBackForwardItemCountback to summary
private static int getBackForwardItemCount()
getBackForwardListback to summary
private BackForwardList getBackForwardList()
getFrameDescriptionback to summary
private static String getFrameDescription(WebPage page, long frame)
getTestPathback to summary
private String getTestPath(String testString)
getTestURLback to summary
protected String getTestURL()
getUnloadListenersDescriptionback to summary
private static String getUnloadListenersDescription(WebPage page, long frame)
getWorkerThreadCountback to summary
private static int getWorkerThreadCount()
goBackForwardback to summary
private static void goBackForward(int dist)
initDRTback to summary
private static native void initDRT()
initPlatformback to summary
private static void initPlatform() throws Exception
initTestback to summary
private static native void initTest(String testPath, String pixelsHash)
loadURLback to summary
private static void loadURL(String url)
mainback to summary
public static void main(final String[] args) throws Exception
mlogback to summary
private static void mlog(String msg)
notifyDoneback to summary
private static void notifyDone()
openPanelFilesback to summary
protected static native String[] openPanelFiles()
overridePreferenceback to summary
private static void overridePreference(String key, String value)
resetback to summary
private void reset(final TestOptions options)
resetToConsistentStateBeforeTestingback to summary
private void resetToConsistentStateBeforeTesting(final TestOptions options)
resolveURLback to summary
private static String resolveURL(String relativeURL)
runback to summary
private void run(final String testString, final CountDownLatch latch)
runTestback to summary
private void runTest(final String testString) throws Exception
setLoadedback to summary
private synchronized void setLoaded(boolean loaded)
setWaitingback to summary
private synchronized void setWaiting(boolean waiting)
shouldStayOnPageAfterHandlingBeforeUnloadback to summary
protected static native boolean shouldStayOnPageAfterHandlingBeforeUnload()
waitUntilDoneback to summary
private static void waitUntilDone()
com.sun.javafx.webkit.drt back to summary

private final Class DumpRenderTree.DRTLoadListener

extends Object
implements LoadListenerClient
Class Inheritance
All Implemented Interfaces
com.sun.webkit.LoadListenerClient

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
dispatchLoadEvent(long frame, int state, String url, String contentType, double progress, int errorCode)

Implements com.sun.webkit.LoadListenerClient.dispatchLoadEvent.

public void
dispatchResourceLoadEvent(long frame, int state, String url, String contentType, double progress, int errorCode)

Implements com.sun.webkit.LoadListenerClient.dispatchResourceLoadEvent.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DRTLoadListenerback to summary
private DRTLoadListener()

Method Detail

dispatchLoadEventback to summary
public void dispatchLoadEvent(long frame, int state, String url, String contentType, double progress, int errorCode)

Implements com.sun.webkit.LoadListenerClient.dispatchLoadEvent.

Annotations
@Override
dispatchResourceLoadEventback to summary
public void dispatchResourceLoadEvent(long frame, int state, String url, String contentType, double progress, int errorCode)

Implements com.sun.webkit.LoadListenerClient.dispatchResourceLoadEvent.

Annotations
@Override
com.sun.javafx.webkit.drt back to summary

pack-priv Class DumpRenderTree.RenderThemeStub

extends RenderTheme
Class Inheritance

Field Summary

Inherited from com.sun.webkit.graphics.RenderTheme:
BACKGROUNDBUTTONCHECK_BOXCHECKEDENABLEDFOCUSEDFOREGROUNDHOVEREDINDETERMINATEMENU_LISTMENU_LIST_BUTTONMETERPRESSEDPROGRESS_BARRADIO_BUTTONREAD_ONLYSLIDERTEXT_FIELD

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Ref
createWidget(long id, int widgetIndex, int state, int w, int h, int bgColor, ByteBuffer extParams)

Implements abstract com.sun.webkit.graphics.RenderTheme.createWidget.

public void
protected int
protected int
public WCSize

Constructor Detail

RenderThemeStubback to summary
pack-priv RenderThemeStub()

Method Detail

createWidgetback to summary
protected Ref createWidget(long id, int widgetIndex, int state, int w, int h, int bgColor, ByteBuffer extParams)

Implements abstract com.sun.webkit.graphics.RenderTheme.createWidget.

Annotations
@Override
drawWidgetback to summary
public void drawWidget(WCGraphicsContext g, Ref widget, int x, int y)

Implements abstract com.sun.webkit.graphics.RenderTheme.drawWidget.

Annotations
@Override
getRadioButtonSizeback to summary
protected int getRadioButtonSize()

Implements abstract com.sun.webkit.graphics.RenderTheme.getRadioButtonSize.

Annotations
@Override
getSelectionColorback to summary
protected int getSelectionColor(int index)

Implements abstract com.sun.webkit.graphics.RenderTheme.getSelectionColor.

Annotations
@Override
getWidgetSizeback to summary
public WCSize getWidgetSize(Ref widget)

Implements abstract com.sun.webkit.graphics.RenderTheme.getWidgetSize.

Annotations
@Override
com.sun.javafx.webkit.drt back to summary

pack-priv Class DumpRenderTree.RenderUpdateHelper

extends TimerTask
Class Inheritance

Field Summary

Modifier and TypeField and Description
private WebPage

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements abstract java.util.TimerTask.run.

Implements java.lang.Runnable.run.

The action to be performed by this timer task.

Inherited from java.util.TimerTask:
cancelscheduledExecutionTime

Field Detail

webPageback to summary
private WebPage webPage

Constructor Detail

RenderUpdateHelperback to summary
public RenderUpdateHelper(WebPage webPage)

Method Detail

runback to summary
public void run()

Implements abstract java.util.TimerTask.run.

Implements java.lang.Runnable.run.

Doc from java.util.TimerTask.run.

The action to be performed by this timer task.

Annotations
@Override
com.sun.javafx.webkit.drt back to summary

pack-priv Class DumpRenderTree.ScrollBarThemeStub

extends ScrollBarTheme
Class Inheritance

Field Summary

Inherited from com.sun.webkit.graphics.ScrollBarTheme:
BACK_BUTTON_END_PARTBACK_BUTTON_START_PARTBACK_TRACK_PARTFORWARD_BUTTON_END_PARTFORWARD_BUTTON_START_PARTFORWARD_TRACK_PARTHORIZONTAL_SCROLLBARNO_PARTSCROLLBAR_BG_PARTTHUMB_PARTTRACK_BG_PARTVERTICAL_SCROLLBAR

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Ref
createWidget(long id, int w, int h, int orientation, int value, int visibleSize, int totalSize)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.createWidget.

protected void
getScrollBarPartRect(long id, int part, int[] rect)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.getScrollBarPartRect.

public WCSize
public void
paint(WCGraphicsContext g, Ref sbRef, int x, int y, int pressedPart, int hoveredPart)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.paint.

Inherited from com.sun.webkit.graphics.ScrollBarTheme:
getThicknesssetThickness

Constructor Detail

ScrollBarThemeStubback to summary
pack-priv ScrollBarThemeStub()

Method Detail

createWidgetback to summary
protected Ref createWidget(long id, int w, int h, int orientation, int value, int visibleSize, int totalSize)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.createWidget.

Annotations
@Override
getScrollBarPartRectback to summary
protected void getScrollBarPartRect(long id, int part, int[] rect)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.getScrollBarPartRect.

Annotations
@Override
getWidgetSizeback to summary
public WCSize getWidgetSize(Ref widget)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.getWidgetSize.

Annotations
@Override
paintback to summary
public void paint(WCGraphicsContext g, Ref sbRef, int x, int y, int pressedPart, int hoveredPart)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.paint.

Annotations
@Override
com.sun.javafx.webkit.drt back to summary

pack-priv Class DumpRenderTree.ThemeClientImplStub

extends ThemeClient
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected RenderTheme
protected ScrollBarTheme
Inherited from com.sun.webkit.ThemeClient:
getDefaultRenderThemesetDefaultRenderTheme

Constructor Detail

ThemeClientImplStubback to summary
pack-priv ThemeClientImplStub()

Method Detail

createRenderThemeback to summary
protected RenderTheme createRenderTheme()

Implements abstract com.sun.webkit.ThemeClient.createRenderTheme.

Annotations
@Override
createScrollBarThemeback to summary
protected ScrollBarTheme createScrollBarTheme()

Implements abstract com.sun.webkit.ThemeClient.createScrollBarTheme.

Annotations
@Override
com.sun.javafx.webkit.drt back to summary

private final Class DumpRenderTree.WebPageClientImpl

extends Object
implements WebPageClient<Void>
Class Inheritance
All Implemented Interfaces
com.sun.webkit.WebPageClient

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public WCPageBackBuffer
public void
didClearWindowObject(long context, long windowObject)

Implements com.sun.webkit.WebPageClient.didClearWindowObject.

public Void
public WCRectangle
public int
public boolean
public WCPoint
public void
public void
public void
public void
public WCPoint
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WebPageClientImplback to summary
private WebPageClientImpl()

Method Detail

addMessageToConsoleback to summary
public void addMessageToConsole(String message, int lineNumber, String sourceId)

Implements com.sun.webkit.WebPageClient.addMessageToConsole.

Annotations
@Override
createBackBufferback to summary
public WCPageBackBuffer createBackBuffer()

Implements com.sun.webkit.WebPageClient.createBackBuffer.

Annotations
@Override
didClearWindowObjectback to summary
public void didClearWindowObject(long context, long windowObject)

Implements com.sun.webkit.WebPageClient.didClearWindowObject.

Annotations
@Override
getContainerback to summary
public Void getContainer()

Implements com.sun.webkit.WebPageClient.getContainer.

Returns:Void

Doc from com.sun.webkit.WebPageClient.getContainer.

the UI container which represents a web component in the implementing platform

Annotations
@Override
getScreenBoundsback to summary
public WCRectangle getScreenBounds(boolean available)

Implements com.sun.webkit.WebPageClient.getScreenBounds.

Annotations
@Override
getScreenDepthback to summary
public int getScreenDepth()

Implements com.sun.webkit.WebPageClient.getScreenDepth.

Annotations
@Override
isBackBufferSupportedback to summary
public boolean isBackBufferSupported()

Implements com.sun.webkit.WebPageClient.isBackBufferSupported.

Annotations
@Override
screenToWindowback to summary
public WCPoint screenToWindow(WCPoint ptScreen)

Implements com.sun.webkit.WebPageClient.screenToWindow.

Annotations
@Override
setCursorback to summary
public void setCursor(long cursorID)

Implements com.sun.webkit.WebPageClient.setCursor.

Annotations
@Override
setFocusback to summary
public void setFocus(boolean focus)

Implements com.sun.webkit.WebPageClient.setFocus.

Annotations
@Override
setTooltipback to summary
public void setTooltip(String tooltip)

Implements com.sun.webkit.WebPageClient.setTooltip.

Annotations
@Override
transferFocusback to summary
public void transferFocus(boolean forward)

Implements com.sun.webkit.WebPageClient.transferFocus.

Annotations
@Override
windowToScreenback to summary
public WCPoint windowToScreen(WCPoint ptWindow)

Implements com.sun.webkit.WebPageClient.windowToScreen.

Annotations
@Override