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

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

Issue 2374743002: [InputEvent] Support |deleteByDrag|, |insertFromDrop| and fire in sequential order (Closed)
Patch Set: Yosin's review 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/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..171857aaa99e9a47898a1613283cc6d2adb708b0
--- /dev/null
+++ b/third_party/WebKit/Source/core/editing/commands/DragAndDropCommand.cpp
@@ -0,0 +1,34 @@
+// 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

Powered by Google App Engine
This is Rietveld 408576698