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

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

Issue 2639913002: Move class EditCommandComposition to UndoStep.h/cpp (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
index cd3cf2cb8812281b4886a7bcb65bbd36674ce655..35caddecfd6c0dfb2ee6ac7f559b94366f265345 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
@@ -44,49 +44,6 @@ class Text;
enum class EditCommandSource { kMenuOrKeyBinding, kDOM };
-class EditCommandComposition final : public UndoStep {
- public:
- static EditCommandComposition* create(Document*,
- const VisibleSelection&,
- const VisibleSelection&,
- InputEvent::InputType);
-
- void unapply() override;
- void reapply() override;
- InputEvent::InputType inputType() const override;
- void append(SimpleEditCommand*);
- void append(EditCommandComposition*);
-
- const VisibleSelection& startingSelection() const {
- return m_startingSelection;
- }
- const VisibleSelection& endingSelection() const { return m_endingSelection; }
- void setStartingSelection(const VisibleSelection&);
- void setEndingSelection(const VisibleSelection&);
- Element* startingRootEditableElement() const {
- return m_startingRootEditableElement.get();
- }
- Element* endingRootEditableElement() const {
- return m_endingRootEditableElement.get();
- }
-
- DECLARE_VIRTUAL_TRACE();
-
- private:
- EditCommandComposition(Document*,
- const VisibleSelection& startingSelection,
- const VisibleSelection& endingSelection,
- InputEvent::InputType);
-
- Member<Document> m_document;
- VisibleSelection m_startingSelection;
- VisibleSelection m_endingSelection;
- HeapVector<Member<SimpleEditCommand>> m_commands;
- Member<Element> m_startingRootEditableElement;
- Member<Element> m_endingRootEditableElement;
- InputEvent::InputType m_inputType;
-};
-
class CORE_EXPORT CompositeEditCommand : public EditCommand {
public:
enum ShouldPreserveSelection { PreserveSelection, DoNotPreserveSelection };

Powered by Google App Engine
This is Rietveld 408576698