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

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 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/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

Powered by Google App Engine
This is Rietveld 408576698