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

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

Issue 2639483002: Add sequence number to undo steps (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/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..21adfad0a6706d65a770249d25a32364f356a845 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();
+ int maxSequence() const { return m_maxSequence; }
DECLARE_TRACE();
@@ -63,6 +64,7 @@ class UndoStack final : public GarbageCollected<UndoStack> {
typedef HeapDeque<Member<UndoStep>> UndoStepStack;
+ int m_maxSequence;
yosin_UTC9 2017/01/17 08:13:29 Should we use |uint64_t| or |size_t|? But, I'm not
Xiaocheng 2017/01/17 09:04:02 No special rationale, just an arbitrary choice. L
bool m_inRedo;
UndoStepStack m_undoStack;
UndoStepStack m_redoStack;

Powered by Google App Engine
This is Rietveld 408576698