2020-11-21 21:53:18 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-11-21 21:53:18 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/DOM/Event.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
|
|
class SubmitEvent final : public DOM::Event {
|
|
|
|
|
public:
|
|
|
|
|
using WrapperType = Bindings::SubmitEventWrapper;
|
|
|
|
|
|
2021-01-18 08:32:57 +01:00
|
|
|
static NonnullRefPtr<SubmitEvent> create(const FlyString& event_name, RefPtr<HTMLElement> submitter);
|
2020-11-21 21:53:18 +00:00
|
|
|
|
2021-01-18 08:32:57 +01:00
|
|
|
virtual ~SubmitEvent() override;
|
|
|
|
|
|
|
|
|
|
RefPtr<HTMLElement> submitter() const;
|
2020-11-21 21:53:18 +00:00
|
|
|
|
|
|
|
|
private:
|
2021-01-18 08:32:57 +01:00
|
|
|
SubmitEvent(const FlyString& event_name, RefPtr<HTMLElement> submitter);
|
2020-11-21 21:53:18 +00:00
|
|
|
|
|
|
|
|
RefPtr<HTMLElement> m_submitter;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|