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..b26aaf5049b26c54c14a98d047ebabeda73c8c87 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/UndoStack.h |
+++ b/third_party/WebKit/Source/core/editing/commands/UndoStack.h |
@@ -40,6 +40,8 @@ namespace blink { |
class LocalFrame; |
class UndoStep; |
+typedef HeapDeque<Member<UndoStep>> UndoStepStack; |
yosin_UTC9
2017/03/02 03:38:40
nit: using UndoStepStack = HeapDeque<Member<UndoSt
|
+ |
// |UndoStack| is owned by and always 1:1 to |Editor|. Since |Editor| is 1:1 to |
// |LocalFrame|, |UndoStack| is also 1:1 to |LocalFrame|. |
class UndoStack final : public GarbageCollected<UndoStack> { |
@@ -56,13 +58,13 @@ class UndoStack final : public GarbageCollected<UndoStack> { |
void redo(); |
void clear(); |
+ const UndoStepStack& undoSteps() const { return m_undoStack; } |
yosin_UTC9
2017/03/02 03:38:40
Please provide high level API for usage base. We d
Xiaocheng
2017/03/02 04:34:59
Will do.
|
+ |
DECLARE_TRACE(); |
private: |
UndoStack(); |
- typedef HeapDeque<Member<UndoStep>> UndoStepStack; |
- |
bool m_inRedo; |
UndoStepStack m_undoStack; |
UndoStepStack m_redoStack; |