InspectorClientGtk.h [plain text]
#ifndef InspectorClientGtk_h
#define InspectorClientGtk_h
#include "GOwnPtr.h"
#include "InspectorClient.h"
#include "InspectorFrontendClientLocal.h"
#include "webkitwebview.h"
#include "webkitwebinspector.h"
#include <wtf/Forward.h>
namespace WebCore {
class Node;
class Page;
}
namespace WebKit {
class InspectorFrontendClient;
class InspectorClient : public WebCore::InspectorClient {
public:
InspectorClient(WebKitWebView* webView);
~InspectorClient();
void disconnectFrontendClient() { m_frontendClient = 0; }
virtual void inspectorDestroyed();
virtual void openInspectorFrontend(WebCore::InspectorController*);
virtual void highlight(WebCore::Node*);
virtual void hideHighlight();
virtual bool sendMessageToFrontend(const WTF::String&);
void releaseFrontendPage();
const char* inspectorFilesPath();
private:
WebKitWebView* m_inspectedWebView;
WebCore::Page* m_frontendPage;
InspectorFrontendClient* m_frontendClient;
GOwnPtr<gchar> m_inspectorFilesPath;
};
class InspectorFrontendClient : public WebCore::InspectorFrontendClientLocal {
public:
InspectorFrontendClient(WebKitWebView* inspectedWebView, WebKitWebView* inspectorWebView, WebKitWebInspector* webInspector, WebCore::Page* inspectorPage, InspectorClient* inspectorClient);
void disconnectInspectorClient() { m_inspectorClient = 0; }
void destroyInspectorWindow(bool notifyInspectorController);
virtual WTF::String localizedStringsURL();
virtual WTF::String hiddenPanels();
virtual void bringToFront();
virtual void closeWindow();
virtual void disconnectFromBackend();
virtual void attachWindow();
virtual void detachWindow();
virtual void setAttachedWindowHeight(unsigned height);
virtual void inspectedURLChanged(const WTF::String& newURL);
private:
virtual ~InspectorFrontendClient();
WebKitWebView* m_inspectorWebView;
WebKitWebView* m_inspectedWebView;
WebKitWebInspector* m_webInspector;
InspectorClient* m_inspectorClient;
};
}
#endif