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 13 matching lines...) Expand all Loading... |
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 Loading... |
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 |
OLD | NEW |