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

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

Issue 2720193002: Implement hot mode invocation for idle time spell checker (Closed)
Patch Set: Wed Mar 1 16:02:57 PST 2017 Created 3 years, 10 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..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;

Powered by Google App Engine
This is Rietveld 408576698