| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007 Apple, Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007 Apple, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 DCHECK(m_document); | 41 DCHECK(m_document); |
| 42 DCHECK(m_document->frame()); | 42 DCHECK(m_document->frame()); |
| 43 setStartingSelection(m_document->frame()->selection().selection()); | 43 setStartingSelection(m_document->frame()->selection().selection()); |
| 44 setEndingSelection(m_startingSelection); | 44 setEndingSelection(m_startingSelection); |
| 45 } | 45 } |
| 46 | 46 |
| 47 EditCommand::~EditCommand() | 47 EditCommand::~EditCommand() |
| 48 { | 48 { |
| 49 } | 49 } |
| 50 | 50 |
| 51 EditAction EditCommand::editingAction() const | 51 InputEvent::InputType EditCommand::inputType() const |
| 52 { | 52 { |
| 53 return EditActionUnspecified; | 53 return InputEvent::InputType::None; |
| 54 } | 54 } |
| 55 | 55 |
| 56 String EditCommand::textDataForInputEvent() const | 56 String EditCommand::textDataForInputEvent() const |
| 57 { | 57 { |
| 58 return emptyString(); | 58 return emptyString(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 static inline EditCommandComposition* compositionIfPossible(EditCommand* command
) | 61 static inline EditCommandComposition* compositionIfPossible(EditCommand* command
) |
| 62 { | 62 { |
| 63 if (!command->isCompositeEditCommand()) | 63 if (!command->isCompositeEditCommand()) |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 DEFINE_TRACE(EditCommand) | 129 DEFINE_TRACE(EditCommand) |
| 130 { | 130 { |
| 131 visitor->trace(m_document); | 131 visitor->trace(m_document); |
| 132 visitor->trace(m_startingSelection); | 132 visitor->trace(m_startingSelection); |
| 133 visitor->trace(m_endingSelection); | 133 visitor->trace(m_endingSelection); |
| 134 visitor->trace(m_parent); | 134 visitor->trace(m_parent); |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace blink | 137 } // namespace blink |
| OLD | NEW |