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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h

Issue 2734013002: Implement cold mode invocation for idle time spell checker (Closed)
Patch Set: Created 3 years, 9 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/spellcheck/IdleSpellCheckCallback.h
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
index 2234fa328984adfe4e12de599096a5e03fb30a3e..4f8136553a8b40d2752bb4fb61f166563880368e 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
@@ -87,6 +87,7 @@ class CORE_EXPORT IdleSpellCheckCallback final
void coldModeTimerFired(TimerBase*);
void coldModeInvocation(IdleDeadline*);
bool coldModeFinishesFullDocument() const;
+ void chunkAndRequestFullCheckingFor(const Element&);
// Implements |SynchronousMutationObserver|.
void contextDestroyed(Document*) final;
@@ -96,6 +97,8 @@ class CORE_EXPORT IdleSpellCheckCallback final
mutable bool m_needsMoreColdModeInvocationForTesting;
const Member<LocalFrame> m_frame;
uint64_t m_lastProcessedUndoStepSequence;
+ uint64_t m_lastCheckedDOMTreeVersionInColdMode;
+ Member<Node> m_nextNodeInColdMode;
TaskRunnerTimer<IdleSpellCheckCallback> m_coldModeTimer;
};

Powered by Google App Engine
This is Rietveld 408576698