| Index: third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| index e6ae084a701f5fe8e2bf77af8ecd364357fc0b4b..89c8fd5ea9dce1af5bf5a9611648c253199e9969 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| @@ -1891,6 +1891,16 @@ DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget* target, InputE
|
| return target->dispatchEvent(beforeInputEvent);
|
| }
|
|
|
| +DispatchEventResult dispatchBeforeInputDataTransfer(EventTarget* target, InputEvent::InputType inputType, DataTransfer* dataTransfer, const RangeVector* ranges)
|
| +{
|
| + if (!RuntimeEnabledFeatures::inputEventEnabled())
|
| + return DispatchEventResult::NotCanceled;
|
| + if (!target)
|
| + return DispatchEventResult::NotCanceled;
|
| + InputEvent* beforeInputEvent = InputEvent::createBeforeInput(inputType, dataTransfer, InputEvent::EventCancelable::IsCancelable, InputEvent::EventIsComposing::NotComposing, ranges);
|
| + return target->dispatchEvent(beforeInputEvent);
|
| +}
|
| +
|
| InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection direction, TextGranularity granularity)
|
| {
|
| using InputType = InputEvent::InputType;
|
|
|