OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006 Apple Computer, 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 ReplaceSelectionCommand::SelectReplacement | | 91 ReplaceSelectionCommand::SelectReplacement | |
92 ReplaceSelectionCommand::PreventNesting; | 92 ReplaceSelectionCommand::PreventNesting; |
93 if (m_smartInsert) | 93 if (m_smartInsert) |
94 options |= ReplaceSelectionCommand::SmartReplace; | 94 options |= ReplaceSelectionCommand::SmartReplace; |
95 applyCommandToComposite( | 95 applyCommandToComposite( |
96 ReplaceSelectionCommand::create(document(), m_fragment, options), | 96 ReplaceSelectionCommand::create(document(), m_fragment, options), |
97 editingState); | 97 editingState); |
98 } | 98 } |
99 | 99 |
100 InputEvent::InputType MoveSelectionCommand::inputType() const { | 100 InputEvent::InputType MoveSelectionCommand::inputType() const { |
101 return InputEvent::InputType::Drag; | 101 return InputEvent::InputType::None; |
102 } | 102 } |
103 | 103 |
104 DEFINE_TRACE(MoveSelectionCommand) { | 104 DEFINE_TRACE(MoveSelectionCommand) { |
105 visitor->trace(m_fragment); | 105 visitor->trace(m_fragment); |
106 visitor->trace(m_position); | 106 visitor->trace(m_position); |
107 CompositeEditCommand::trace(visitor); | 107 CompositeEditCommand::trace(visitor); |
108 } | 108 } |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
OLD | NEW |