#ifndef WebInspector_h
#define WebInspector_h
#include "WebKit.h"
#include <wtf/Noncopyable.h>
class WebInspectorClient;
class WebInspectorFrontendClient;
class WebView;
class WebInspector : public IWebInspector, public IWebInspectorPrivate {
WTF_MAKE_NONCOPYABLE(WebInspector);
public:
static WebInspector* createInstance(WebView*, WebInspectorClient*);
void webViewClosed();
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID, void** ppvObject);
virtual ULONG STDMETHODCALLTYPE AddRef();
virtual ULONG STDMETHODCALLTYPE Release();
virtual HRESULT STDMETHODCALLTYPE show();
virtual HRESULT STDMETHODCALLTYPE showConsole();
virtual HRESULT STDMETHODCALLTYPE unused1();
virtual HRESULT STDMETHODCALLTYPE close();
virtual HRESULT STDMETHODCALLTYPE attach();
virtual HRESULT STDMETHODCALLTYPE detach();
virtual HRESULT STDMETHODCALLTYPE isDebuggingJavaScript(BOOL* isDebugging);
virtual HRESULT STDMETHODCALLTYPE toggleDebuggingJavaScript();
virtual HRESULT STDMETHODCALLTYPE isProfilingJavaScript(BOOL* isProfiling);
virtual HRESULT STDMETHODCALLTYPE toggleProfilingJavaScript();
virtual HRESULT STDMETHODCALLTYPE isJavaScriptProfilingEnabled(BOOL* isProfilingEnabled);
virtual HRESULT STDMETHODCALLTYPE setJavaScriptProfilingEnabled(BOOL);
virtual HRESULT STDMETHODCALLTYPE evaluateInFrontend(BSTR script);
virtual HRESULT STDMETHODCALLTYPE isTimelineProfilingEnabled(BOOL* isEnabled);
virtual HRESULT STDMETHODCALLTYPE setTimelineProfilingEnabled(BOOL);
private:
WebInspector(WebView*, WebInspectorClient*);
~WebInspector();
WebInspectorFrontendClient* frontendClient();
ULONG m_refCount;
WebView* m_webView;
WebInspectorClient* m_inspectorClient;
};
#endif // !defined(WebInspector_h)