generate-enums-with-same-base-name.json-TestReplayInputs.h [plain text]
#ifndef generate_enums_with_same_base_name_json_TestReplayInputs_h
#define generate_enums_with_same_base_name_json_TestReplayInputs_h
#if ENABLE(WEB_REPLAY)
#include "InternalNamespaceHeaderIncludeDummy.h"
#include <platform/ExternalNamespaceHeaderIncludeDummy.h>
#include <replay/FormData.h>
#include <replay/PlatformEvent.h>
namespace Test {
class FormCombo;
}
namespace JSC {
template<> struct InputTraits<Test::FormCombo> {
static InputQueue queue() { return InputQueue::ScriptMemoizedData; }
static const AtomicString& type();
static void encode(JSC::EncodedValue&, const Test::FormCombo&);
static bool decode(JSC::EncodedValue&, std::unique_ptr<Test::FormCombo>&);
};
template<> struct EncodingTraits<WebCore::FormData::Type> {
typedef WebCore::FormData::Type DecodedType;
static EncodedValue encodeValue(const WebCore::FormData::Type& value);
static bool decodeValue(EncodedValue&, WebCore::FormData::Type& value);
};
template<> struct EncodingTraits<PlatformEvent::Type> {
typedef PlatformEvent::Type DecodedType;
static EncodedValue encodeValue(const PlatformEvent::Type& value);
static bool decodeValue(EncodedValue&, PlatformEvent::Type& value);
};
}
namespace Test {
class FormCombo : public NondeterministicInput<FormCombo> {
public:
FormCombo(PlatformEvent::Type eventType, FormData::Type formType);
virtual ~FormCombo();
PlatformEvent::Type eventType() const { return m_eventType; }
FormData::Type formType() const { return m_formType; }
private:
PlatformEvent::Type m_eventType;
FormData::Type m_formType;
};
}
#define TEST_REPLAY_INPUT_NAMES_FOR_EACH(macro) \
macro(FormCombo) \
\
#endif // ENABLE(WEB_REPLAY)
#endif // generate-enums-with-same-base-name.json-TestReplayInputs_h