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

Side by Side Diff: Source/core/editing/CompositeEditCommand.h

Issue 423413005: Use tighter typing in editing: ReplaceSelectionCommand (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Wrap lines Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/editing/ApplyStyleCommand.cpp ('k') | Source/core/editing/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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void insertTextIntoNode(PassRefPtrWillBeRawPtr<Text>, unsigned offset, const String& text); 113 void insertTextIntoNode(PassRefPtrWillBeRawPtr<Text>, unsigned offset, const String& text);
114 void mergeIdenticalElements(PassRefPtrWillBeRawPtr<Element>, PassRefPtrWillB eRawPtr<Element>); 114 void mergeIdenticalElements(PassRefPtrWillBeRawPtr<Element>, PassRefPtrWillB eRawPtr<Element>);
115 void rebalanceWhitespace(); 115 void rebalanceWhitespace();
116 void rebalanceWhitespaceAt(const Position&); 116 void rebalanceWhitespaceAt(const Position&);
117 void rebalanceWhitespaceOnTextSubstring(PassRefPtrWillBeRawPtr<Text>, int st artOffset, int endOffset); 117 void rebalanceWhitespaceOnTextSubstring(PassRefPtrWillBeRawPtr<Text>, int st artOffset, int endOffset);
118 void prepareWhitespaceAtPositionForSplit(Position&); 118 void prepareWhitespaceAtPositionForSplit(Position&);
119 void replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded(const VisibleP osition&); 119 void replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded(const VisibleP osition&);
120 bool canRebalance(const Position&) const; 120 bool canRebalance(const Position&) const;
121 bool shouldRebalanceLeadingWhitespaceFor(const String&) const; 121 bool shouldRebalanceLeadingWhitespaceFor(const String&) const;
122 void removeCSSProperty(PassRefPtrWillBeRawPtr<Element>, CSSPropertyID); 122 void removeCSSProperty(PassRefPtrWillBeRawPtr<Element>, CSSPropertyID);
123 void removeNodeAttribute(PassRefPtrWillBeRawPtr<Element>, const QualifiedNam e& attribute); 123 void removeElementAttribute(PassRefPtrWillBeRawPtr<Element>, const Qualified Name& attribute);
124 void removeChildrenInRange(PassRefPtrWillBeRawPtr<Node>, unsigned from, unsi gned to); 124 void removeChildrenInRange(PassRefPtrWillBeRawPtr<Node>, unsigned from, unsi gned to);
125 virtual void removeNode(PassRefPtrWillBeRawPtr<Node>, ShouldAssumeContentIsA lwaysEditable = DoNotAssumeContentIsAlwaysEditable); 125 virtual void removeNode(PassRefPtrWillBeRawPtr<Node>, ShouldAssumeContentIsA lwaysEditable = DoNotAssumeContentIsAlwaysEditable);
126 HTMLSpanElement* replaceElementWithSpanPreservingChildrenAndAttributes(PassR efPtrWillBeRawPtr<HTMLElement>); 126 HTMLSpanElement* replaceElementWithSpanPreservingChildrenAndAttributes(PassR efPtrWillBeRawPtr<HTMLElement>);
127 void removeNodePreservingChildren(PassRefPtrWillBeRawPtr<Node>, ShouldAssume ContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysEditable); 127 void removeNodePreservingChildren(PassRefPtrWillBeRawPtr<Node>, ShouldAssume ContentIsAlwaysEditable = DoNotAssumeContentIsAlwaysEditable);
128 void removeNodeAndPruneAncestors(PassRefPtrWillBeRawPtr<Node>, Node* exclude Node = 0); 128 void removeNodeAndPruneAncestors(PassRefPtrWillBeRawPtr<Node>, Node* exclude Node = 0);
129 void moveRemainingSiblingsToNewParent(Node*, Node* pastLastNodeToMove, PassR efPtrWillBeRawPtr<Element> prpNewParent); 129 void moveRemainingSiblingsToNewParent(Node*, Node* pastLastNodeToMove, PassR efPtrWillBeRawPtr<Element> prpNewParent);
130 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&); 130 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&);
131 void prune(PassRefPtrWillBeRawPtr<Node>, Node* excludeNode = 0); 131 void prune(PassRefPtrWillBeRawPtr<Node>, Node* excludeNode = 0);
132 void replaceTextInNode(PassRefPtrWillBeRawPtr<Text>, unsigned offset, unsign ed count, const String& replacementText); 132 void replaceTextInNode(PassRefPtrWillBeRawPtr<Text>, unsigned offset, unsign ed count, const String& replacementText);
133 Position replaceSelectedTextInNode(const String&); 133 Position replaceSelectedTextInNode(const String&);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual bool isCompositeEditCommand() const OVERRIDE FINAL { return true; } 174 virtual bool isCompositeEditCommand() const OVERRIDE FINAL { return true; }
175 175
176 RefPtrWillBeMember<EditCommandComposition> m_composition; 176 RefPtrWillBeMember<EditCommandComposition> m_composition;
177 }; 177 };
178 178
179 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi teEditCommand(), command.isCompositeEditCommand()); 179 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi teEditCommand(), command.isCompositeEditCommand());
180 180
181 } // namespace blink 181 } // namespace blink
182 182
183 #endif // CompositeEditCommand_h 183 #endif // CompositeEditCommand_h
OLDNEW
« no previous file with comments | « Source/core/editing/ApplyStyleCommand.cpp ('k') | Source/core/editing/CompositeEditCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698