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

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: Yosin's review 2 Created 4 years, 2 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 66c511411fd877f2dcbfbc14b6244085ce789aac..32c5c01d5ef8600d1d2ca065f300b4d495be64b6 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
@@ -41,10 +41,11 @@ class DeleteSelectionCommand final : public CompositeEditCommand {
bool mergeBlocksAfterDelete = true,
bool expandForSpecialElements = false,
bool sanitizeMarkup = true,
- InputEvent::InputType inputType = InputEvent::InputType::None) {
+ InputEvent::InputType inputType = InputEvent::InputType::None,
+ const Position& referenceMovePosition = Position()) {
return new DeleteSelectionCommand(
document, smartDelete, mergeBlocksAfterDelete, expandForSpecialElements,
- sanitizeMarkup, inputType);
+ sanitizeMarkup, inputType, referenceMovePosition);
}
static DeleteSelectionCommand* create(
const VisibleSelection& selection,
@@ -66,7 +67,8 @@ class DeleteSelectionCommand final : public CompositeEditCommand {
bool mergeBlocksAfterDelete,
bool expandForSpecialElements,
bool santizeMarkup,
- InputEvent::InputType);
+ InputEvent::InputType,
+ const Position& referenceMovePosition);
DeleteSelectionCommand(const VisibleSelection&,
bool smartDelete,
bool mergeBlocksAfterDelete,
@@ -118,6 +120,7 @@ class DeleteSelectionCommand final : public CompositeEditCommand {
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