WebInspectorClientGtk.cpp [plain text]
#include "config.h"
#include "WebInspectorClientGtk.h"
#include "WKAPICast.h"
#include "WebInspectorProxy.h"
#include <wtf/text/WTFString.h>
namespace WebKit {
bool WebInspectorClientGtk::openWindow(WebInspectorProxy* inspector)
{
if (!m_client.openWindow)
return false;
return m_client.openWindow(toAPI(inspector), m_client.base.clientInfo);
}
void WebInspectorClientGtk::didClose(WebInspectorProxy* inspector)
{
if (!m_client.didClose)
return;
m_client.didClose(toAPI(inspector), m_client.base.clientInfo);
}
bool WebInspectorClientGtk::bringToFront(WebInspectorProxy* inspector)
{
if (!m_client.bringToFront)
return false;
return m_client.bringToFront(toAPI(inspector), m_client.base.clientInfo);
}
void WebInspectorClientGtk::inspectedURLChanged(WebInspectorProxy* inspector, const String& url)
{
if (!m_client.inspectedURLChanged)
return;
m_client.inspectedURLChanged(toAPI(inspector), toAPI(url.impl()), m_client.base.clientInfo);
}
bool WebInspectorClientGtk::attach(WebInspectorProxy* inspector)
{
if (!m_client.attach)
return false;
return m_client.attach(toAPI(inspector), m_client.base.clientInfo);
}
bool WebInspectorClientGtk::detach(WebInspectorProxy* inspector)
{
if (!m_client.detach)
return false;
return m_client.detach(toAPI(inspector), m_client.base.clientInfo);
}
void WebInspectorClientGtk::didChangeAttachedHeight(WebInspectorProxy* inspector, unsigned height)
{
if (!m_client.didChangeAttachedHeight)
return;
m_client.didChangeAttachedHeight(toAPI(inspector), height, m_client.base.clientInfo);
}
void WebInspectorClientGtk::didChangeAttachedWidth(WebInspectorProxy* inspector, unsigned width)
{
if (!m_client.didChangeAttachedWidth)
return;
m_client.didChangeAttachedWidth(toAPI(inspector), width, m_client.base.clientInfo);
}
void WebInspectorClientGtk::didChangeAttachAvailability(WebInspectorProxy* inspector, bool available)
{
if (!m_client.didChangeAttachAvailability)
return;
m_client.didChangeAttachAvailability(toAPI(inspector), available, m_client.base.clientInfo);
}
}