InjectedBundlePageUIClient.h [plain text]
#ifndef InjectedBundlePageUIClient_h
#define InjectedBundlePageUIClient_h
#include "APIClient.h"
#include "WKBundlePage.h"
#include "WebEvent.h"
#include <wtf/Forward.h>
namespace WebCore {
class GraphicsContext;
class HitTestResult;
class IntRect;
}
namespace WebKit {
class APIObject;
class WebFrame;
class WebPage;
class InjectedBundlePageUIClient : public APIClient<WKBundlePageUIClient, kWKBundlePageUIClientCurrentVersion> {
public:
void willAddMessageToConsole(WebPage*, const String& message, int32_t lineNumber);
void willSetStatusbarText(WebPage*, const String&);
void willRunJavaScriptAlert(WebPage*, const String&, WebFrame*);
void willRunJavaScriptConfirm(WebPage*, const String&, WebFrame*);
void willRunJavaScriptPrompt(WebPage*, const String&, const String&, WebFrame*);
void mouseDidMoveOverElement(WebPage*, const WebCore::HitTestResult&, WebEvent::Modifiers, RefPtr<APIObject>& userData);
void pageDidScroll(WebPage*);
bool shouldPaintCustomOverhangArea();
void paintCustomOverhangArea(WebPage*, WebCore::GraphicsContext*, const WebCore::IntRect&, const WebCore::IntRect&, const WebCore::IntRect&);
String shouldGenerateFileForUpload(WebPage*, const String& originalFilePath);
String generateFileForUpload(WebPage*, const String& originalFilePath);
bool shouldRubberBandInDirection(WebPage*, WKScrollDirection) const;
WKBundlePageUIElementVisibility statusBarIsVisible(WebPage*);
WKBundlePageUIElementVisibility menuBarIsVisible(WebPage*);
WKBundlePageUIElementVisibility toolbarsAreVisible(WebPage*);
};
}
#endif // InjectedBundlePageUIClient_h