ChromeClientWinCE.h [plain text]
#ifndef ChromeClientWinCE_h
#define ChromeClientWinCE_h
#include "ChromeClient.h"
class WebView;
namespace WebKit {
class ChromeClientWinCE : public WebCore::ChromeClient {
public:
ChromeClientWinCE(WebView* webView);
virtual void chromeDestroyed() override;
virtual void setWindowRect(const WebCore::FloatRect&) override;
virtual WebCore::FloatRect windowRect() override;
virtual WebCore::FloatRect pageRect() override;
virtual void focus() override;
virtual void unfocus() override;
virtual bool canTakeFocus(WebCore::FocusDirection) override;
virtual void takeFocus(WebCore::FocusDirection) override;
virtual void focusedElementChanged(WebCore::Element*) override;
virtual void focusedFrameChanged(WebCore::Frame*) override;
virtual WebCore::Page* createWindow(WebCore::Frame*, const WebCore::FrameLoadRequest&, const WebCore::WindowFeatures&, const WebCore::NavigationAction&) override;
virtual void show() override;
virtual bool canRunModal() override;
virtual void runModal() override;
virtual void setToolbarsVisible(bool) override;
virtual bool toolbarsVisible() override;
virtual void setStatusbarVisible(bool) override;
virtual bool statusbarVisible() override;
virtual void setScrollbarsVisible(bool) override;
virtual bool scrollbarsVisible() override;
virtual void setMenubarVisible(bool) override;
virtual bool menubarVisible() override;
virtual void setResizable(bool) override;
virtual void addMessageToConsole(JSC::MessageSource, JSC::MessageLevel, const WTF::String& message, unsigned lineNumber, unsigned columnNumber, const WTF::String& sourceID) override;
virtual bool canRunBeforeUnloadConfirmPanel() override;
virtual bool runBeforeUnloadConfirmPanel(const WTF::String& message, WebCore::Frame*) override;
virtual void closeWindowSoon() override;
virtual void runJavaScriptAlert(WebCore::Frame*, const WTF::String&) override;
virtual bool runJavaScriptConfirm(WebCore::Frame*, const WTF::String&) override;
virtual bool runJavaScriptPrompt(WebCore::Frame*, const WTF::String& message, const WTF::String& defaultValue, WTF::String& result) override;
virtual void setStatusbarText(const WTF::String&) override;
virtual bool shouldInterruptJavaScript() override;
virtual WebCore::KeyboardUIMode keyboardUIMode() override;
virtual WebCore::IntRect windowResizerRect() const override;
virtual void invalidateRootView(const WebCore::IntRect&) override;
virtual void invalidateContentsAndRootView(const WebCore::IntRect&) override;
virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&) override;
virtual void scroll(const WebCore::IntSize&, const WebCore::IntRect&, const WebCore::IntRect&) override;
virtual WebCore::IntPoint screenToRootView(const WebCore::IntPoint&) const override;
virtual WebCore::IntRect rootViewToScreen(const WebCore::IntRect&) const override;
virtual PlatformPageClient platformPageClient() const override;
virtual void contentsSizeChanged(WebCore::Frame*, const WebCore::IntSize&) const override;
virtual void scrollbarsModeDidChange() const override;
virtual void setCursor(const WebCore::Cursor&) override;
virtual void setCursorHiddenUntilMouseMoves(bool) override;
virtual void mouseDidMoveOverElement(const WebCore::HitTestResult&, unsigned modifierFlags) override;
virtual void setToolTip(const WTF::String&, WebCore::TextDirection) override;
virtual void print(WebCore::Frame*) override;
#if ENABLE(SQL_DATABASE)
virtual void exceededDatabaseQuota(WebCore::Frame*, const WTF::String& databaseName, WebCore::DatabaseDetails) override;
#endif
virtual void reachedMaxAppCacheSize(int64_t spaceNeeded) override;
virtual void reachedApplicationCacheOriginQuota(WebCore::SecurityOrigin*, int64_t totalSpaceNeeded) override;
virtual void runOpenPanel(WebCore::Frame*, PassRefPtr<WebCore::FileChooser>) override;
virtual void loadIconForFiles(const Vector<WTF::String>&, WebCore::FileIconLoader*) override;
virtual void attachRootGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer*) override;
virtual void setNeedsOneShotDrawingSynchronization() override;
virtual void scheduleCompositingLayerFlush() override;
virtual void setLastSetCursorToCurrentCursor() override;
virtual void AXStartFrameLoad() override;
virtual void AXFinishFrameLoad() override;
#if ENABLE(TOUCH_EVENTS)
virtual void needTouchEvents(bool) override;
#endif
virtual bool selectItemWritingDirectionIsNatural() override;
virtual bool selectItemAlignmentFollowsMenuWritingDirection() override;
virtual bool hasOpenedPopup() const override;
virtual PassRefPtr<WebCore::PopupMenu> createPopupMenu(WebCore::PopupMenuClient*) const override;
virtual PassRefPtr<WebCore::SearchPopupMenu> createSearchPopupMenu(WebCore::PopupMenuClient*) const override;
virtual void numWheelEventHandlersChanged(unsigned) override { }
private:
WebView* m_webView;
};
}
#endif // ChromeClientWinCE_h