APIDebuggableInfo.h [plain text]
#pragma once
#include "APIObject.h"
#include "DebuggableInfoData.h"
#include <WebCore/InspectorDebuggableType.h>
namespace API {
class DebuggableInfo final : public ObjectImpl<Object::Type::DebuggableInfo> {
public:
static Ref<DebuggableInfo> create(const WebKit::DebuggableInfoData&);
DebuggableInfo() = default;
virtual ~DebuggableInfo();
Inspector::DebuggableType debuggableType() const { return m_data.debuggableType; }
void setDebuggableType(Inspector::DebuggableType debuggableType) { m_data.debuggableType = debuggableType; }
const WTF::String& targetPlatformName() const { return m_data.targetPlatformName; }
void setTargetPlatformName(const WTF::String& targetPlatformName) { m_data.targetPlatformName = targetPlatformName; }
const WTF::String& targetBuildVersion() const { return m_data.targetBuildVersion; }
void setTargetBuildVersion(const WTF::String& targetBuildVersion) { m_data.targetBuildVersion = targetBuildVersion; }
const WTF::String& targetProductVersion() const { return m_data.targetProductVersion; }
void setTargetProductVersion(const WTF::String& targetProductVersion) { m_data.targetProductVersion = targetProductVersion; }
bool targetIsSimulator() const { return m_data.targetIsSimulator; }
void setTargetIsSimulator(bool targetIsSimulator) { m_data.targetIsSimulator = targetIsSimulator; }
const WebKit::DebuggableInfoData& debuggableInfoData() const { return m_data; }
private:
explicit DebuggableInfo(const WebKit::DebuggableInfoData&);
WebKit::DebuggableInfoData m_data;
};
}