| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/editing/commands/DragAndDropCommand.h" | 5 #include "core/editing/commands/DragAndDropCommand.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 | 8 |
| 9 DragAndDropCommand::DragAndDropCommand(Document& document) | 9 DragAndDropCommand::DragAndDropCommand(Document& document) |
| 10 : CompositeEditCommand(document) {} | 10 : CompositeEditCommand(document) {} |
| 11 | 11 |
| 12 bool DragAndDropCommand::isCommandGroupWrapper() const { | 12 bool DragAndDropCommand::isCommandGroupWrapper() const { |
| 13 return true; | 13 return true; |
| 14 } | 14 } |
| 15 | 15 |
| 16 bool DragAndDropCommand::isDragAndDropCommand() const { | 16 bool DragAndDropCommand::isDragAndDropCommand() const { |
| 17 return true; | 17 return true; |
| 18 } | 18 } |
| 19 | 19 |
| 20 void DragAndDropCommand::doApply(EditingState*) { | 20 void DragAndDropCommand::doApply(EditingState*) { |
| 21 // Do nothing. Should only register undo entry after combined with other comma
nds. | 21 // Do nothing. Should only register undo entry after combined with other |
| 22 // commands. |
| 22 } | 23 } |
| 23 | 24 |
| 24 InputEvent::InputType DragAndDropCommand::inputType() const { | 25 InputEvent::InputType DragAndDropCommand::inputType() const { |
| 25 return InputEvent::InputType::None; | 26 return InputEvent::InputType::None; |
| 26 } | 27 } |
| 27 | 28 |
| 28 } // namespace blink | 29 } // namespace blink |
| OLD | NEW |