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 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef EditCommand_h | 26 #ifndef EditCommand_h |
27 #define EditCommand_h | 27 #define EditCommand_h |
28 | 28 |
29 #include "core/editing/EditAction.h" | 29 #include "core/editing/EditAction.h" |
30 #include "core/editing/VisibleSelection.h" | 30 #include "core/editing/VisibleSelection.h" |
31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
32 | 32 |
33 #ifndef NDEBUG | |
34 #include "wtf/HashSet.h" | |
35 #endif | |
36 | |
37 namespace WebCore { | 33 namespace WebCore { |
38 | 34 |
39 class CompositeEditCommand; | 35 class CompositeEditCommand; |
40 class Document; | 36 class Document; |
41 class Element; | 37 class Element; |
42 | 38 |
43 class EditCommand : public RefCountedWillBeGarbageCollectedFinalized<EditCommand
> { | 39 class EditCommand : public RefCountedWillBeGarbageCollectedFinalized<EditCommand
> { |
44 public: | 40 public: |
45 virtual ~EditCommand(); | 41 virtual ~EditCommand(); |
46 | 42 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 88 |
93 private: | 89 private: |
94 virtual bool isSimpleEditCommand() const OVERRIDE FINAL { return true; } | 90 virtual bool isSimpleEditCommand() const OVERRIDE FINAL { return true; } |
95 }; | 91 }; |
96 | 92 |
97 DEFINE_TYPE_CASTS(SimpleEditCommand, EditCommand, command, command->isSimpleEdit
Command(), command.isSimpleEditCommand()); | 93 DEFINE_TYPE_CASTS(SimpleEditCommand, EditCommand, command, command->isSimpleEdit
Command(), command.isSimpleEditCommand()); |
98 | 94 |
99 } // namespace WebCore | 95 } // namespace WebCore |
100 | 96 |
101 #endif // EditCommand_h | 97 #endif // EditCommand_h |
OLD | NEW |