Index: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h |
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h |
index f6c2930ffa5ed34bbca22557c192a8fac3e8c561..179b61c375e8ac8435a5271142421736ce00f766 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h |
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h |
@@ -31,6 +31,7 @@ |
#include "core/editing/commands/EditCommand.h" |
#include "core/editing/commands/EditingState.h" |
#include "core/editing/commands/UndoStep.h" |
+#include "core/events/InputEvent.h" |
#include "wtf/Vector.h" |
namespace blink { |
@@ -76,8 +77,7 @@ class EditCommandComposition final : public UndoStep { |
const VisibleSelection& startingSelection, |
const VisibleSelection& endingSelection); |
- // TODO(chongz): Implement "beforeinput" as described below: |
- // Fires "beforeinput" and will returns |false| to cancel unapply / reapply if |
+ // Fires "beforeinput" and will return |false| to cancel unapply / reapply if |
// * "beforeinput" was canceled, or |
// * |frame| was destroyed by event handlers. |
// Note: Undo stack will always get popped. |
@@ -117,12 +117,17 @@ class CORE_EXPORT CompositeEditCommand : public EditCommand { |
virtual void setShouldRetainAutocorrectionIndicator(bool); |
virtual bool shouldStopCaretBlinking() const { return false; } |
+ virtual InputEvent::InputType inputType() const; |
chongz
2016/12/20 23:27:52
Moved from |EditCommand::inputType()|.
|
+ // |TypingCommand| will return the text of the last |m_commands|. |
+ virtual String textDataForInputEvent() const; |
chongz
2016/12/20 23:27:52
Moved from |EditCommand::textDataForInputEvent()|.
|
+ virtual DataTransfer* dataTransferForInputEvent() const; |
chongz
2016/12/20 23:27:52
New method.
|
+ virtual RangeVector* targetRangesForInputEvent() const; |
chongz
2016/12/20 23:27:52
New method.
|
+ |
DECLARE_VIRTUAL_TRACE(); |
protected: |
explicit CompositeEditCommand(Document&); |
- // TODO(chongz): Implement "beforeinput" as described below: |
// Fires "beforeinput" and will return |false| to cancel applying editing if |
// * "beforeinput" was canceled, or |
// * |frame| was destroyed by event handlers. |