Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Unified Diff: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h

Issue 2374743002: [InputEvent] Support |deleteByDrag|, |insertFromDrop| and fire in sequential order (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
index d2f82d5a20adc1f2b2e3b034ddaba949c9efd636..a4f37602ab7957ceba81b1f69c29f6e556ec48a1 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
@@ -35,9 +35,9 @@ class HTMLTableRowElement;
class DeleteSelectionCommand final : public CompositeEditCommand {
public:
- static DeleteSelectionCommand* create(Document& document, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = false, bool sanitizeMarkup = true, InputEvent::InputType inputType = InputEvent::InputType::None)
+ static DeleteSelectionCommand* create(Document& document, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = false, bool sanitizeMarkup = true, InputEvent::InputType inputType = InputEvent::InputType::None, const Position& referenceMovePosition = Position())
{
- return new DeleteSelectionCommand(document, smartDelete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup, inputType);
+ return new DeleteSelectionCommand(document, smartDelete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup, inputType, referenceMovePosition);
}
static DeleteSelectionCommand* create(const VisibleSelection& selection, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = false, bool sanitizeMarkup = true, InputEvent::InputType inputType = InputEvent::InputType::None)
{
@@ -47,7 +47,7 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- DeleteSelectionCommand(Document&, bool smartDelete, bool mergeBlocksAfterDelete, bool expandForSpecialElements, bool santizeMarkup, InputEvent::InputType);
+ DeleteSelectionCommand(Document&, bool smartDelete, bool mergeBlocksAfterDelete, bool expandForSpecialElements, bool santizeMarkup, InputEvent::InputType, const Position& referenceMovePosition);
DeleteSelectionCommand(const VisibleSelection&, bool smartDelete, bool mergeBlocksAfterDelete, bool expandForSpecialElements, bool sanitizeMarkup, InputEvent::InputType);
void doApply(EditingState*) override;
@@ -90,6 +90,7 @@ private:
Position m_endingPosition;
Position m_leadingWhitespace;
Position m_trailingWhitespace;
+ Position m_referenceMovePosition;
Member<Node> m_startBlock;
Member<Node> m_endBlock;
Member<EditingStyle> m_typingStyle;

Powered by Google App Engine
This is Rietveld 408576698