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

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

Issue 420053002: Use tighter typing in editing: DeleteSelectionCommand (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef DeleteSelectionCommand_h 26 #ifndef DeleteSelectionCommand_h
27 #define DeleteSelectionCommand_h 27 #define DeleteSelectionCommand_h
28 28
29 #include "core/editing/CompositeEditCommand.h" 29 #include "core/editing/CompositeEditCommand.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class EditingStyle; 33 class EditingStyle;
34 class HTMLTableRowElement;
34 35
35 class DeleteSelectionCommand FINAL : public CompositeEditCommand { 36 class DeleteSelectionCommand FINAL : public CompositeEditCommand {
36 public: 37 public:
37 static PassRefPtrWillBeRawPtr<DeleteSelectionCommand> create(Document& docum ent, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandFo rSpecialElements = false, bool sanitizeMarkup = true) 38 static PassRefPtrWillBeRawPtr<DeleteSelectionCommand> create(Document& docum ent, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandFo rSpecialElements = false, bool sanitizeMarkup = true)
38 { 39 {
39 return adoptRefWillBeNoop(new DeleteSelectionCommand(document, smartDele te, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup)); 40 return adoptRefWillBeNoop(new DeleteSelectionCommand(document, smartDele te, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup));
40 } 41 }
41 static PassRefPtrWillBeRawPtr<DeleteSelectionCommand> create(const VisibleSe lection& selection, bool smartDelete = false, bool mergeBlocksAfterDelete = true , bool expandForSpecialElements = false, bool sanitizeMarkup = true) 42 static PassRefPtrWillBeRawPtr<DeleteSelectionCommand> create(const VisibleSe lection& selection, bool smartDelete = false, bool mergeBlocksAfterDelete = true , bool expandForSpecialElements = false, bool sanitizeMarkup = true)
42 { 43 {
43 return adoptRefWillBeNoop(new DeleteSelectionCommand(selection, smartDel ete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup)); 44 return adoptRefWillBeNoop(new DeleteSelectionCommand(selection, smartDel ete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup));
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Position m_downstreamStart; 86 Position m_downstreamStart;
86 Position m_upstreamEnd; 87 Position m_upstreamEnd;
87 Position m_downstreamEnd; 88 Position m_downstreamEnd;
88 Position m_endingPosition; 89 Position m_endingPosition;
89 Position m_leadingWhitespace; 90 Position m_leadingWhitespace;
90 Position m_trailingWhitespace; 91 Position m_trailingWhitespace;
91 RefPtrWillBeMember<Node> m_startBlock; 92 RefPtrWillBeMember<Node> m_startBlock;
92 RefPtrWillBeMember<Node> m_endBlock; 93 RefPtrWillBeMember<Node> m_endBlock;
93 RefPtrWillBeMember<EditingStyle> m_typingStyle; 94 RefPtrWillBeMember<EditingStyle> m_typingStyle;
94 RefPtrWillBeMember<EditingStyle> m_deleteIntoBlockquoteStyle; 95 RefPtrWillBeMember<EditingStyle> m_deleteIntoBlockquoteStyle;
95 RefPtrWillBeMember<Node> m_startRoot; 96 RefPtrWillBeMember<Element> m_startRoot;
96 RefPtrWillBeMember<Node> m_endRoot; 97 RefPtrWillBeMember<Element> m_endRoot;
97 RefPtrWillBeMember<Node> m_startTableRow; 98 RefPtrWillBeMember<HTMLTableRowElement> m_startTableRow;
98 RefPtrWillBeMember<Node> m_endTableRow; 99 RefPtrWillBeMember<HTMLTableRowElement> m_endTableRow;
99 RefPtrWillBeMember<Node> m_temporaryPlaceholder; 100 RefPtrWillBeMember<Node> m_temporaryPlaceholder;
100 }; 101 };
101 102
102 } // namespace blink 103 } // namespace blink
103 104
104 #endif // DeleteSelectionCommand_h 105 #endif // DeleteSelectionCommand_h
OLDNEW
« no previous file with comments | « Source/core/editing/CompositeEditCommand.cpp ('k') | Source/core/editing/DeleteSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698