Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2008 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 const Position& start, | 98 const Position& start, |
| 99 const Position& end, | 99 const Position& end, |
| 100 EditingState*); | 100 EditingState*); |
| 101 void applyStyledElement(Element*, EditingState*); | 101 void applyStyledElement(Element*, EditingState*); |
| 102 void removeStyledElement(Element*, EditingState*); | 102 void removeStyledElement(Element*, EditingState*); |
| 103 void deleteSelection(EditingState*, | 103 void deleteSelection(EditingState*, |
| 104 bool smartDelete = false, | 104 bool smartDelete = false, |
| 105 bool mergeBlocksAfterDelete = true, | 105 bool mergeBlocksAfterDelete = true, |
| 106 bool expandForSpecialElements = true, | 106 bool expandForSpecialElements = true, |
| 107 bool sanitizeMarkup = true); | 107 bool sanitizeMarkup = true); |
| 108 void deleteSelection(const VisibleSelection&, | 108 // TODO(yosin): We should move |deleteSelectionIfRange()| to |TypingCommand| |
| 109 EditingState*, | 109 // class since it is used in |TypingCommand| only. |
|
yoichio
2017/03/07 05:16:31
Could you move now instead of renaming?
| |
| 110 bool smartDelete = false, | 110 void deleteSelectionIfRange(const VisibleSelection&, |
| 111 bool mergeBlocksAfterDelete = true, | 111 EditingState*, |
| 112 bool expandForSpecialElements = true, | 112 bool smartDelete = false, |
| 113 bool sanitizeMarkup = true); | 113 bool mergeBlocksAfterDelete = true, |
| 114 bool expandForSpecialElements = true, | |
| 115 bool sanitizeMarkup = true); | |
| 114 virtual void deleteTextFromNode(Text*, unsigned offset, unsigned count); | 116 virtual void deleteTextFromNode(Text*, unsigned offset, unsigned count); |
| 115 bool isRemovableBlock(const Node*); | 117 bool isRemovableBlock(const Node*); |
| 116 void insertNodeAfter(Node*, Node* refChild, EditingState*); | 118 void insertNodeAfter(Node*, Node* refChild, EditingState*); |
| 117 void insertNodeAt(Node*, const Position&, EditingState*); | 119 void insertNodeAt(Node*, const Position&, EditingState*); |
| 118 void insertNodeAtTabSpanPosition(Node*, const Position&, EditingState*); | 120 void insertNodeAtTabSpanPosition(Node*, const Position&, EditingState*); |
| 119 void insertNodeBefore( | 121 void insertNodeBefore( |
| 120 Node*, | 122 Node*, |
| 121 Node* refChild, | 123 Node* refChild, |
| 122 EditingState*, | 124 EditingState*, |
| 123 ShouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysEditable); | 125 ShouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysEditable); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 239 | 241 |
| 240 DEFINE_TYPE_CASTS(CompositeEditCommand, | 242 DEFINE_TYPE_CASTS(CompositeEditCommand, |
| 241 EditCommand, | 243 EditCommand, |
| 242 command, | 244 command, |
| 243 command->isCompositeEditCommand(), | 245 command->isCompositeEditCommand(), |
| 244 command.isCompositeEditCommand()); | 246 command.isCompositeEditCommand()); |
| 245 | 247 |
| 246 } // namespace blink | 248 } // namespace blink |
| 247 | 249 |
| 248 #endif // CompositeEditCommand_h | 250 #endif // CompositeEditCommand_h |
| OLD | NEW |