DumpRenderTreeSupport.h [plain text]
#ifndef DumpRenderTreeSupport_h
#define DumpRenderTreeSupport_h
#include <JavaScriptCore/JSObjectRef.h>
namespace BlackBerry {
namespace WebKit {
class WebPage;
}
}
namespace WebCore {
class Frame;
class Page;
}
namespace WTF {
class String;
}
class DumpRenderTreeSupport {
public:
DumpRenderTreeSupport();
~DumpRenderTreeSupport();
static WebCore::Page* corePage(BlackBerry::WebKit::WebPage*);
static void setLinksIncludedInFocusChain(bool);
static bool linksIncludedInFocusChain();
static int javaScriptObjectsCount();
static void garbageCollectorCollect();
static void garbageCollectorCollectOnAlternateThread(bool waitUntilDone);
static void dumpConfigurationForViewport(WebCore::Frame* mainFrame, int deviceDPI, int deviceWidth, int deviceHeight, int availableWidth, int availableHeight);
static int numberOfPendingGeolocationPermissionRequests(BlackBerry::WebKit::WebPage*);
static void resetGeolocationMock(BlackBerry::WebKit::WebPage*);
static void setMockGeolocationError(BlackBerry::WebKit::WebPage*, int errorCode, const WTF::String message);
static void setMockGeolocationPermission(BlackBerry::WebKit::WebPage*, bool allowed);
static void setMockGeolocationPosition(BlackBerry::WebKit::WebPage*, double latitude, double longitude, double accuracy);
static void scalePageBy(BlackBerry::WebKit::WebPage*, float, float, float);
static JSValueRef computedStyleIncludingVisitedInfo(JSContextRef, JSValueRef);
private:
static bool s_linksIncludedInTabChain;
};
#endif