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

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: rebased Mar 7 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 9eb057b1a6f938013f275079ac8ad2787d8b6762..a8555329c67bacc78e283a0c7ea79123117023a3 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
@@ -84,6 +84,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;
@@ -93,6 +94,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