Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h

Issue 2733933003: Move CompositeEditCommand::deleteSelection() to TypingCommand::deleteSelectionIfRange() (Closed)
Patch Set: 2017-03-07T14:29:09 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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&,
109 EditingState*,
110 bool smartDelete = false,
111 bool mergeBlocksAfterDelete = true,
112 bool expandForSpecialElements = true,
113 bool sanitizeMarkup = true);
114 virtual void deleteTextFromNode(Text*, unsigned offset, unsigned count); 108 virtual void deleteTextFromNode(Text*, unsigned offset, unsigned count);
115 bool isRemovableBlock(const Node*); 109 bool isRemovableBlock(const Node*);
116 void insertNodeAfter(Node*, Node* refChild, EditingState*); 110 void insertNodeAfter(Node*, Node* refChild, EditingState*);
117 void insertNodeAt(Node*, const Position&, EditingState*); 111 void insertNodeAt(Node*, const Position&, EditingState*);
118 void insertNodeAtTabSpanPosition(Node*, const Position&, EditingState*); 112 void insertNodeAtTabSpanPosition(Node*, const Position&, EditingState*);
119 void insertNodeBefore( 113 void insertNodeBefore(
120 Node*, 114 Node*,
121 Node* refChild, 115 Node* refChild,
122 EditingState*, 116 EditingState*,
123 ShouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysEditable); 117 ShouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysEditable);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 233
240 DEFINE_TYPE_CASTS(CompositeEditCommand, 234 DEFINE_TYPE_CASTS(CompositeEditCommand,
241 EditCommand, 235 EditCommand,
242 command, 236 command,
243 command->isCompositeEditCommand(), 237 command->isCompositeEditCommand(),
244 command.isCompositeEditCommand()); 238 command.isCompositeEditCommand());
245 239
246 } // namespace blink 240 } // namespace blink
247 241
248 #endif // CompositeEditCommand_h 242 #endif // CompositeEditCommand_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698