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 int numberOfPendingGeolocationPermissionRequests(BlackBerry::WebKit::WebPage*);
static void resetGeolocationMock(BlackBerry::WebKit::WebPage*);
static void setMockGeolocationPositionUnavailableError(BlackBerry::WebKit::WebPage*, const WTF::String message);
static void setMockGeolocationPermission(BlackBerry::WebKit::WebPage*, bool allowed);
static void setMockGeolocationPosition(BlackBerry::WebKit::WebPage*, double latitude, double longitude, double accuracy, bool providesAltitude, double altitude, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed);
static void setMockDeviceOrientation(BlackBerry::WebKit::WebPage*, bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma);
static void scalePageBy(BlackBerry::WebKit::WebPage*, float, float, float);
#if ENABLE(STYLE_SCOPED)
static void setStyleScopedEnabled(bool);
#endif
private:
static bool s_linksIncludedInTabChain;
};
#endif