mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 09:27:00 +02:00
Previously we were inconsistent by generating code for enum definitions but not generating code for dictionaries. With future changes to the IDL generator to expose helpers to convert to and from IDL values this produced circular depdendencies. To solve this problem, also generate the dictionary definitions in bindings headers.
37 lines
945 B
C++
37 lines
945 B
C++
/*
|
|
* Copyright (c) 2023, Kenneth Myhra <kennethmyhra@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Bindings/FormDataEvent.h>
|
|
#include <LibWeb/DOM/Event.h>
|
|
#include <LibWeb/XHR/FormData.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
class FormDataEvent final : public DOM::Event {
|
|
WEB_PLATFORM_OBJECT(FormDataEvent, DOM::Event);
|
|
GC_DECLARE_ALLOCATOR(FormDataEvent);
|
|
|
|
public:
|
|
static WebIDL::ExceptionOr<GC::Ref<FormDataEvent>> construct_impl(JS::Realm&, FlyString const& event_name, Bindings::FormDataEventInit const& event_init);
|
|
|
|
virtual ~FormDataEvent() override;
|
|
|
|
GC::Ptr<XHR::FormData> form_data() const { return m_form_data; }
|
|
|
|
private:
|
|
FormDataEvent(JS::Realm&, FlyString const& event_name, Bindings::FormDataEventInit const& event_init);
|
|
|
|
void initialize(JS::Realm&) override;
|
|
|
|
virtual void visit_edges(Cell::Visitor&) override;
|
|
|
|
GC::Ptr<XHR::FormData> m_form_data;
|
|
};
|
|
|
|
}
|