WebChromeClientIOS.h [plain text]
#if PLATFORM(IOS)
#import "WebChromeClient.h"
class WebChromeClientIOS final : public WebChromeClient {
public:
WebChromeClientIOS(WebView* webView)
: WebChromeClient(webView)
{
}
private:
void setWindowRect(const WebCore::FloatRect&) final;
WebCore::FloatRect windowRect() final;
void setStatusbarText(const WTF::String&) final { }
void focus() final;
void takeFocus(WebCore::FocusDirection) final { }
void runJavaScriptAlert(WebCore::Frame&, const WTF::String&) final;
bool runJavaScriptConfirm(WebCore::Frame&, const WTF::String&) final;
bool runJavaScriptPrompt(WebCore::Frame&, const WTF::String& message, const WTF::String& defaultValue, WTF::String& result) final;
void runOpenPanel(WebCore::Frame&, WebCore::FileChooser&) final;
#if ENABLE(TOUCH_EVENTS)
void didPreventDefaultForEvent() final;
#endif
void didReceiveMobileDocType(bool) final;
void setNeedsScrollNotifications(WebCore::Frame&, bool) final;
void observedContentChange(WebCore::Frame&) final;
void clearContentChangeObservers(WebCore::Frame&) final;
WebCore::FloatSize screenSize() const final;
WebCore::FloatSize availableScreenSize() const final;
WebCore::FloatSize overrideScreenSize() const final;
void dispatchDisabledAdaptationsDidChange(const OptionSet<WebCore::DisabledAdaptations>&) const final;
void dispatchViewportPropertiesDidChange(const WebCore::ViewportArguments&) const final;
void notifyRevealedSelectionByScrollingFrame(WebCore::Frame&) final;
bool isStopping() final;
void didLayout(LayoutType) final;
void didStartOverflowScroll() final;
void didEndOverflowScroll() final;
void suppressFormNotifications() final;
void restoreFormNotifications() final;
void elementDidFocus(WebCore::Element&) final;
void elementDidBlur(WebCore::Element&) final;
void attachRootGraphicsLayer(WebCore::Frame&, WebCore::GraphicsLayer*) final;
void didFlushCompositingLayers() final;
void updateViewportConstrainedLayers(HashMap<PlatformLayer*, std::unique_ptr<WebCore::ViewportConstraints>>&, HashMap<PlatformLayer*, PlatformLayer*>&) final;
bool fetchCustomFixedPositionLayoutRect(WebCore::IntRect&) final;
void addOrUpdateScrollingLayer(WebCore::Node*, PlatformLayer*, PlatformLayer*, const WebCore::IntSize&, bool allowHorizontalScrollbar, bool allowVerticalScrollbar) final;
void removeScrollingLayer(WebCore::Node*, PlatformLayer*, PlatformLayer*) final;
bool selectItemWritingDirectionIsNatural() final;
bool selectItemAlignmentFollowsMenuWritingDirection() final;
RefPtr<WebCore::PopupMenu> createPopupMenu(WebCore::PopupMenuClient&) const final;
RefPtr<WebCore::SearchPopupMenu> createSearchPopupMenu(WebCore::PopupMenuClient&) const final;
void webAppOrientationsUpdated() final;
void focusedElementChanged(WebCore::Element*) final;
void showPlaybackTargetPicker(bool hasVideo, WebCore::RouteSharingPolicy, const String&) final;
RefPtr<WebCore::Icon> createIconForFiles(const Vector<String>& filenames) final;
#if ENABLE(ORIENTATION_EVENTS)
int deviceOrientation() const final;
#endif
int m_formNotificationSuppressions { 0 };
};
#endif