OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/editing/commands/DragAndDropCommand.h" |
| 6 |
| 7 namespace blink { |
| 8 |
| 9 DragAndDropCommand::DragAndDropCommand(Document& document) |
| 10 : CompositeEditCommand(document) |
| 11 { |
| 12 } |
| 13 |
| 14 bool DragAndDropCommand::isCommandGroupWrapper() const |
| 15 { |
| 16 return true; |
| 17 } |
| 18 |
| 19 bool DragAndDropCommand::isDragAndDropCommand() const |
| 20 { |
| 21 return true; |
| 22 } |
| 23 |
| 24 void DragAndDropCommand::doApply(EditingState*) |
| 25 { |
| 26 // Do nothing. Should only register undo entry after combined with other com
mands. |
| 27 } |
| 28 |
| 29 InputEvent::InputType DragAndDropCommand::inputType() const |
| 30 { |
| 31 return InputEvent::InputType::None; |
| 32 } |
| 33 |
| 34 } // namespace blink |
OLD | NEW |