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

Unified Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp

Issue 2258663003: [InputEvent] Support |deleteByCut|&|insertFromPaste| with |dataTransfer| field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yosin's review2, fix nits Created 4 years, 4 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/CompositeEditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index 046bf4ed70bd5a29694e73c8b6dc05b3dda0934e..8dfe33c483607d7cf01dacea07d2d2dfea5de9a0 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -190,6 +190,7 @@ bool CompositeEditCommand::apply()
case InputEvent::InputType::InsertText:
case InputEvent::InputType::InsertLineBreak:
case InputEvent::InputType::InsertParagraph:
+ case InputEvent::InputType::InsertFromPaste:
case InputEvent::InputType::DeleteComposedCharacterForward:
case InputEvent::InputType::DeleteComposedCharacterBackward:
case InputEvent::InputType::DeleteWordBackward:
@@ -198,10 +199,9 @@ bool CompositeEditCommand::apply()
case InputEvent::InputType::DeleteLineForward:
case InputEvent::InputType::DeleteContentBackward:
case InputEvent::InputType::DeleteContentForward:
- case InputEvent::InputType::Paste:
+ case InputEvent::InputType::DeleteByCut:
case InputEvent::InputType::Drag:
case InputEvent::InputType::SetWritingDirection:
- case InputEvent::InputType::Cut:
case InputEvent::InputType::None:
break;
default:
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698