InjectedBundlePageUIClient.h [plain text]
#ifndef InjectedBundlePageUIClient_h
#define InjectedBundlePageUIClient_h
#include "APIClient.h"
#include "WKBundlePage.h"
#include "WebEvent.h"
#include <WebCore/RenderSnapshottedPlugIn.h>
#include <wtf/Forward.h>
namespace WebCore {
class GraphicsContext;
class HitTestResult;
class IntRect;
}
namespace WebKit {
class APIObject;
class WebFrame;
class WebPage;
class WebSecurityOrigin;
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*);
void didReachApplicationCacheOriginQuota(WebPage*, WebSecurityOrigin*, int64_t totalBytesNeeded);
uint64_t didExceedDatabaseQuota(WebPage*, WebSecurityOrigin*, const String& databaseName, const String& databaseDisplayName, uint64_t currentQuotaBytes, uint64_t currentOriginUsageBytes, uint64_t currentDatabaseUsageBytes, uint64_t expectedUsageBytes);
String plugInStartLabelTitle(const String& mimeType) const;
String plugInStartLabelSubtitle(const String& mimeType) const;
String plugInExtraStyleSheet() const;
String plugInExtraScript() const;
};
}
#endif // InjectedBundlePageUIClient_h