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

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

Issue 1684733003: Editing: Pass failure information of CompositeEditCommand::deleteSelection() to TypingCommand::doAp… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 // TODO(yosin): EditingState argument should not be optional. 98 // TODO(yosin): EditingState argument should not be optional.
99 void appendNode(PassRefPtrWillBeRawPtr<Node>, PassRefPtrWillBeRawPtr<Contain erNode> parent, EditingState* = ASSERT_NO_EDITING_ABORT); 99 void appendNode(PassRefPtrWillBeRawPtr<Node>, PassRefPtrWillBeRawPtr<Contain erNode> parent, EditingState* = ASSERT_NO_EDITING_ABORT);
100 // TODO(tkent): EditingState argument should not be optional. 100 // TODO(tkent): EditingState argument should not be optional.
101 void applyCommandToComposite(PassRefPtrWillBeRawPtr<EditCommand>, EditingSta te* = ASSERT_NO_EDITING_ABORT); 101 void applyCommandToComposite(PassRefPtrWillBeRawPtr<EditCommand>, EditingSta te* = ASSERT_NO_EDITING_ABORT);
102 void applyCommandToComposite(PassRefPtrWillBeRawPtr<CompositeEditCommand>, c onst VisibleSelection&, EditingState* = ASSERT_NO_EDITING_ABORT); 102 void applyCommandToComposite(PassRefPtrWillBeRawPtr<CompositeEditCommand>, c onst VisibleSelection&, EditingState* = ASSERT_NO_EDITING_ABORT);
103 void applyStyle(const EditingStyle*, EditAction = EditActionChangeAttributes ); 103 void applyStyle(const EditingStyle*, EditAction = EditActionChangeAttributes );
104 void applyStyle(const EditingStyle*, const Position& start, const Position& end, EditAction = EditActionChangeAttributes); 104 void applyStyle(const EditingStyle*, const Position& start, const Position& end, EditAction = EditActionChangeAttributes);
105 void applyStyledElement(PassRefPtrWillBeRawPtr<Element>); 105 void applyStyledElement(PassRefPtrWillBeRawPtr<Element>);
106 void removeStyledElement(PassRefPtrWillBeRawPtr<Element>); 106 void removeStyledElement(PassRefPtrWillBeRawPtr<Element>);
107 void deleteSelection(EditingState* = ASSERT_NO_EDITING_ABORT, bool smartDele te = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = true, bool sanitizeMarkup = true); 107 void deleteSelection(EditingState* = ASSERT_NO_EDITING_ABORT, bool smartDele te = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = true, bool sanitizeMarkup = true);
108 void deleteSelection(const VisibleSelection&, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = true, bool sanit izeMarkup = true); 108 void deleteSelection(const VisibleSelection&, EditingState*, bool smartDelet e = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = t rue, bool sanitizeMarkup = true);
109 virtual void deleteTextFromNode(PassRefPtrWillBeRawPtr<Text>, unsigned offse t, unsigned count); 109 virtual void deleteTextFromNode(PassRefPtrWillBeRawPtr<Text>, unsigned offse t, unsigned count);
110 bool isRemovableBlock(const Node*); 110 bool isRemovableBlock(const Node*);
111 void insertNodeAfter(PassRefPtrWillBeRawPtr<Node>, PassRefPtrWillBeRawPtr<No de> refChild); 111 void insertNodeAfter(PassRefPtrWillBeRawPtr<Node>, PassRefPtrWillBeRawPtr<No de> refChild);
112 void insertNodeAt(PassRefPtrWillBeRawPtr<Node>, const Position&); 112 void insertNodeAt(PassRefPtrWillBeRawPtr<Node>, const Position&);
113 void insertNodeAtTabSpanPosition(PassRefPtrWillBeRawPtr<Node>, const Positio n&); 113 void insertNodeAtTabSpanPosition(PassRefPtrWillBeRawPtr<Node>, const Positio n&);
114 void insertNodeBefore(PassRefPtrWillBeRawPtr<Node>, PassRefPtrWillBeRawPtr<N ode> refChild, ShouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysE ditable); 114 void insertNodeBefore(PassRefPtrWillBeRawPtr<Node>, PassRefPtrWillBeRawPtr<N ode> refChild, ShouldAssumeContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysE ditable);
115 void insertParagraphSeparator(bool useDefaultParagraphElement = false, bool pasteBlockqutoeIntoUnquotedArea = false); 115 void insertParagraphSeparator(bool useDefaultParagraphElement = false, bool pasteBlockqutoeIntoUnquotedArea = false);
116 void insertTextIntoNode(PassRefPtrWillBeRawPtr<Text>, unsigned offset, const String& text); 116 void insertTextIntoNode(PassRefPtrWillBeRawPtr<Text>, unsigned offset, const String& text);
117 void mergeIdenticalElements(PassRefPtrWillBeRawPtr<Element>, PassRefPtrWillB eRawPtr<Element>); 117 void mergeIdenticalElements(PassRefPtrWillBeRawPtr<Element>, PassRefPtrWillB eRawPtr<Element>);
118 void rebalanceWhitespace(); 118 void rebalanceWhitespace();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 bool isCompositeEditCommand() const final { return true; } 177 bool isCompositeEditCommand() const final { return true; }
178 178
179 RefPtrWillBeMember<EditCommandComposition> m_composition; 179 RefPtrWillBeMember<EditCommandComposition> m_composition;
180 }; 180 };
181 181
182 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi teEditCommand(), command.isCompositeEditCommand()); 182 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi teEditCommand(), command.isCompositeEditCommand());
183 183
184 } // namespace blink 184 } // namespace blink
185 185
186 #endif // CompositeEditCommand_h 186 #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