generate-enum-with-guard.json-TestReplayInputs.h [plain text]
#ifndef generate_enum_with_guard_json_TestReplayInputs_h
#define generate_enum_with_guard_json_TestReplayInputs_h
#if ENABLE(WEB_REPLAY)
#include "InternalNamespaceHeaderIncludeDummy.h"
#include <platform/ExternalNamespaceHeaderIncludeDummy.h>
namespace WebCore {
class PlatformWheelEvent;
enum PlatformWheelEventPhase : uint64_t;
}
namespace Test {
class HandleWheelEvent;
}
namespace JSC {
template<> struct InputTraits<Test::HandleWheelEvent> {
static InputQueue queue() { return InputQueue::EventLoopInput; }
static const AtomicString& type();
static void encode(JSC::EncodedValue&, const Test::HandleWheelEvent&);
static bool decode(JSC::EncodedValue&, std::unique_ptr<Test::HandleWheelEvent>&);
};
#if ENABLE(DUMMY_FEATURE)
template<> struct EncodingTraits<WebCore::PlatformWheelEventPhase> {
typedef WebCore::PlatformWheelEventPhase DecodedType;
static EncodedValue encodeValue(const WebCore::PlatformWheelEventPhase& value);
static bool decodeValue(EncodedValue&, WebCore::PlatformWheelEventPhase& value);
};
#endif // ENABLE(DUMMY_FEATURE)
}
namespace Test {
class HandleWheelEvent : public EventLoopInput<HandleWheelEvent> {
public:
HandleWheelEvent(std::unique_ptr<PlatformWheelEvent> platformEvent);
virtual ~HandleWheelEvent();
virtual void dispatch(ReplayController&) override final;
const PlatformWheelEvent& platformEvent() const { return *m_platformEvent; }
private:
std::unique_ptr<PlatformWheelEvent> m_platformEvent;
};
}
#define TEST_REPLAY_INPUT_NAMES_FOR_EACH(macro) \
macro(HandleWheelEvent) \
\
#endif // ENABLE(WEB_REPLAY)
#endif // generate-enum-with-guard.json-TestReplayInputs_h