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

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

Issue 2639483002: Add sequence number to undo steps (Closed)
Patch Set: Wed Jan 18 19:11:59 JST 2017 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 8f7e3c837d17fa4cdb9c5a298650be0ea64925d0..3b69a73b341f14bd2b2cd1b3575cf690f101e955 100644
--- a/third_party/WebKit/Source/core/editing/commands/UndoStack.h
+++ b/third_party/WebKit/Source/core/editing/commands/UndoStack.h
@@ -55,6 +55,7 @@ class UndoStack final : public GarbageCollected<UndoStack> {
void undo();
void redo();
void clear();
+ uint64_t maxSequence() const { return m_maxSequence; }
DECLARE_TRACE();
@@ -63,6 +64,7 @@ class UndoStack final : public GarbageCollected<UndoStack> {
typedef HeapDeque<Member<UndoStep>> UndoStepStack;
+ uint64_t m_maxSequence;
bool m_inRedo;
UndoStepStack m_undoStack;
UndoStepStack m_redoStack;

Powered by Google App Engine
This is Rietveld 408576698