diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/forms/form_data_event.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/forms/form_data_event.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/forms/form_data_event.cc b/chromium/third_party/blink/renderer/core/html/forms/form_data_event.cc new file mode 100644 index 00000000000..6fe89dd1a08 --- /dev/null +++ b/chromium/third_party/blink/renderer/core/html/forms/form_data_event.cc @@ -0,0 +1,28 @@ +// Copyright 2018 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "third_party/blink/renderer/core/html/forms/form_data_event.h" + +#include "third_party/blink/renderer/core/html/forms/form_data.h" + +namespace blink { + +FormDataEvent::FormDataEvent(FormData& form_data) + : Event(EventTypeNames::formdata, Bubbles::kYes, Cancelable::kNo), + form_data_(form_data) {} + +FormDataEvent* FormDataEvent::Create(FormData& form_data) { + return new FormDataEvent(form_data); +} + +void FormDataEvent::Trace(Visitor* visitor) { + visitor->Trace(form_data_); + Event::Trace(visitor); +} + +const AtomicString& FormDataEvent::InterfaceName() const { + return EventNames::FormDataEvent; +} + +} // namespace blink |