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

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

Issue 2642663002: Rename class EditCommandComposition to UndoStep (Closed)
Patch Set: Remove a redundant TODO 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/UndoStack.h
diff --git a/third_party/WebKit/Source/core/editing/commands/UndoStack.h b/third_party/WebKit/Source/core/editing/commands/UndoStack.h
index 77802635ad31b1375eae6904fafc93e26a1d4b4e..8f7e3c837d17fa4cdb9c5a298650be0ea64925d0 100644
--- a/third_party/WebKit/Source/core/editing/commands/UndoStack.h
+++ b/third_party/WebKit/Source/core/editing/commands/UndoStack.h
@@ -37,8 +37,8 @@
namespace blink {
-class EditCommandComposition;
class LocalFrame;
+class UndoStep;
// |UndoStack| is owned by and always 1:1 to |Editor|. Since |Editor| is 1:1 to
// |LocalFrame|, |UndoStack| is also 1:1 to |LocalFrame|.
@@ -48,8 +48,8 @@ class UndoStack final : public GarbageCollected<UndoStack> {
public:
static UndoStack* create();
- void registerUndoStep(EditCommandComposition*);
- void registerRedoStep(EditCommandComposition*);
+ void registerUndoStep(UndoStep*);
+ void registerRedoStep(UndoStep*);
bool canUndo() const;
bool canRedo() const;
void undo();
@@ -61,7 +61,7 @@ class UndoStack final : public GarbageCollected<UndoStack> {
private:
UndoStack();
- typedef HeapDeque<Member<EditCommandComposition>> UndoStepStack;
+ typedef HeapDeque<Member<UndoStep>> UndoStepStack;
bool m_inRedo;
UndoStepStack m_undoStack;

Powered by Google App Engine
This is Rietveld 408576698