Index: third_party/WebKit/Source/core/editing/commands/DragAndDropCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/DragAndDropCommand.cpp b/third_party/WebKit/Source/core/editing/commands/DragAndDropCommand.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..88062c4e76cd28c4cf2b5e1120680c35cd7ebb00 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/editing/commands/DragAndDropCommand.cpp |
@@ -0,0 +1,28 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "core/editing/commands/DragAndDropCommand.h" |
+ |
+namespace blink { |
+ |
+DragAndDropCommand::DragAndDropCommand(Document& document) |
+ : CompositeEditCommand(document) {} |
+ |
+bool DragAndDropCommand::isCommandGroupWrapper() const { |
+ return true; |
+} |
+ |
+bool DragAndDropCommand::isDragAndDropCommand() const { |
+ return true; |
+} |
+ |
+void DragAndDropCommand::doApply(EditingState*) { |
+ // Do nothing. Should only register undo entry after combined with other commands. |
+} |
+ |
+InputEvent::InputType DragAndDropCommand::inputType() const { |
+ return InputEvent::InputType::None; |
+} |
+ |
+} // namespace blink |