WebInspectorClient.h [plain text]
#ifndef WebInspectorClient_h
#define WebInspectorClient_h
#if ENABLE(INSPECTOR)
#include "PageOverlay.h"
#include <WebCore/InspectorClient.h>
#include <WebCore/InspectorFrontendChannel.h>
namespace WebCore {
class GraphicsContext;
class IntRect;
}
namespace WebKit {
class WebPage;
class WebInspectorClient : public WebCore::InspectorClient, public WebCore::InspectorFrontendChannel, private PageOverlay::Client {
public:
WebInspectorClient(WebPage* page)
: m_page(page)
, m_highlightOverlay(0)
{
}
private:
virtual void inspectorDestroyed() OVERRIDE;
virtual InspectorFrontendChannel* openInspectorFrontend(WebCore::InspectorController*) OVERRIDE;
virtual void closeInspectorFrontend() OVERRIDE;
virtual void bringFrontendToFront() OVERRIDE;
virtual void didResizeMainFrame(WebCore::Frame*) OVERRIDE;
virtual void highlight() OVERRIDE;
virtual void hideHighlight() OVERRIDE;
virtual bool sendMessageToFrontend(const String&) OVERRIDE;
virtual bool supportsFrameInstrumentation();
virtual void pageOverlayDestroyed(PageOverlay*) OVERRIDE;
virtual void willMoveToWebPage(PageOverlay*, WebPage*) OVERRIDE;
virtual void didMoveToWebPage(PageOverlay*, WebPage*) OVERRIDE;
virtual void drawRect(PageOverlay*, WebCore::GraphicsContext&, const WebCore::IntRect&) OVERRIDE;
virtual bool mouseEvent(PageOverlay*, const WebMouseEvent&) OVERRIDE;
WebPage* m_page;
PageOverlay* m_highlightOverlay;
};
}
#endif // ENABLE(INSPECTOR)
#endif // WebInspectorClient_h