#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/events/input_event.h"
#include <algorithm>
#include "third_party/blink/renderer/core/clipboard/data_transfer.h"
#include "third_party/blink/renderer/core/dom/events/event_dispatcher.h"
#include "third_party/blink/renderer/core/dom/range.h"
#include "third_party/blink/renderer/core/editing/commands/editing_command_type.h"
namespace blink {
namespace {
const struct { … } kInputTypeStringNameMap[] = …;
static_assert …;
String ConvertInputTypeToString(InputEvent::InputType input_type) { … }
InputEvent::InputType ConvertStringToInputType(const String& string_name) { … }
bool InputTypeIsCancelable(InputEvent::InputType input_type) { … }
}
InputEvent::InputEvent(const AtomicString& type,
const InputEventInit* initializer)
: … { … }
InputEvent::InputEvent(const AtomicString& type,
const UIEventInit& init,
InputType input_type,
const String& data,
DataTransfer* data_transfer,
EventIsComposing is_composing,
const StaticRangeVector* ranges)
: … { … }
InputEvent* InputEvent::CreateBeforeInput(InputType input_type,
const String& data,
EventIsComposing is_composing,
const StaticRangeVector* ranges) { … }
InputEvent* InputEvent::CreateBeforeInput(InputType input_type,
DataTransfer* data_transfer,
EventIsComposing is_composing,
const StaticRangeVector* ranges) { … }
InputEvent* InputEvent::CreateInput(InputType input_type,
const String& data,
EventIsComposing is_composing,
const StaticRangeVector* ranges) { … }
String InputEvent::inputType() const { … }
StaticRangeVector InputEvent::getTargetRanges() const { … }
bool InputEvent::IsInputEvent() const { … }
void InputEvent::Trace(Visitor* visitor) const { … }
DispatchEventResult InputEvent::DispatchEvent(EventDispatcher& dispatcher) { … }
}