#ifndef InspectorClientImpl_h
#define InspectorClientImpl_h
#include "core/inspector/InspectorClient.h"
#include "core/inspector/InspectorController.h"
#include "core/inspector/InspectorFrontendChannel.h"
#include "wtf/OwnPtr.h"
namespace blink {
class WebDevToolsAgentClient;
class WebDevToolsAgentImpl;
class WebViewImpl;
class InspectorClientImpl FINAL : public WebCore::InspectorClient, public WebCore::InspectorFrontendChannel {
public:
explicit InspectorClientImpl(WebViewImpl*);
virtual ~InspectorClientImpl();
virtual void highlight() OVERRIDE;
virtual void hideHighlight() OVERRIDE;
virtual void sendMessageToFrontend(PassRefPtr<WebCore::JSONObject>) OVERRIDE;
virtual void flush() OVERRIDE;
virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE;
virtual void clearBrowserCache() OVERRIDE;
virtual void clearBrowserCookies() OVERRIDE;
virtual void overrideDeviceMetrics(int, int, float, bool, bool) OVERRIDE;
virtual bool overridesShowPaintRects() OVERRIDE;
virtual void setShowPaintRects(bool) OVERRIDE;
virtual void setShowDebugBorders(bool) OVERRIDE;
virtual void setShowFPSCounter(bool) OVERRIDE;
virtual void setContinuousPaintingEnabled(bool) OVERRIDE;
virtual void setShowScrollBottleneckRects(bool) OVERRIDE;
virtual void requestPageScaleFactor(float scale, const WebCore::IntPoint& origin) OVERRIDE;
virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE;
virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t>&) OVERRIDE;
virtual void dispatchKeyEvent(const WebCore::PlatformKeyboardEvent&) OVERRIDE;
virtual void dispatchMouseEvent(const WebCore::PlatformMouseEvent&) OVERRIDE;
virtual void setTraceEventCallback(const String& categoryFilter, TraceEventCallback) OVERRIDE;
virtual void resetTraceEventCallback() OVERRIDE;
virtual void startGPUEventsRecording() OVERRIDE;
virtual void stopGPUEventsRecording() OVERRIDE;
private:
WebDevToolsAgentImpl* devToolsAgent();
WebViewImpl* m_inspectedWebView;
};
}
#endif